From 46007d2598b7aef13895b21669cfb6f24272e5fe Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 27 Apr 2020 23:13:36 +0200 Subject: Minor but important fixes in processing --- src/userspace/linker.ld | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'src/userspace/linker.ld') diff --git a/src/userspace/linker.ld b/src/userspace/linker.ld index d793912..8ede485 100644 --- a/src/userspace/linker.ld +++ b/src/userspace/linker.ld @@ -1,19 +1,24 @@ ENTRY(_start) - -SECTIONS { - .text : { +SECTIONS +{ + .text 0x40000000: + { + code = .; _code = .; __code = .; *(.text) - . = ALIGN(4096); } - .data : { + .data ALIGN(0x400000): + { + data = .; _data = .; __data = .; *(.data) *(.rodata) - . = ALIGN(4096); } - .bss : { + .bss ALIGN(0x400000): + { + bss = .; _bss = .; __bss = .; *(.bss) - . = ALIGN(4096); } + + end = .; _end = .; __end = .; } \ No newline at end of file -- cgit v1.2.3