Changes in kernel/arch/amd64/_link.ld.in [6677acb:c89ae25] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/_link.ld.in
r6677acb rc89ae25 23 23 } 24 24 25 . text(PA2KA(BOOT_OFFSET) + SIZEOF_HEADERS + SIZEOF(.unmapped)) : AT (BOOT_OFFSET + SIZEOF_HEADERS + SIZEOF(.unmapped)) {25 .mapped (PA2KA(BOOT_OFFSET) + SIZEOF_HEADERS + SIZEOF(.unmapped)) : AT (BOOT_OFFSET + SIZEOF_HEADERS + SIZEOF(.unmapped)) { 26 26 ktext_start = .; 27 27 *(.text .text.*); 28 28 ktext_end = .; 29 }30 29 31 /* stack unwinding data */ 32 .eh_frame_hdr : { 33 eh_frame_hdr_start = .; 34 *(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*); 35 eh_frame_hdr_end = .; 36 } 37 .eh_frame : { 38 eh_frame_start = .; 39 KEEP(*(.eh_frame .eh_frame.*)); 40 eh_frame_end = .; 41 } 30 kdata_start = .; 31 *(.data .data.*); /* initialized data */ 32 *(.rodata .rodata.*); 33 *(.eh_frame .eh_frame.*); /* stack unwinding data */ 34 *(.eh_frame_hdr .eh_frame_hdr.*); 35 *(COMMON); /* global variables */ 42 36 43 .data : { 44 kdata_start = .; 45 *(.rodata .rodata.*); /* read-only global variables */ 46 *(.data .data.*); /* non-zero initialized global variables */ 47 48 /* 49 * When .bss is not physically present in the ELF file (MemSz > FileSz) 50 * the kernel crashes during early boot. Not sure which part of the 51 * boot process is to blame, for now just keep .bss packaged with .data 52 * so that FileSz == MemSz. 53 */ 54 55 *(.bss .bss.*); /* uninitialized global variables */ 56 *(COMMON); /* non-`static` global variables without an extern declaration */ 37 /* bss can't be omitted from the ELF image. */ 38 *(.bss .bss.*); /* uninitialized static variables */ 57 39 kdata_end = .; 58 40 }
Note:
See TracChangeset
for help on using the changeset viewer.