Move assignment to _end_kernel_text inside .rodata.
[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               . = ALIGN(0x1000); 
17               _end_kernel_text = .; }
18   .data : { *(.data) }
19
20   /* BSS (zero-initialized data) is after everything else. */
21   _start_bss = .;
22   .bss : { *(.bss) }
23   _end_bss = .;
24
25   _end = .;
26 }