summaryrefslogtreecommitdiff
path: root/Project/ld/_sram.ld
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2022-10-09 02:54:07 +0300
committerOxore <oxore@protonmail.com>2022-10-09 02:57:01 +0300
commitb1c8bb5df090d65cdd37a7acafb5dee8e3c530c6 (patch)
tree04e77389b96ed575bff7810ebb71857eff7e3b46 /Project/ld/_sram.ld
parent59651845feac3c6a2cb8e91e7494fd0e7940d145 (diff)
Add CMakeLists.txt and make it compile with GCC
Diffstat (limited to 'Project/ld/_sram.ld')
-rw-r--r--Project/ld/_sram.ld26
1 files changed, 26 insertions, 0 deletions
diff --git a/Project/ld/_sram.ld b/Project/ld/_sram.ld
new file mode 100644
index 0000000..4993c63
--- /dev/null
+++ b/Project/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 = .;
+}