1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-26 09:53:28 +04:00

Page align all sections as they will be individually mapped

This commit is contained in:
Philipp Oppermann 2017-04-18 12:12:28 +02:00
parent e029eabe18
commit 5d898d8474

View File

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