Changeset 33ef2f2 in mainline
- Timestamp:
- 2018-11-13T20:22:20Z (6 years ago)
- Parents:
- 948e85b
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-10-24 15:23:01)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-13 20:22:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/_link.ld.in
r948e85b r33ef2f2 23 23 kernel_load_address = PA2KA(BOOT_OFFSET); 24 24 25 .ap_bootstrap (AP_BOOT_OFFSET): AT (AP_BOOT_OFFSET) { 26 ap_bootstrap_start = .; 25 . = AP_BOOT_OFFSET + SIZEOF_HEADERS; 27 26 28 29 *(.multiboot);27 /* Must be first. */ 28 .multiboot : { *(.multiboot); } :ap_boot 30 29 30 ap_bootstrap_start = .; 31 32 .ap_bootstrap : { 31 33 *(K_AP_TEXT_START); 32 34 *(K_AP_DATA_START); 33 ap_bootstrap_end = .;34 35 } :ap_boot 35 36 36 .unmapped (BOOT_OFFSET): AT (BOOT_OFFSET) { 37 unmapped_start = .; 37 ap_bootstrap_end = .; 38 39 . = BOOT_OFFSET + (ap_bootstrap_end & (PAGE_SIZE-1)); 40 unmapped_start = .; 41 42 .unmapped : { 38 43 *(K_TEXT_START); 39 44 *(K_DATA_START); 40 45 *(K_INI_PTLS); 41 unmapped_end = .;42 46 } :unmapped 47 48 unmapped_file_end = .; 43 49 44 50 .unmapped_bss : { 45 51 *(.bootstack); 52 *(K_BSS_START); 46 53 } :unmapped 47 54 48 .mapped (PA2KA(BOOT_OFFSET) + SIZEOF(.unmapped) + SIZEOF(.unmapped_bss)) : AT (BOOT_OFFSET + SIZEOF(.unmapped) + SIZEOF(.unmapped_bss)) { 55 unmapped_end = .; 56 mapped_load_start = ALIGN(PAGE_SIZE) + (unmapped_file_end & (PAGE_SIZE-1)); 57 58 .mapped (PA2KA(mapped_load_start)): AT (mapped_load_start) { 49 59 ktext_start = .; 50 60 *(.text .text.*); … … 52 62 53 63 kdata_start = .; 54 *(.data); /* initialized data */55 *(.rodata .rodata.*); /* string literals */56 *(COMMON); /* global variables */64 *(.data); /* initialized data */ 65 *(.rodata .rodata.*); /* string literals */ 66 *(COMMON); /* global variables */ 57 67 58 68 /* bss can't be omitted from the ELF image. */ 59 *(.bss); /* uninitialized static variables */69 *(.bss); /* uninitialized static variables */ 60 70 61 71 . = ALIGN(8); 62 72 symbol_table = .; 63 *(symtab.*); /* Symbol table, must be LAST symbol!*/ 64 73 *(symtab.*); /* Symbol table, must be LAST symbol! */ 65 74 kdata_end = .; 66 75 } :mapped
Note:
See TracChangeset
for help on using the changeset viewer.