Load ELF file by sections to get addresses right

This commit is contained in:
Justin C. Miller
2018-05-06 22:03:44 -07:00
parent 97fb8ef653
commit cce892e92f
5 changed files with 89 additions and 17 deletions

View File

@@ -14,7 +14,7 @@ SECTIONS
*(.text)
}
.data ALIGN(0x1000) : {
.data : {
*(.data)
*(.rodata)
}
@@ -23,15 +23,15 @@ SECTIONS
*(.isrs)
}
.note : {
*(.note.*)
}
.bss ALIGN(0x1000) : {
__bss_start = .;
*(.bss)
__bss_end = .;
}
.note ALIGN(0x1000) : {
*(.note.*)
}
kernel_end = ALIGN(4096);
}