summaryrefslogtreecommitdiff
path: root/berry_fix/ld_script.txt
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-12-16 20:17:31 -0500
committerPikalaxALT <pikalaxalt@gmail.com>2018-12-16 20:18:44 -0500
commitf91b71d3955e5df5455ec7a302b45c7f174100bf (patch)
treea5bd99bd61f0af04426b4e334a37695e2139bc8a /berry_fix/ld_script.txt
parentcc84f666554ecfba83d79a29831c978a21a2d3c5 (diff)
Port over berry fix program
Diffstat (limited to 'berry_fix/ld_script.txt')
-rw-r--r--berry_fix/ld_script.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/berry_fix/ld_script.txt b/berry_fix/ld_script.txt
new file mode 100644
index 000000000..2edeaef7c
--- /dev/null
+++ b/berry_fix/ld_script.txt
@@ -0,0 +1,31 @@
+ENTRY(_start)
+
+SECTIONS {
+ . = 0x2000000;
+
+ .text :
+ ALIGN(4)
+ {
+ asm/loader.o(.text);
+ } =0
+
+ . += 0x100;
+ .rodata :
+ ALIGN(4)
+ {
+ data/data.o(.rodata);
+ } =0
+
+ . = 0x2010000;
+
+ ewram (NOLOAD) :
+ ALIGN(4)
+ {
+ gCode = .;
+ }
+
+ /DISCARD/ :
+ {
+ *(*);
+ }
+}