summaryrefslogtreecommitdiff
path: root/2_scroll_planes/_rom.ld
diff options
context:
space:
mode:
Diffstat (limited to '2_scroll_planes/_rom.ld')
-rw-r--r--2_scroll_planes/_rom.ld17
1 files changed, 17 insertions, 0 deletions
diff --git a/2_scroll_planes/_rom.ld b/2_scroll_planes/_rom.ld
new file mode 100644
index 0000000..916d9d9
--- /dev/null
+++ b/2_scroll_planes/_rom.ld
@@ -0,0 +1,17 @@
+SECTIONS {
+ __rom_start = ORIGIN(ROM);
+ . = ORIGIN(ROM);
+ .text : {
+ KEEP(*(.stack))
+ KEEP(*(.vectors))
+ KEEP(*(.smd_header))
+ KEEP(*(.text))
+ . = ALIGN(4);
+ *(.text*)
+ . = ALIGN(4);
+ KEEP(*(.rodata))
+ *(.rodata*)
+ . = ALIGN(4);
+ } >ROM
+ __rom_end = .;
+}