diff --git a/kern/kernel.ld b/kern/kernel.ld index 45a0b6a..a219d1d 100644 --- a/kern/kernel.ld +++ b/kern/kernel.ld @@ -47,13 +47,13 @@ SECTIONS *(.data) } - PROVIDE(edata = .); - .bss : { + PROVIDE(edata = .); *(.bss) + PROVIDE(end = .); + BYTE(0) } - PROVIDE(end = .); /DISCARD/ : { *(.eh_frame .note.GNU-stack)