X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Fkernel.lds.S;h=6154d08dd93bec35c0e2db890b5766e81484ec58;hb=6d19139b337fcb7c9b31e5b6724e6ae19499e4c5;hp=28721e2832a27a73c895a98daa89cd47471027e9;hpb=3464ff25514b2c58209180b7831090ea167b9bc5;p=pintos-anon diff --git a/src/threads/kernel.lds.S b/src/threads/kernel.lds.S index 28721e2..6154d08 100644 --- a/src/threads/kernel.lds.S +++ b/src/threads/kernel.lds.S @@ -12,7 +12,9 @@ SECTIONS /* Kernel starts with code, followed by read-only data and writable data. */ .text : { *(.start) *(.text) } = 0x90 - .rodata : { *(.rodata) *(.rodata.*) } + .rodata : { *(.rodata) *(.rodata.*) + . = ALIGN(0x1000); + _end_kernel_text = .; } .data : { *(.data) } /* BSS (zero-initialized data) is after everything else. */