Load ELF file by sections to get addresses right
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user