From a56269d4beefc7d0b3672180aa46c654cfb63af4 Mon Sep 17 00:00:00 2001 From: Jonathan Behrens Date: Tue, 4 Sep 2018 14:10:42 -0400 Subject: [PATCH] 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. --- kern/kernel.ld | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)