3 * linker script suitable for kernel development
4 ***********************************************/
10 /* bootloader conventionally loads the kernel at 1 MiB */
13 /* put the multiboot header first so that the kernel is recognized
14 by the bootloader, then the rest of the text section */
15 .text BLOCK(4K) : ALIGN(4K)
21 /* next is the read-only data */
22 .rodata BLOCK(4K) : ALIGN(4K)
27 /* then, initialized r+w data */
28 .data BLOCK(4K) : ALIGN(4K)
33 /* finally, uninitialized r+w data and stack */
34 .bss BLOCK(4K) : ALIGN(4K)