Only need single 0x90.
[pintos-anon] / src / threads / kernel.lds.S
1 #include "threads/loader.h"
2
3 OUTPUT_FORMAT("elf32-i386")
4 OUTPUT_ARCH("i386")
5 ENTRY(start)                    /* Kernel starts at "start" symbol. */
6 SECTIONS
7 {
8   /* Specifies the virtual address for the kernel base. */
9   . = LOADER_PHYS_BASE + LOADER_KERN_BASE;
10
11   _start = .;
12
13   /* Kernel starts with code, followed by read-only data and writable data. */
14   .text : { *(.start) *(.text) } = 0x90
15   .rodata : { *(.rodata) *(.rodata.*) }
16   .data : { *(.data) }
17
18   /* BSS (zero-initialized data) is after everything else. */
19   _start_bss = .;
20   .bss : { *(.bss) }
21   _end_bss = .;
22
23   _end = .;
24 }