pmd-red/ld_script.txt

178 lines
3.9 KiB
Plaintext
Raw Normal View History

2017-12-11 06:41:46 +00:00
ENTRY(Start)
SECTIONS {
. = 0x2000000;
ewram (NOLOAD) :
ALIGN(4)
{
ewram_start = .;
<EWRAM>
. = ALIGN(4);
src/agb_flash.o(.bss);
. = ALIGN(4);
tools/agbcc/lib/libgcc.a:fp-bit.o(.bss);
. = ALIGN(4);
tools/agbcc/lib/libgcc.a:dp-bit.o(.bss);
<EWRAM2>
. = 0x40000;
}
. = 0x3000000;
iwram (NOLOAD) :
ALIGN(4)
{
iwram_start = .;
<IWRAM>
. = 0x8000;
}
. = 0x8000000;
.text :
ALIGN(4)
{
asm/crt0.o(.text);
asm/code.o(.text);
2017-12-11 21:17:08 +00:00
asm/event_flag.o(.text);
asm/code_8002774.o(.text);
2017-12-11 11:20:15 +00:00
asm/memory.o(.text);
asm/code_80035F0.o(.text);
2017-12-11 17:18:22 +00:00
src/other_random.o(.text);
2017-12-11 18:14:59 +00:00
src/util.o(.text);
2017-12-11 12:04:42 +00:00
asm/bg_palette_buffer.o(.text);
asm/code_80047E8.o(.text);
2017-12-11 08:50:59 +00:00
src/random.o(.text);
2017-12-12 00:40:00 +00:00
asm/text.o(.text);
asm/code_8009804.o(.text);
2017-12-11 19:39:11 +00:00
asm/file_system.o(.text);
asm/code_800AAA0.o(.text);
2017-12-11 06:41:46 +00:00
src/main.o(.text);
asm/code_800B540.o(.text);
2017-12-12 03:05:47 +00:00
src/flash.o(.text);
2017-12-12 01:26:33 +00:00
asm/code_800D090.o(.text);
2017-12-11 06:41:46 +00:00
asm/m4a.o(.text);
asm/syscall.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);
asm/libc.o(.text);
} =0
.rodata :
ALIGN(4)
{
data/data.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);
data/libc_data.o(.rodata);
data/data_8270000.o(.rodata);
} =0
unk_code_section :
ALIGN(4)
{
unk_code = .;
asm/code_8272724.o(.rodata);
asm/code_8272724.o(.text);
unk_code_end = .;
}
unk_code_ram_end = unk_code_ram + (unk_code_end - unk_code);
end = unk_code_ram_end;
. = 0x8300000;
unk_data :
ALIGN(4)
{
data/unk_data.o(.rodata);
}
2017-12-11 10:23:26 +00:00
. = 0x8300500;
system_sbin_section :
ALIGN(4)
{
data/system_sbin.o(.rodata);
}
. = 0x8380000;
titlemenu_sbin_section :
ALIGN(4)
{
data/titlemenu_sbin.o(.rodata);
}
. = 0x83B0000;
dungeon_sbin_section :
ALIGN(4)
{
data/dungeon_sbin.o(.rodata);
}
. = 0x8510000;
monster_sbin_section :
ALIGN(4)
{
data/monster_sbin.o(.rodata);
}
. = 0x9740000;
effect_sbin_section :
ALIGN(4)
{
data/effect_sbin.o(.rodata);
}
. = 0x9890000;
ground_sbin_section :
ALIGN(4)
{
data/ground_sbin.o(.rodata);
}
. = 0x9E60000;
ornament_sbin_section :
ALIGN(4)
{
data/ornament_sbin.o(.rodata);
}
sound_data :
ALIGN(4)
{
data/sound_data.o(.rodata);
}
2017-12-11 06:41:46 +00:00
/* DWARF 2 sections */
.debug_aranges 0 : { *(.debug_aranges) }
.debug_pubnames 0 : { *(.debug_pubnames) }
.debug_info 0 : { *(.debug_info) }
.debug_abbrev 0 : { *(.debug_abbrev) }
.debug_line 0 : { *(.debug_line) }
.debug_frame 0 : { *(.debug_frame) }
.debug_str 0 : { *(.debug_str) }
.debug_loc 0 : { *(.debug_loc) }
.debug_macinfo 0 : { *(.debug_macinfo) }
/* Discard everything not specifically mentioned above. */
/DISCARD/ :
{
*(*);
}
}