]> git.dujemihanovic.xyz Git - nameless-os.git/blobdiff - kernel/linker.ld
Align all sections in kernel binary to page size
[nameless-os.git] / kernel / linker.ld
index d68e9f2c96af541f9042df444d10f7803ff1e7fb..59d0381af92cf1bf95859357d31b9e2d63b6a11f 100644 (file)
@@ -3,9 +3,9 @@ OUTPUT_FORMAT(binary)
 
 SECTIONS
 {
-       . = 0x1000;
+       . = 0x100000;
 
-       .text : { *(.text) }
-       .data : { *(.data) }
-       .bss : { *(.bss) }
+       .text : ALIGN(0x1000) { *(.text) }
+       .data : ALIGN(0x1000) { *(.data) }
+       .bss : ALIGN(0x1000) { *(.bss) }
 }