Changeset c89ae25 in mainline
- Timestamp:
- 2023-10-27T17:24:14Z (13 months ago)
- Branches:
- master, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 34120f10, b169619
- Parents:
- 0373af9
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-27 17:03:39)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-27 17:24:14)
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/_link.ld.in
r0373af9 rc89ae25 7 7 .text : { 8 8 loader_start = .; 9 *(BOOTSTRAP);10 *(.text );9 KEEP(*(BOOTSTRAP)); 10 *(.text .text.*); 11 11 } 12 12 . = BOOT_BASE + 0x8000; … … 14 14 *(BOOTPT); /* bootstrap page table */ 15 15 *(BOOTSTACK); /* bootstrap stack */ 16 *(.data); /* initialized data */ 17 *(.rodata); 18 *(.rodata.*); 19 *(.sdata); 20 *(.reginfo); 21 *(.sbss); 22 *(.scommon); 23 *(.bss); /* uninitialized static variables */ 16 *(.data .data.*); /* initialized data */ 17 *(.rodata .rodata.*); 18 *(.sdata .sdata.*); 19 *(.sbss .sbss.*); 20 *(.scommon .scommon.*); 21 *(.bss .bss.*); /* uninitialized static variables */ 24 22 *(COMMON); /* global variables */ 25 23 loader_end = .; 26 24 payload_start = .; 27 *(.payload);25 KEEP(*(.payload)); 28 26 payload_end = .; 29 27 } -
boot/arch/arm64/_link.ld.in
r0373af9 rc89ae25 7 7 .text : { 8 8 HIDDEN(loader_start = .); 9 *(BOOTSTRAP);10 *(.text );9 KEEP(*(BOOTSTRAP)); 10 *(.text .text.*); 11 11 } 12 12 .dynamic : { *(.dynamic); } … … 17 17 . = 0x8000; 18 18 .data : { 19 *(.data *); /* initialized data */20 *(.rodata *);21 *(.bss ); /* uninitialized static variables */19 *(.data .data.*); /* initialized data */ 20 *(.rodata .rodata.*); 21 *(.bss .bss.*); /* uninitialized static variables */ 22 22 *(COMMON); /* global variables */ 23 *(.got .got. plt);23 *(.got .got.*); 24 24 HIDDEN(loader_end = .); 25 25 HIDDEN(payload_start = .); 26 *(.payload);26 KEEP(*(.payload)); 27 27 HIDDEN(payload_end = .); 28 28 } -
boot/arch/ia64/_link.ld.in
r0373af9 rc89ae25 5 5 .boot 0x4400000: AT (0x4400000) { 6 6 loader_start = .; 7 *(BOOTSTRAP); 8 *(.text); 9 *(.text.*); 10 *(.sdata); 11 *(.sdata2); 12 *(.sbss); 13 *(.rodata); 14 *(.rodata.*); 7 KEEP(*(BOOTSTRAP)); 8 *(.text .text.*); 9 *(.sdata .sdata.*); 10 *(.sdata2 .sdata2.*); 11 *(.sbss .sbss.*); 12 *(.rodata .rodata.*); 15 13 *(.data .data.*); /* initialized data */ 16 14 __gp = . ; 17 15 *(.got .got.*); 18 *(.bss ); /* uninitialized static variables */16 *(.bss .bss.*); /* uninitialized static variables */ 19 17 *(COMMON); 20 18 loader_end = .; 21 19 payload_start = .; 22 *(.payload);20 KEEP(*(.payload)); 23 21 payload_end = .; 24 22 } -
boot/arch/mips32/_link.ld.in
r0373af9 rc89ae25 9 9 .text : { 10 10 loader_start = .; 11 *(BOOTSTRAP);12 *(.text );11 KEEP(*(BOOTSTRAP)); 12 *(.text .text.*); 13 13 } 14 14 .data : { 15 *(.data); /* initialized data */ 16 *(.rodata); 17 *(.rodata.*); 18 *(.sdata); 15 *(.data .data.*); /* initialized data */ 16 *(.rodata .rodata.*); 17 *(.sdata .sdata.*); 19 18 *(.reginfo); 20 *(.sbss );21 *(.scommon );22 *(.bss ); /* uninitialized static variables */19 *(.sbss .sbss.*); 20 *(.scommon .scommon.*); 21 *(.bss .bss.*); /* uninitialized static variables */ 23 22 *(COMMON); /* global variables */ 24 23 loader_end = .; 25 24 payload_start = .; 26 *(.payload);25 KEEP(*(.payload)); 27 26 payload_end = .; 28 27 } -
boot/arch/ppc32/_link.ld.in
r0373af9 rc89ae25 5 5 .text : { 6 6 loader_start = .; 7 *(BOOTSTRAP); 8 *(.text); 9 *(.text.*); 7 KEEP(*(BOOTSTRAP)); 8 *(.text .text.*); 10 9 } 11 10 .data : { 12 *(.data); /* initialized data */ 13 *(.rodata); 14 *(.rodata.*); 15 *(.sdata); 16 *(.reginfo); 17 *(.sbss); 18 *(.scommon); 19 *(.bss); /* uninitialized static variables */ 11 *(.data .data.*); /* initialized data */ 12 *(.rodata .rodata.*); 13 *(.sdata .sdata.*); 14 *(.sbss .sbss.*); 15 *(.scommon .scommon.*); 16 *(.bss .bss.*); /* uninitialized static variables */ 20 17 *(COMMON); /* global variables */ 21 18 loader_end = .; 22 19 payload_start = .; 23 *(.payload);20 KEEP(*(.payload)); 24 21 payload_end = .; 25 22 } -
boot/arch/riscv64/_link.ld.in
r0373af9 rc89ae25 8 8 .text : { 9 9 loader_start = .; 10 *(BOOTSTRAP);11 *(.text );10 KEEP(*(BOOTSTRAP)); 11 *(.text .text.*); 12 12 } 13 13 … … 27 27 28 28 .data : { 29 *(.data); /* initialized data */ 30 *(.rodata); 31 *(.rodata.*); 32 *(.sdata); 33 *(.reginfo); 34 *(.sbss); 35 *(.scommon); 36 *(.bss); /* uninitialized static variables */ 29 *(.data .data.*); /* initialized data */ 30 *(.rodata .rodata.*); 31 *(.sdata .sdata.*); 32 *(.sbss .sbss.*); 33 *(.scommon .scommon.*); 34 *(.bss .bss.*); /* uninitialized static variables */ 37 35 *(COMMON); /* global variables */ 38 36 loader_end = .; 39 37 payload_start = .; 40 *(.payload);38 KEEP(*(.payload)); 41 39 payload_end = .; 42 40 } -
boot/arch/sparc64/_link.ld.in
r0373af9 rc89ae25 5 5 .boot : { 6 6 loader_start = .; 7 *(BOOTSTRAP);8 *(.text .*);7 KEEP(*(BOOTSTRAP)); 8 *(.text .text.*); 9 9 10 *(.data); /* initialized data */ 11 *(.rodata); 12 *(.rodata.*); 13 *(.sdata); 14 *(.reginfo); 15 *(.sbss); 16 *(.bss); /* uninitialized static variables */ 10 *(.data .data.*); /* initialized data */ 11 *(.rodata .rodata.*); 12 *(.sdata .sdata.*); 13 *(.sbss .sbss.*); 14 *(.bss .bss.*); /* uninitialized static variables */ 17 15 *(COMMON); /* global variables */ 18 16 loader_end = .; 19 17 payload_start = .; 20 *(.payload);18 KEEP(*(.payload)); 21 19 payload_end = .; 22 20 } -
boot/meson.build
r0373af9 rc89ae25 98 98 '-Wl,--nmagic', 99 99 '-T', meson.current_build_dir()/'_link.ld', 100 '-Wl,--no-gc-sections',101 100 ] 102 101 -
kernel/arch/abs32le/_link.ld.in
r0373af9 rc89ae25 3 3 kernel_load_address = .; 4 4 ktext_start = .; 5 *(.text );5 *(.text .text.*); 6 6 ktext_end = .; 7 7 } 8 8 .data : { 9 9 kdata_start = .; 10 *(.data ); /* initialized data */11 *(.bss ); /* uninitialized static variables */10 *(.data .data.*); /* initialized data */ 11 *(.bss .bss.*); /* uninitialized static variables */ 12 12 *(COMMON); /* global variables */ 13 13 … … 15 15 *(.eh_frame .eh_frame.*); /* stack unwinding data */ 16 16 *(.eh_frame_hdr .eh_frame_hdr.*); 17 *(.sdata); 18 *(.reginfo); 17 *(.sdata .sdata.*); 19 18 } 20 19 .sbss : { 21 *(.sbss );22 *(.scommon );20 *(.sbss .sbss.*); 21 *(.scommon .scommon.*); 23 22 } 24 23 -
kernel/arch/amd64/_link.ld.in
r0373af9 rc89ae25 17 17 .unmapped (BOOT_OFFSET + SIZEOF_HEADERS): AT (BOOT_OFFSET + SIZEOF_HEADERS) { 18 18 unmapped_start = .; 19 *(K_TEXT_START);20 *(K_DATA_START);21 *(K_INI_PTLS);19 KEEP(*(K_TEXT_START)); 20 KEEP(*(K_DATA_START)); 21 KEEP(*(K_INI_PTLS)); 22 22 unmapped_end = .; 23 23 } … … 29 29 30 30 kdata_start = .; 31 *(.data ); /* initialized data */31 *(.data .data.*); /* initialized data */ 32 32 *(.rodata .rodata.*); 33 *(.eh_frame .eh_frame.*); 33 *(.eh_frame .eh_frame.*); /* stack unwinding data */ 34 34 *(.eh_frame_hdr .eh_frame_hdr.*); 35 35 *(COMMON); /* global variables */ 36 36 37 37 /* bss can't be omitted from the ELF image. */ 38 *(.bss ); /* uninitialized static variables */38 *(.bss .bss.*); /* uninitialized static variables */ 39 39 kdata_end = .; 40 40 } -
kernel/arch/arm32/_link.ld.in
r0373af9 rc89ae25 28 28 .text : { 29 29 ktext_start = .; 30 *(.text );30 *(.text .text.*); 31 31 ktext_end = .; 32 32 } 33 33 .data : { 34 34 kdata_start = .; 35 *(.data ); /* initialized data */36 *(.bss ); /* uninitialized static variables */35 *(.data .data.*); /* initialized data */ 36 *(.bss .bss.*); /* uninitialized static variables */ 37 37 *(COMMON); /* global variables */ 38 38 … … 40 40 *(.eh_frame .eh_frame.*); /* stack unwinding data */ 41 41 *(.eh_frame_hdr .eh_frame_hdr.*); 42 *(.sdata); 43 *(.reginfo); 42 *(.sdata .sdata.*); 44 43 } 45 44 .sbss : { 46 *(.sbss );47 *(.scommon );45 *(.sbss .sbss.*); 46 *(.scommon .scommon.*); 48 47 } 49 48 -
kernel/arch/arm64/_link.ld.in
r0373af9 rc89ae25 22 22 . = ALIGN(16); 23 23 ktext_start = .; 24 *(K_TEXT_START)24 KEEP(*(K_TEXT_START)) 25 25 *(.text .text.*); 26 26 ktext_end = .; 27 27 28 28 kdata_start = .; 29 *(K_DATA_START)30 *(.data ); /* initialized data */31 *(.bss ); /* uninitialized static variables */29 KEEP(*(K_DATA_START)) 30 *(.data .data.*); /* initialized data */ 31 *(.bss .bss.*); /* uninitialized static variables */ 32 32 *(COMMON); /* global variables */ 33 33 -
kernel/arch/ia32/_link.ld.in
r0373af9 rc89ae25 17 17 .unmapped (BOOT_OFFSET + SIZEOF_HEADERS): AT (BOOT_OFFSET + SIZEOF_HEADERS) { 18 18 unmapped_start = .; 19 *(K_TEXT_START);20 *(K_DATA_START);19 KEEP(*(K_TEXT_START)); 20 KEEP(*(K_DATA_START)); 21 21 unmapped_end = .; 22 22 } … … 28 28 29 29 kdata_start = .; 30 *(.data ); /* initialized data */30 *(.data .data.*); /* initialized data */ 31 31 *(.rodata .rodata.*); 32 32 *(.eh_frame .eh_frame.*); /* stack unwinding data */ … … 35 35 36 36 /* bss can't be omitted from the ELF image. */ 37 *(.bss ); /* uninitialized static variables */37 *(.bss .bss.*); /* uninitialized static variables */ 38 38 kdata_end = .; 39 39 } -
kernel/arch/ia64/_link.ld.in
r0373af9 rc89ae25 18 18 . = ALIGN(16); 19 19 ktext_start = .; 20 *(K_TEXT_START);20 KEEP(*(K_TEXT_START)); 21 21 *(.text .text.*) 22 22 ktext_end = .; 23 23 24 24 kdata_start = .; 25 *(K_DATA_START)25 KEEP(*(K_DATA_START)); 26 26 *(.rodata .rodata.*); 27 27 *(.eh_frame .eh_frame.*); /* stack unwinding data */ … … 31 31 __gp = .; 32 32 *(.got .got.*) 33 *(.sdata )34 *(.sbss )35 *(.scommon )36 *(.bss )33 *(.sdata .sdata.*) 34 *(.sbss .sbss.*) 35 *(.scommon .scommon.*) 36 *(.bss .bss.*) 37 37 *(COMMON); 38 38 kdata_end = .; -
kernel/arch/mips32/_link.ld.in
r0373af9 rc89ae25 28 28 .text : { 29 29 ktext_start = .; 30 /* FIXME: for some reason, mixing .text with .text.* produces a crash on malta-be */ 30 31 *(.text); 32 *(.text.*); 31 33 ktext_end = .; 32 34 } 33 35 .data : { 34 36 kdata_start = .; 35 *(.data ); /* initialized data */37 *(.data .data.*); /* initialized data */ 36 38 *(.rodata .rodata.*); 37 39 *(.eh_frame .eh_frame.*); /* stack unwinding data */ 38 40 *(.eh_frame_hdr .eh_frame_hdr.*); 39 *(.sdata );41 *(.sdata .sdata.*); 40 42 *(.reginfo); 41 *(.sbss );42 *(.scommon );43 *(.bss ); /* uninitialized static variables */43 *(.sbss .sbss.*); 44 *(.scommon .scommon.*); 45 *(.bss .bss.*); /* uninitialized static variables */ 44 46 *(COMMON); /* global variables */ 45 47 } -
kernel/arch/ppc32/_link.ld.in
r0373af9 rc89ae25 22 22 .unmapped (SIZEOF_HEADERS): AT (SIZEOF_HEADERS) { 23 23 . = ALIGN(0x100); 24 *(K_UNMAPPED_TEXT_START);24 KEEP(*(K_UNMAPPED_TEXT_START)); 25 25 } 26 26 27 27 .mapped PA2KA(BOOT_OFFSET): AT (BOOT_OFFSET) { 28 28 ktext_start = .; 29 *(K_TEXT_START);30 *(.text );29 KEEP(*(K_TEXT_START)); 30 *(.text .text.*); 31 31 ktext_end = .; 32 32 33 33 kdata_start = .; 34 *(K_DATA_START);34 KEEP(*(K_DATA_START)); 35 35 *(.rodata .rodata.*); 36 36 *(.eh_frame .eh_frame.*); /* stack unwinding data */ 37 37 *(.eh_frame_hdr .eh_frame_hdr.*); 38 *(.data ); /* initialized data */39 *(.sdata );40 *(.sdata2 );41 *(.sbss );42 *(.bss ); /* uninitialized static variables */38 *(.data .data.*); /* initialized data */ 39 *(.sdata .sdata.*); 40 *(.sdata2 .sdata2.*); 41 *(.sbss .sbss.*); 42 *(.bss .bss.*); /* uninitialized static variables */ 43 43 *(COMMON); /* global variables */ 44 44 kdata_end = .; -
kernel/arch/riscv64/_link.ld.in
r0373af9 rc89ae25 18 18 .image (PA2KA(BOOT_OFFSET) + SIZEOF_HEADERS) : AT (BOOT_OFFSET + SIZEOF_HEADERS) { 19 19 ktext_start = .; 20 *(K_TEXT_START);21 *(.text );20 KEEP(*(K_TEXT_START)); 21 *(.text .text.*); 22 22 ktext_end = .; 23 23 24 24 kdata_start = .; 25 *(.data ); /* initialized data */25 *(.data .data.*); /* initialized data */ 26 26 *(.rodata .rodata.*); 27 27 *(.eh_frame .eh_frame.*); /* stack unwinding data */ 28 28 *(.eh_frame_hdr .eh_frame_hdr.*); 29 *(.sdata); 30 *(.reginfo); 31 *(.sbss); 32 *(.scommon); 33 *(.bss); /* uninitialized static variables */ 29 *(.sdata .sdata.*); 30 *(.sbss .sbss.*); 31 *(.scommon .scommon.*); 32 *(.bss .bss.*); /* uninitialized static variables */ 34 33 *(COMMON); /* global variables */ 35 34 kdata_end = .; -
kernel/arch/sparc64/_link.ld.in
r0373af9 rc89ae25 16 16 .image (VMA + SIZEOF_HEADERS): AT (LMA + SIZEOF_HEADERS) { 17 17 ktext_start = .; 18 *(K_TEXT_START)18 KEEP(*(K_TEXT_START)); 19 19 *(.text .text.*); 20 20 ktext_end = .; 21 21 22 22 kdata_start = .; 23 *(K_DATA_START)23 KEEP(*(K_DATA_START)); 24 24 *(.rodata .rodata.*); 25 25 *(.eh_frame .eh_frame.*); /* stack unwinding data */ 26 26 *(.eh_frame_hdr .eh_frame_hdr.*); 27 *(.data ); /* initialized data */28 *(.sdata );29 *(.sdata2 );30 *(.sbss );27 *(.data .data.*); /* initialized data */ 28 *(.sdata .sdata.*); 29 *(.sdata2 .sdata2.*); 30 *(.sbss .sbss.*); 31 31 . = ALIGN(8); 32 *(.bss ); /* uninitialized static variables */32 *(.bss .bss.*); /* uninitialized static variables */ 33 33 *(COMMON); /* global variables */ 34 34 kdata_end = .; -
meson/arch/amd64/meson.build
r0373af9 rc89ae25 45 45 endif 46 46 47 48 # TODO: Enable --gc-sections 49 arch_kernel_link_args = [ '-Wl,-z,max-page-size=0x1000', '-nostdlib', '-Wl,--no-gc-sections' ] 47 arch_kernel_link_args = [ '-Wl,-z,max-page-size=0x1000', '-nostdlib' ] 50 48 arch_uspace_link_args = [ '-Wl,-z,max-page-size=0x1000', '-nostdlib', '-lgcc' ] 51 49 -
meson/arch/arm64/meson.build
r0373af9 rc89ae25 47 47 # processor is in the execution mode that has unaligned access enabled. The 48 48 # -mstrict-align option is therefore not needed. 49 arch_boot_c_args = arch_uspace_c_args + [ '-fpic', '-fvisibility=hidden' , '-fno-function-sections']50 arch_boot_link_args = [ '-Wl,-shared' , '-Wl,--no-gc-sections'] + ldflags_ignore_rwx_segments49 arch_boot_c_args = arch_uspace_c_args + [ '-fpic', '-fvisibility=hidden' ] 50 arch_boot_link_args = [ '-Wl,-shared' ] + ldflags_ignore_rwx_segments 51 51 52 52 if MACHINE == 'virt' -
meson/arch/ia32/meson.build
r0373af9 rc89ae25 51 51 ] 52 52 53 54 # TODO: Enable --gc-sections. 55 arch_kernel_link_args = [ '-nostdlib', '-Wl,--no-gc-sections' ] 53 arch_kernel_link_args = [ '-nostdlib' ] 56 54 arch_uspace_link_args = [ '-nostdlib', '-lgcc' ] 57 55 -
meson/arch/ppc32/meson.build
r0373af9 rc89ae25 28 28 # 29 29 30 # FIXME: enable --gc-sections31 32 30 _common_c_args = [ '-D__BE__', '-fno-omit-frame-pointer', '-m32', '-Wa,-a32', '-mcpu=powerpc' ] 33 31 34 arch_kernel_c_args = _common_c_args + [ '-msoft-float' , '-fno-function-sections']32 arch_kernel_c_args = _common_c_args + [ '-msoft-float' ] 35 33 arch_uspace_c_args = _common_c_args + [ CONFIG_FPU ? '-mhard-float' : '-msoft-float' ] 36 34 arch_boot_c_args = arch_kernel_c_args 37 arch_kernel_link_args = [ '-nostdlib', '-Wl,-z,max-page-size=0x1000' , '-Wl,--no-check-sections', '-Wl,--no-gc-sections']35 arch_kernel_link_args = [ '-nostdlib', '-Wl,-z,max-page-size=0x1000' ] 38 36 arch_uspace_link_args = [ '-nostdlib', '-lgcc', '-Wl,-z,max-page-size=0x1000' ] 39 37 arch_uspace_link_args += ldflags_ignore_rwx_segments -
meson/part/compiler_args/meson.build
r0373af9 rc89ae25 68 68 69 69 '-ffunction-sections', 70 '-fdata-sections', 70 71 '-fno-common', 71 72 '-fdebug-prefix-map=' + meson.source_root() + '/=',
Note:
See TracChangeset
for help on using the changeset viewer.