From a63046569dbea14bb5cc45ad28d6b23dfac1b1f4 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Fri, 5 Apr 2024 17:04:19 +0200 Subject: [PATCH] Basic linker script --- link.ld | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 link.ld diff --git a/link.ld b/link.ld new file mode 100644 index 0000000..845c0a3 --- /dev/null +++ b/link.ld @@ -0,0 +1,16 @@ +MEMORY { + SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 1024 + DRAM (rwx) : ORIGIN = 0x80000000, LENGTH = 1024 +} + +SECTIONS { + .text : { + *(.text) + } > SRAM + .data : { + *(.data) + } > DRAM AT > SRAM + .bss : { + *(.bss) + } > DRAM +}