From: Duje Mihanović Date: Fri, 6 May 2022 18:31:25 +0000 (+0200) Subject: Align all sections in kernel binary to page size X-Git-Tag: 0.1.0~6 X-Git-Url: https://git.dujemihanovic.xyz/?a=commitdiff_plain;h=1d0592f3c62d45b1fc23e807bf8cc2274496a4f5;p=nameless-os.git Align all sections in kernel binary to page size --- diff --git a/kernel/linker.ld b/kernel/linker.ld index 90292e6..59d0381 100644 --- a/kernel/linker.ld +++ b/kernel/linker.ld @@ -5,7 +5,7 @@ SECTIONS { . = 0x100000; - .text : { *(.text) } - .data : { *(.data) } - .bss : { *(.bss) } + .text : ALIGN(0x1000) { *(.text) } + .data : ALIGN(0x1000) { *(.data) } + .bss : ALIGN(0x1000) { *(.bss) } }