summaryrefslogtreecommitdiff
path: root/_rom.ld
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-03 01:23:56 +0300
committerOxore <oxore@protonmail.com>2023-05-03 01:29:14 +0300
commitf2016e84699c4f8a83e759fecac9e5dacd490a40 (patch)
treeb4a94dae0a8a192fd2d780cde5df5fe1280c7474 /_rom.ld
Initial commit
Diffstat (limited to '_rom.ld')
-rw-r--r--_rom.ld15
1 files changed, 15 insertions, 0 deletions
diff --git a/_rom.ld b/_rom.ld
new file mode 100644
index 0000000..55106be
--- /dev/null
+++ b/_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
+}