X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Fkernel.lds.S;h=6154d08dd93bec35c0e2db890b5766e81484ec58;hb=f294e7e618e110f8203ea7cf800acb2e1334774b;hp=b911b29fa45853714f6e069468c1cdd8b4f20b9d;hpb=beddf03109baecfdda77c6e4478ac975e49faf73;p=pintos-anon diff --git a/src/threads/kernel.lds.S b/src/threads/kernel.lds.S index b911b29..6154d08 100644 --- a/src/threads/kernel.lds.S +++ b/src/threads/kernel.lds.S @@ -1,4 +1,4 @@ -#include "loader.h" +#include "threads/loader.h" OUTPUT_FORMAT("elf32-i386") OUTPUT_ARCH("i386") @@ -11,8 +11,10 @@ SECTIONS _start = .; /* Kernel starts with code, followed by read-only data and writable data. */ - .text : { *(.text) } = 0x9090 - .rodata : { *(.rodata) *(.rodata.*) } + .text : { *(.start) *(.text) } = 0x90 + .rodata : { *(.rodata) *(.rodata.*) + . = ALIGN(0x1000); + _end_kernel_text = .; } .data : { *(.data) } /* BSS (zero-initialized data) is after everything else. */