eliminate libgcc.s

This commit is contained in:
YamaArashi 2016-09-03 04:11:10 -07:00
parent c9b1c40b86
commit 13a00040d7
7 changed files with 52 additions and 5056 deletions

View File

@ -61,11 +61,11 @@ asm/libagbbackup.o \
asm/librtc.o \
asm/librfu.o \
asm/libagbsyscall.o \
asm/libgcc.o \
asm/libc.o
DATA_ASM_OBJS := data/data1.o data/data2.o data/anim_mon_front_pics.o \
data/graphics.o
data/graphics.o data/unknown_serial_data.o data/multiboot_berry_glitch_fix.o \
data/multiboot_pokemon_colosseum.o
OBJS := $(C_OBJS) $(ASM_OBJS) $(DATA_ASM_OBJS)

File diff suppressed because it is too large Load Diff

View File

@ -12333,23 +12333,3 @@ gUnknown_089A324C:: @ 89A324C
gUnknown_089A3258:: @ 89A3258
.incbin "base_emerald.gba", 0x9a3258, 0x18
gUnknown_089A3270:: @ 89A3270
.incbin "base_emerald.gba", 0x9a3270, 0x100
gUnknown_089A3370:: @ 89A3370
.incbin "base_emerald.gba", 0x9a3370, 0x100
gUnknown_089A3470:: @ 89A3470
.incbin "base_emerald.gba", 0x9a3470, 0x30e0
gUnknown_089A6550:: @ 89A6550
.incbin "base_emerald.gba", 0x9a6550, 0xc0
gMultiBootProgram_BerryGlitchFix_Start:: @ 89A6610
.incbin "base_emerald.gba", 0x9a6610, 0x3b34
gMultiBootProgram_BerryGlitchFix_End::
gMultiBootProgram_PokemonColosseum_Start:: @ 89AA144
.incbin "base_emerald.gba", 0x9aa144, 0x28000
gMultiBootProgram_PokemonColosseum_End::

View File

@ -0,0 +1,8 @@
.section .rodata
gUnknown_089A6550:: @ 89A6550
.incbin "base_emerald.gba", 0x9a6550, 0xc0
gMultiBootProgram_BerryGlitchFix_Start:: @ 89A6610
.incbin "base_emerald.gba", 0x9a6610, 0x3b34
gMultiBootProgram_BerryGlitchFix_End::

View File

@ -0,0 +1,5 @@
.section .rodata
gMultiBootProgram_PokemonColosseum_Start:: @ 89AA144
.incbin "base_emerald.gba", 0x9aa144, 0x28000
gMultiBootProgram_PokemonColosseum_End::

View File

@ -0,0 +1,4 @@
.section .rodata
gUnknown_089A3470:: @ 89A3470
.incbin "base_emerald.gba", 0x9a3470, 0x30e0

View File

@ -16,6 +16,9 @@ SECTIONS {
iwram (NOLOAD) :
ALIGN(4)
{
. = 0x1A80;
tools/agbcc/lib/libgcc.a:dp-bit.o(.bss);
tools/agbcc/lib/libgcc.a:fp-bit.o(.bss);
}
. = 0x8000000;
@ -61,7 +64,21 @@ SECTIONS {
asm/librtc.o(.text);
asm/librfu.o(.text);
asm/libagbsyscall.o(.text);
asm/libgcc.o(.text);
tools/agbcc/lib/libgcc.a:_call_via_rX.o(.text);
tools/agbcc/lib/libgcc.a:_divdi3.o(.text);
tools/agbcc/lib/libgcc.a:_divsi3.o(.text);
tools/agbcc/lib/libgcc.a:_dvmd_tls.o(.text);
tools/agbcc/lib/libgcc.a:_fixunsdfsi.o(.text);
tools/agbcc/lib/libgcc.a:_fixunssfsi.o(.text);
tools/agbcc/lib/libgcc.a:_modsi3.o(.text);
tools/agbcc/lib/libgcc.a:_muldi3.o(.text);
tools/agbcc/lib/libgcc.a:_udivdi3.o(.text);
tools/agbcc/lib/libgcc.a:_udivsi3.o(.text);
tools/agbcc/lib/libgcc.a:_umodsi3.o(.text);
tools/agbcc/lib/libgcc.a:dp-bit.o(.text);
tools/agbcc/lib/libgcc.a:fp-bit.o(.text);
tools/agbcc/lib/libgcc.a:_lshrdi3.o(.text);
tools/agbcc/lib/libgcc.a:_negdi2.o(.text);
asm/libc.o(.text);
} =0
@ -71,6 +88,21 @@ SECTIONS {
data/data2.o(.rodata);
} =0
lib_rodata :
ALIGN(4)
{
tools/agbcc/lib/libgcc.a:_divdi3.o(.rodata);
tools/agbcc/lib/libgcc.a:_udivdi3.o(.rodata);
} =0
other_data :
ALIGN(4)
{
data/unknown_serial_data.o(.rodata);
data/multiboot_berry_glitch_fix.o(.rodata);
data/multiboot_pokemon_colosseum.o(.rodata);
} =0
gap1 :
{
gap1_start = ABSOLUTE(.);