summaryrefslogtreecommitdiff
path: root/1_hello_world/_sram.ld
diff options
context:
space:
mode:
Diffstat (limited to '1_hello_world/_sram.ld')
-rw-r--r--1_hello_world/_sram.ld26
1 files changed, 26 insertions, 0 deletions
diff --git a/1_hello_world/_sram.ld b/1_hello_world/_sram.ld
new file mode 100644
index 0000000..e9fcc24
--- /dev/null
+++ b/1_hello_world/_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 = .;
+}