summaryrefslogtreecommitdiff
path: root/ld_script.ld
diff options
context:
space:
mode:
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/ :
+ {
+ *(*);
+ }
}