Kernel runs in the higher address space

This commit is contained in:
Taku Shimosawa
2011-11-07 00:48:22 +09:00
parent 83a17650b9
commit 2773606466
11 changed files with 224 additions and 6 deletions

34
kboot/kernel.lds.S Normal file
View File

@@ -0,0 +1,34 @@
ENTRY(main)
PHDRS
{
text PT_LOAD FLAGS(5);
data PT_LOAD FLAGS(7);
}
SECTIONS
{
. = LOAD_PA;
_head = .;
.text : {
*(.text);
} : text
. = ALIGN(4096);
.data : {
*(.data)
*(.data.*)
} :data
.rodata : {
*(.rodata .rodata.*)
} :data
.bss : {
*(.bss .bss.*)
}
. = ALIGN(4096);
data_end = .;
/DISCARD/ : {
*(.eh_frame)
*(.note.gnu.build-id)
}
}