summaryrefslogtreecommitdiff
path: root/app/ld/_sram.ld
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-03-05 20:20:45 +0300
committerOxore <oxore@protonmail.com>2023-03-05 20:20:45 +0300
commitea807de65b0485ac58b6eae576209c64d4d5c4e9 (patch)
treeb4264d20e1d700cfd9e0ece9d847a825dd1dfc03 /app/ld/_sram.ld
parentdd01e7ed22cea652061f0d12cecf929e04b285e9 (diff)
Split app code and third party libraries
Diffstat (limited to 'app/ld/_sram.ld')
-rw-r--r--app/ld/_sram.ld26
1 files changed, 26 insertions, 0 deletions
diff --git a/app/ld/_sram.ld b/app/ld/_sram.ld
new file mode 100644
index 0000000..4993c63
--- /dev/null
+++ b/app/ld/_sram.ld
@@ -0,0 +1,26 @@
+SECTIONS {
+ __stacktop = ORIGIN(SRAM) + LENGTH(SRAM);
+ __data_load = LOADADDR(.data);
+ . = ORIGIN(SRAM);
+
+ .data ALIGN(4) : {
+ __data_start = .;
+ *(.data)
+ *(.data*)
+ . = ALIGN(4);
+ __data_end = .;
+ } >SRAM AT >FLASH
+
+ .bss ALIGN(4) (NOLOAD) : {
+ __bss_start = .;
+ *(.bss)
+ *(.bss*)
+ . = ALIGN(4);
+ __bss_end = .;
+ *(.noinit)
+ *(.noinit*)
+ } >SRAM
+
+ . = ALIGN(4);
+ __heap_start = .;
+}