summaryrefslogtreecommitdiff
path: root/ld_script.txt
diff options
context:
space:
mode:
Diffstat (limited to 'ld_script.txt')
-rwxr-xr-xld_script.txt187
1 files changed, 122 insertions, 65 deletions
diff --git a/ld_script.txt b/ld_script.txt
index 58e4b31..6f44f1b 100755
--- a/ld_script.txt
+++ b/ld_script.txt
@@ -12,14 +12,14 @@ SECTIONS {
ewram_start = .;
INCLUDE "sym_ewram.ld"
src/agb_flash.o(.bss);
- tools/agbcc/lib/libgcc.a:fp-bit.o(.bss);
- tools/agbcc/lib/libgcc.a:dp-bit.o(.bss);
- tools/agbcc/lib/libc.a:syscalls.o(.bss);
+ *libgcc.a:fp-bit.o(.bss);
+ *libgcc.a:dp-bit.o(.bss);
+ *libc.a:syscalls.o(.bss);
. = ALIGN(16);
INCLUDE "sym_ewram2.ld"
- tools/agbcc/lib/libc.a:impure.o(.data);
- tools/agbcc/lib/libc.a:locale.o(.data);
- tools/agbcc/lib/libc.a:mallocr.o(.data);
+ *libc.a:impure.o(.data);
+ *libc.a:locale.o(.data);
+ *libc.a:mallocr.o(.data);
gUnknown_203BC04 = .;
. = 0x40000;
}
@@ -41,19 +41,27 @@ SECTIONS {
{
asm/crt0.o(.text);
asm/code.o(.text);
+ src/code_80001E0.o(.text);
+ asm/arm_func.o(.text);
+ asm/code_2.o(.text);
+ src/code.o(.text);
asm/event_flag.o(.text);
+ src/event_flag.o(.text);
asm/code_8002774.o(.text);
src/memory.o(.text);
asm/memory.o(.text);
+ src/memory1.o(.text);
asm/code_80035F0.o(.text);
src/other_random.o(.text);
src/util.o(.text);
src/bg_palette_buffer.o(.text);
+ src/input.o(.text);
asm/input.o(.text);
asm/code_8004AA0.o(.text);
src/sprite.o(.text);
asm/sprite.o(.text);
asm/code_800558C.o(.text);
+ src/code_800558C.o(.text);
src/random.o(.text);
src/text.o(.text);
. = ALIGN(4);
@@ -63,70 +71,115 @@ SECTIONS {
asm/code_800AAA0.o(.text);
src/main.o(.text);
asm/code_800B540.o(.text);
+ src/code_800B5F0.o(.text);
+ asm/code_800B5F0.o(.text);
src/flash.o(.text);
asm/code_800D090.o(.text);
+ src/code_80118A4.o(.text);
+ asm/code_80118A4.o(.text);
+ src/code_80118A4_1.o(.text);
+ asm/fatal_system.o(.text);
src/save.o(.text);
asm/save.o(.text);
+ src/save_mid.o(.text);
+ asm/save1.o(.text);
src/save1.o(.text);
asm/code_8012A18.o(.text);
+ src/code_801D760.o(.text);
+ asm/code_801D760.o(.text);
+ src/code_8027C84_pre.o(.text);
+ asm/code_8027C84.o(.text);
+ src/code_8027C84.o(.text);
+ asm/code_803D110.o(.text);
+ src/code_80428A0.o(.text);
+ asm/code_80428A0.o(.text);
+ src/code_8048480.o(.text);
+ asm/code_8048480.o(.text);
+ src/code_80521D0.o(.text);
+ asm/code_80521D0.o(.text);
+ src/pokemon.o(.text);
+ asm/pokemon.o(.text);
+ src/pokemon_mid.o(.text);
+ asm/pokemon_1.o(.text);
+ src/pokemon_1.o(.text);
+ src/code_808DAB4.o(.text);
+ asm/code_808DAB4.o(.text);
+ src/dungeon.o(.text);
+ asm/code_809017C.o(.text);
+ src/code_8092334.o(.text);
+ asm/code_8092334.o(.text);
+ src/code_8094F88.o(.text);
+ asm/code_8094F88.o(.text);
+ src/code_8095014.o(.text);
+ asm/code_8095014.o(.text);
+ asm/code_8098468.o(.text);
+ src/code_8098BDC.o(.text);
+ asm/code_8098BDC.o(.text);
+ asm/code_809D148.o(.text);
+ asm/code_80A26CC.o(.text);
+ src/code_80A7714.o(.text);
+ asm/code_80A7714.o(.text);
asm/m4a_1.o(.text);
src/m4a.o(.text);
- asm/syscall.o(.text);
+ *libagbsyscall.a:CpuSet.o(.text);
+ *libagbsyscall.a:SoundBiasReset.o(.text);
+ *libagbsyscall.a:SoundBiasSet.o(.text);
+ *libagbsyscall.a:VBlankIntrWait.o(.text);
src/agb_flash.o(.text);
src/agb_flash_1m.o(.text);
src/agb_flash_mx.o(.text);
src/agb_flash_le.o(.text);
- tools/agbcc/lib/libgcc.a:_call_via_rX.o(.text);
- tools/agbcc/lib/libgcc.a:_divsi3.o(.text);
- tools/agbcc/lib/libgcc.a:_dvmd_tls.o(.text);
- tools/agbcc/lib/libgcc.a:_fixunssfsi.o(.text);
- tools/agbcc/lib/libgcc.a:_modsi3.o(.text);
- tools/agbcc/lib/libgcc.a:_umodsi3.o(.text);
- tools/agbcc/lib/libgcc.a:fp-bit.o(.text);
- tools/agbcc/lib/libgcc.a:_muldi3.o(.text);
- tools/agbcc/lib/libgcc.a:dp-bit.o(.text);
- tools/agbcc/lib/libgcc.a:_lshrdi3.o(.text);
- tools/agbcc/lib/libgcc.a:_negdi2.o(.text);
- tools/agbcc/lib/libc.a:memcpy.o(.text);
- tools/agbcc/lib/libc.a:memset.o(.text);
- tools/agbcc/lib/libc.a:sprintf.o(.text);
- tools/agbcc/lib/libc.a:strcat.o(.text);
- tools/agbcc/lib/libc.a:strcmp.o(.text);
- tools/agbcc/lib/libc.a:strcpy.o(.text);
- tools/agbcc/lib/libc.a:strlen.o(.text);
- tools/agbcc/lib/libc.a:strncpy.o(.text);
- tools/agbcc/lib/libc.a:vfprintf.o(.text);
- tools/agbcc/lib/libc.a:vsprintf.o(.text);
- tools/agbcc/lib/libc.a:wsetup.o(.text);
- tools/agbcc/lib/libc.a:dtoa.o(.text);
- tools/agbcc/lib/libc.a:fflush.o(.text);
- tools/agbcc/lib/libc.a:findfp.o(.text);
- tools/agbcc/lib/libc.a:freer.o(.text);
- tools/agbcc/lib/libc.a:fvwrite.o(.text);
- tools/agbcc/lib/libc.a:fwalk.o(.text);
- tools/agbcc/lib/libc.a:locale.o(.text);
- tools/agbcc/lib/libc.a:makebuf.o(.text);
- tools/agbcc/lib/libc.a:mallocr.o(.text);
- tools/agbcc/lib/libc.a:mbtowc_r.o(.text);
- tools/agbcc/lib/libc.a:memchr.o(.text);
- tools/agbcc/lib/libc.a:memmove.o(.text);
- tools/agbcc/lib/libc.a:mlock.o(.text);
- tools/agbcc/lib/libc.a:mprec.o(.text);
- tools/agbcc/lib/libc.a:s_isinf.o(.text);
- tools/agbcc/lib/libc.a:s_isnan.o(.text);
- tools/agbcc/lib/libc.a:sbrkr.o(.text);
- tools/agbcc/lib/libc.a:stdio.o(.text);
- tools/agbcc/lib/libc.a:syscalls.o(.text);
- tools/agbcc/lib/libc.a:writer.o(.text);
- tools/agbcc/lib/libc.a:callocr.o(.text);
- tools/agbcc/lib/libc.a:closer.o(.text);
- tools/agbcc/lib/libc.a:errno.o(.text);
- tools/agbcc/lib/libc.a:fstatr.o(.text);
- tools/agbcc/lib/libc.a:abort.o(.text);
- tools/agbcc/lib/libc.a:libcfunc.o(.text);
- tools/agbcc/lib/libc.a:lseekr.o(.text);
- tools/agbcc/lib/libc.a:readr.o(.text);
- tools/agbcc/lib/libgcc.a:_udivsi3.o(.text);
+ *libgcc.a:_call_via_rX.o(.text);
+ *libgcc.a:_divsi3.o(.text);
+ *libgcc.a:_dvmd_tls.o(.text);
+ *libgcc.a:_fixunssfsi.o(.text);
+ *libgcc.a:_modsi3.o(.text);
+ *libgcc.a:_umodsi3.o(.text);
+ *libgcc.a:fp-bit.o(.text);
+ *libgcc.a:_muldi3.o(.text);
+ *libgcc.a:dp-bit.o(.text);
+ *libgcc.a:_lshrdi3.o(.text);
+ *libgcc.a:_negdi2.o(.text);
+ *libc.a:memcpy.o(.text);
+ *libc.a:memset.o(.text);
+ *libc.a:sprintf.o(.text);
+ *libc.a:strcat.o(.text);
+ *libc.a:strcmp.o(.text);
+ *libc.a:strcpy.o(.text);
+ *libc.a:strlen.o(.text);
+ *libc.a:strncpy.o(.text);
+ *libc.a:vfprintf.o(.text);
+ *libc.a:vsprintf.o(.text);
+ *libc.a:wsetup.o(.text);
+ *libc.a:dtoa.o(.text);
+ *libc.a:fflush.o(.text);
+ *libc.a:findfp.o(.text);
+ *libc.a:freer.o(.text);
+ *libc.a:fvwrite.o(.text);
+ *libc.a:fwalk.o(.text);
+ *libc.a:locale.o(.text);
+ *libc.a:makebuf.o(.text);
+ *libc.a:mallocr.o(.text);
+ *libc.a:mbtowc_r.o(.text);
+ *libc.a:memchr.o(.text);
+ *libc.a:memmove.o(.text);
+ *libc.a:mlock.o(.text);
+ *libc.a:mprec.o(.text);
+ *libc.a:s_isinf.o(.text);
+ *libc.a:s_isnan.o(.text);
+ *libc.a:sbrkr.o(.text);
+ *libc.a:stdio.o(.text);
+ *libc.a:syscalls.o(.text);
+ *libc.a:writer.o(.text);
+ *libc.a:callocr.o(.text);
+ *libc.a:closer.o(.text);
+ *libc.a:errno.o(.text);
+ *libc.a:fstatr.o(.text);
+ *libc.a:abort.o(.text);
+ *libc.a:libcfunc.o(.text);
+ *libc.a:lseekr.o(.text);
+ *libc.a:readr.o(.text);
+ *libgcc.a:_udivsi3.o(.text);
} =0
.rodata :
@@ -135,18 +188,21 @@ SECTIONS {
data/data.o(.rodata);
src/file_system.o(.rodata);
data/data_80B9BB8.o(.rodata);
+ data/personality_test.o(.rodata);
+ src/personality_test.o(.rodata);
+ data/data_80F4278.o(.rodata);
src/m4a_tables.o(.rodata);
src/agb_flash.o(.rodata);
src/agb_flash_1m.o(.rodata);
src/agb_flash_mx.o(.rodata);
src/agb_flash_le.o(.rodata);
- tools/agbcc/lib/libc.a:sprintf.o(.rodata);
- tools/agbcc/lib/libc.a:vfprintf.o(.rodata);
- tools/agbcc/lib/libc.a:dtoa.o(.rodata);
- tools/agbcc/lib/libc.a:impure.o(.rodata);
- tools/agbcc/lib/libc.a:locale.o(.rodata);
- tools/agbcc/lib/libc.a:mprec.o(.rodata);
- tools/agbcc/lib/libc.a:syscalls.o(.rodata);
+ *libc.a:sprintf.o(.rodata);
+ *libc.a:vfprintf.o(.rodata);
+ *libc.a:dtoa.o(.rodata);
+ *libc.a:impure.o(.rodata);
+ *libc.a:locale.o(.rodata);
+ *libc.a:mprec.o(.rodata);
+ *libc.a:syscalls.o(.rodata);
. = ALIGN(4);
data/data_8270000.o(.rodata);
} =0
@@ -156,6 +212,7 @@ SECTIONS {
{
unk_code = .;
asm/code_8272724.o(.rodata);
+ src/code_8272724.o(.text);
asm/code_8272724.o(.text);
unk_code_end = .;
}