Skip to content

Commit a56269d

Browse files
committed
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.
1 parent 1a83673 commit a56269d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kern/kernel.ld

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ SECTIONS
4747
*(.data)
4848
}
4949

50-
PROVIDE(edata = .);
51-
5250
.bss : {
51+
PROVIDE(edata = .);
5352
*(.bss)
53+
PROVIDE(end = .);
54+
BYTE(0)
5455
}
5556

56-
PROVIDE(end = .);
5757

5858
/DISCARD/ : {
5959
*(.eh_frame .note.GNU-stack)

0 commit comments

Comments
 (0)