summaryrefslogtreecommitdiff
path: root/1_hello_world/_sram.ld
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-04 00:16:02 +0300
committerOxore <oxore@protonmail.com>2023-05-04 00:16:02 +0300
commit79ff96cb2ffb140863c48803d21d10349881f907 (patch)
treeb73a97e084eac2551115272272292a657172c714 /1_hello_world/_sram.ld
parentf2016e84699c4f8a83e759fecac9e5dacd490a40 (diff)
Add Readme, move hello world into separate dir
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 = .;
+}