summaryrefslogtreecommitdiff
path: root/ld_script.ld
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-10-13 12:12:40 -0500
committerMarcus Huderle <huderlem@gmail.com>2018-10-13 12:12:40 -0500
commit2c0175fc457c247acf346e1b90c0bed6dfbdd201 (patch)
tree4d20c4fa1448e02a8dbb0fb80a58167656a69480 /ld_script.ld
parent21417a00146a7b88afdf8406186580d96e3024b9 (diff)
Use lib code
Diffstat (limited to 'ld_script.ld')
-rwxr-xr-xld_script.ld18
1 files changed, 17 insertions, 1 deletions
diff --git a/ld_script.ld b/ld_script.ld
index ac87ddb..57a34cd 100755
--- a/ld_script.ld
+++ b/ld_script.ld
@@ -25,12 +25,28 @@ SECTIONS
asm/start.o(.text);
src/main.o(.text);
asm/main.o(.text);
+ }=0x0
+
+ lib_text :
+ ALIGN(4)
+ {
asm/m4a_1.o(.text);
src/m4a_2.o(.text);
asm/m4a_3.o(.text);
src/m4a_4.o(.text);
asm/libagbsyscall.o(.text);
asm/unknown_lib.o(.text);
- asm/rom.o(.text);
+ *libgcc.a:_call_via_rX.o(.text);
+ } =0
+
+ rom :
+ {
+ asm/rom.o(rom)
}=0xFF
+
+ /* Discard everything not specifically mentioned above. */
+ /DISCARD/ :
+ {
+ *(*);
+ }
}