From 94d6ea02c510ca3752d9667dac13bfb16ab2ee2c Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 25 May 2024 22:41:32 -0400 Subject: build: Add user linker script This ensures the memory layout is in a proper state Signed-off-by: Ian Moffett --- conf/user-link.ld | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 conf/user-link.ld (limited to 'conf') diff --git a/conf/user-link.ld b/conf/user-link.ld new file mode 100644 index 0000000..9bbe6ae --- /dev/null +++ b/conf/user-link.ld @@ -0,0 +1,27 @@ +ENTRY(_start) + +SECTIONS +{ + . = 0x10000; + + .text : + { + *(.text) + *(.text.*) + } + + .data : ALIGN(8) + { + *(.data) + *(.data.*) + } + + .bss : ALIGN(8) + { + __bss_start = .; + *(.bss) + *(.bss.*) + __bss_end = .; + } +} + -- cgit v1.2.3