Align sections in linker script

This commit is contained in:
Philipp Oppermann
2015-12-31 03:02:00 +01:00
parent dd51bde9f9
commit 8e65034643

View File

@@ -14,22 +14,28 @@ ENTRY(start)
SECTIONS {
. = 1M;
.boot :
.rodata : ALIGN(4K)
{
/* ensure that the multiboot header is at the beginning */
KEEP(*(.multiboot_header))
*(.rodata .rodata.*)
}
.text :
.text : ALIGN(4K)
{
*(.text .text.*)
}
.rodata : {
*(.rodata .rodata.*)
.data : ALIGN(4K)
{
*(.data .data.*)
}
.data.rel.ro : {
.data.rel.ro : ALIGN(4K) {
*(.data.rel.ro.local*) *(.data.rel.ro .data.rel.ro.*)
}
.gcc_except_table : ALIGN(4K) {
*(.gcc_except_table)
}
}