From 8dcfef8a2b9089ab3c425e26b2fb2a18dc2f3a22 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Thu, 19 Sep 2019 14:30:04 +0900 Subject: [PATCH] Add symbols to identify the rodata, data, bss sections in the linker script and page-align the start of the kernel heap --- kernel/linker.ld | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kernel/linker.ld b/kernel/linker.ld index 1a94f80..c49a146 100644 --- a/kernel/linker.ld +++ b/kernel/linker.ld @@ -5,16 +5,20 @@ SECTIONS { *(.text) } .rodata ALIGN (0x1000) : { + _corax_rodata = .; *(.rodata) } .data ALIGN (0x1000) : { + _corax_data = .; *(.data) } - .bss :{ + .bss ALIGN (0x1000) : { + _corax_bss = .; sbss = .; *(COMMON) *(.bss) ebss = .; } - _mem_start = .; + . = ALIGN(0x1000); + _mem_start = .; } -- 2.47.3