summaryrefslogtreecommitdiff
path: root/_sram.ld
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-03 01:23:56 +0300
committerOxore <oxore@protonmail.com>2023-05-03 01:29:14 +0300
commitf2016e84699c4f8a83e759fecac9e5dacd490a40 (patch)
treeb4a94dae0a8a192fd2d780cde5df5fe1280c7474 /_sram.ld
Initial commit
Diffstat (limited to '_sram.ld')
-rw-r--r--_sram.ld26
1 files changed, 26 insertions, 0 deletions
diff --git a/_sram.ld b/_sram.ld
new file mode 100644
index 0000000..e9fcc24
--- /dev/null
+++ b/_sram.ld
@@ -0,0 +1,26 @@
+SECTIONS {
+ __stacktop = ORIGIN(SRAM) + 0xe000;
+ __data_load = LOADADDR(.data);
+ . = ORIGIN(SRAM);
+
+ .data ALIGN(4) : {
+ __data_start = .;
+ *(.data)
+ *(.data*)
+ . = ALIGN(4);
+ __data_end = .;
+ } >SRAM AT >ROM
+
+ .bss ALIGN(4) (NOLOAD) : {
+ __bss_start = .;
+ *(.bss)
+ *(.bss*)
+ . = ALIGN(4);
+ __bss_end = .;
+ *(.noinit)
+ *(.noinit*)
+ } >SRAM
+
+ . = ALIGN(4);
+ __heap_start = .;
+}