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:
Jonathan Behrens 2018-09-04 14:10:42 -04:00
parent 1a83673424
commit a56269d4be

View File

@ -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)