1 /** IA-32 linker script
11 #include <arch/boot/boot.h>
12 #include <arch/mm/page.h>
15 kernel_load_address = PA2KA(BOOT_OFFSET);
17 .unmapped (BOOT_OFFSET + SIZEOF_HEADERS): AT (BOOT_OFFSET + SIZEOF_HEADERS) {
24 .mapped (PA2KA(BOOT_OFFSET) + SIZEOF_HEADERS + SIZEOF(.unmapped)): AT (BOOT_OFFSET + SIZEOF_HEADERS + SIZEOF(.unmapped)) {
30 *(.data); /* initialized data */
31 *(.rodata .rodata.*); /* string literals */
32 *(COMMON); /* global variables */
34 /* bss can't be omitted from the ELF image. */
35 *(.bss); /* uninitialized static variables */
39 *(symtab.*); /* Symbol table, must be LAST symbol! */
43 #ifdef CONFIG_LINE_DEBUG
44 .comment 0 : { *(.comment); }
45 .debug_abbrev 0 : { *(.debug_abbrev); }
46 .debug_aranges 0 : { *(.debug_aranges); }
47 .debug_info 0 : { *(.debug_info); }
48 .debug_line 0 : { *(.debug_line); }
49 .debug_loc 0 : { *(.debug_loc); }
50 .debug_pubnames 0 : { *(.debug_pubnames); }
51 .debug_pubtypes 0 : { *(.debug_pubtypes); }
52 .debug_ranges 0 : { *(.debug_ranges); }
53 .debug_str 0 : { *(.debug_str); }
62 ap_boot = unmapped_ap_boot - BOOT_OFFSET + AP_BOOT_OFFSET;
63 ap_gdtr = unmapped_ap_gdtr - BOOT_OFFSET + AP_BOOT_OFFSET;
64 protected_ap_gdtr = PA2KA(ap_gdtr);
66 #endif /* CONFIG_SMP */