Page align all sections as they will be individually mapped

This commit is contained in:
Philipp Oppermann
2015-09-02 20:39:04 +02:00
parent 95d6d30c29
commit 8090c2a752

View File

@@ -19,17 +19,21 @@ ENTRY(start)
SECTIONS { SECTIONS {
. = 1M; . = 1M;
.text : { .text BLOCK(4k) : {
/* ensure that the multiboot header is at the beginning */ /* ensure that the multiboot header is at the beginning */
KEEP(*(.multiboot)) KEEP(*(.multiboot))
*(.text .text.*) *(.text .text.*)
} }
.rodata : { .rodata BLOCK(4k) : {
*(.rodata .rodata.*) *(.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.*) *(.data.rel.ro.local*) *(.data.rel.ro .data.rel.ro.*)
} }