summaryrefslogtreecommitdiff
path: root/1_hello_world/_rom.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/_rom.ld
parentf2016e84699c4f8a83e759fecac9e5dacd490a40 (diff)
Add Readme, move hello world into separate dir
Diffstat (limited to '1_hello_world/_rom.ld')
-rw-r--r--1_hello_world/_rom.ld15
1 files changed, 15 insertions, 0 deletions
diff --git a/1_hello_world/_rom.ld b/1_hello_world/_rom.ld
new file mode 100644
index 0000000..55106be
--- /dev/null
+++ b/1_hello_world/_rom.ld
@@ -0,0 +1,15 @@
+SECTIONS {
+ . = ORIGIN(ROM);
+ .text : {
+ KEEP(*(.stack))
+ KEEP(*(.vectors))
+ KEEP(*(.smd_header))
+ KEEP(*(.text))
+ . = ALIGN(4);
+ *(.text*)
+ . = ALIGN(4);
+ KEEP(*(.rodata))
+ *(.rodata*)
+ . = ALIGN(4);
+ } >ROM
+}