diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-25 22:41:32 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-25 22:41:32 -0400 |
commit | 94d6ea02c510ca3752d9667dac13bfb16ab2ee2c (patch) | |
tree | 8003cb9d7fd1039d40fb1954374a5eb9fe695b94 /conf/user-link.ld | |
parent | bd93d4966c5d78cb4ee2ab84d32890ea1ca77d53 (diff) |
build: Add user linker script
This ensures the memory layout is in a proper state
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'conf/user-link.ld')
-rw-r--r-- | conf/user-link.ld | 27 |
1 files changed, 27 insertions, 0 deletions
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 = .; + } +} + |