From 8090c2a752e04803ff0fce3ee8c0a1496ab79084 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 2 Sep 2015 20:39:04 +0200 Subject: [PATCH] Page align all sections as they will be individually mapped --- src/arch/x86_64/linker.ld | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/arch/x86_64/linker.ld b/src/arch/x86_64/linker.ld index 255c96ca..90f1cd52 100644 --- a/src/arch/x86_64/linker.ld +++ b/src/arch/x86_64/linker.ld @@ -19,17 +19,21 @@ ENTRY(start) SECTIONS { . = 1M; - .text : { + .text BLOCK(4k) : { /* ensure that the multiboot header is at the beginning */ KEEP(*(.multiboot)) *(.text .text.*) } - .rodata : { + .rodata BLOCK(4k) : { *(.rodata .rodata.*) } - .data.rel.ro : { + .data BLOCK(4k) : { + *(.data .data.*) + } + + .data.rel.ro BLOCK(4k) : { *(.data.rel.ro.local*) *(.data.rel.ro .data.rel.ro.*) }