Tweak kernel.ld linker script so edata and end are set correctly
This change should hopefully resolve issues when compiling with newer versions of GCC.
This commit is contained in:
parent
1a83673424
commit
a56269d4be
|
@ -47,13 +47,13 @@ SECTIONS
|
||||||
*(.data)
|
*(.data)
|
||||||
}
|
}
|
||||||
|
|
||||||
PROVIDE(edata = .);
|
|
||||||
|
|
||||||
.bss : {
|
.bss : {
|
||||||
|
PROVIDE(edata = .);
|
||||||
*(.bss)
|
*(.bss)
|
||||||
|
PROVIDE(end = .);
|
||||||
|
BYTE(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
PROVIDE(end = .);
|
|
||||||
|
|
||||||
/DISCARD/ : {
|
/DISCARD/ : {
|
||||||
*(.eh_frame .note.GNU-stack)
|
*(.eh_frame .note.GNU-stack)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user