1 KERNEL_VMA = 0xFFFFFFFF80000000 ;
2 KERNEL_LMA = 0x100000 ;
4 ENTRY(_multiboot_entry)
11 boot32.o ( .multiboot )
16 . += KERNEL_VMA; /* += so that the code can just run, might be able to "org" the code */
18 .text : AT(ADDR(.text) - KERNEL_VMA)
21 *(EXCLUDE_FILE(*boot32.o) .text)
26 .data : AT(ADDR(.data) - KERNEL_VMA)
29 *(EXCLUDE_FILE(*boot32.o) .data)
39 QUAD(KERNEL_PHYS_END);
48 .bss : AT(ADDR(.bss) - KERNEL_VMA)
54 * You usually need to include generated COMMON symbols
55 * under kernel BSS section or use gcc's -fno-common
62 KERNEL_SIZE = . - KERNEL_VMA - KERNEL_LMA;
63 KERNEL_PHYS_END = . - KERNEL_VMA;