sm64/sm64.ld
2019-10-05 15:08:05 -04:00

808 lines
31 KiB
Plaintext
Executable File

OUTPUT_ARCH (mips)
/* include/segments.h defines SEG_POOL_START, SEG_POOL_END, SEG_BUFFERS,
* SEG_GODDARD, SEG_MAIN, SEG_ENGINE, SEG_FRAMEBUFFERS */
#include "segments.h"
#define BEGIN_SEG(name, addr) \
_##name##SegmentStart = ADDR(.name); \
_##name##SegmentRomStart = __romPos; \
.name addr : AT(__romPos)
#define END_SEG(name) \
_##name##SegmentEnd = ADDR(.name) + SIZEOF(.name); \
_##name##SegmentRomEnd = __romPos + SIZEOF(.name); \
__romPos += SIZEOF(.name);
#define BEGIN_NOLOAD(name) \
_##name##SegmentNoloadStart = ADDR(.name.noload); \
.name.noload (NOLOAD) :
#define END_NOLOAD(name) \
_##name##SegmentNoloadEnd = ADDR(.name.noload) + SIZEOF(.name.noload);
#define MIO0_SEG(name, segAddr) \
BEGIN_SEG(name##_mio0, segAddr) \
{ \
BUILD_DIR/mio0/name.mio0.o(.data); \
. = ALIGN(0x10); \
} \
END_SEG(name##_mio0)
#define MIO0_EU_SEG(name, segAddr) \
BEGIN_SEG(name##_mio0, segAddr) \
{ \
BUILD_DIR/mio0/eu/name.mio0.o(.data); \
. = ALIGN(0x10); \
} \
END_SEG(name##_mio0)
#define STANDARD_LEVEL(name) \
BEGIN_SEG(name##_segment_7, 0x07000000) \
{ \
BUILD_DIR/bin/name/header.o(.seg07); \
} \
END_SEG(name##_segment_7) \
BEGIN_SEG(name, 0x0E000000) \
{ \
BUILD_DIR/bin/name/header.o(.level); \
} \
END_SEG(name)
#define STANDARD_OBJECTS(name, segAddr, geoAddr) \
MIO0_SEG(name, segAddr) \
BEGIN_SEG(name##_geo, geoAddr) \
{ \
BUILD_DIR/actors/name##_geo.o(.geo); \
. = ALIGN(0x10); \
} \
END_SEG(name##_geo)
SECTIONS
{
__romPos = 0;
BEGIN_SEG(boot, 0x04000000)
{
BUILD_DIR/data/rom_header.o(.text);
BUILD_DIR/asm/boot.o(.text);
}
END_SEG(boot)
/* lib/src/__osDevMgrMain.c and lib/src/osCreateViManager.c contain infinite
* loops compiled without -g, which cause the return statements and the .o
* files themselves to be aligned to 32-byte boundaries. But in the binary,
* they are actually aligned only to 16 bytes! We force this to happen using
* a SUBALIGN directive. */
BEGIN_SEG(main, SEG_MAIN) SUBALIGN(16)
{
BUILD_DIR/asm/entry.o(.text);
BUILD_DIR/src/game/crash_screen.o(.text);
BUILD_DIR/src/game/main.o(.text);
BUILD_DIR/src/game/display.o(.text);
BUILD_DIR/src/game/game.o(.text);
BUILD_DIR/src/game/sound_init.o(.text);
BUILD_DIR/src/game/level_update.o(.text);
BUILD_DIR/src/game/interaction.o(.text);
BUILD_DIR/src/game/mario.o(.text);
BUILD_DIR/src/game/mario_step.o(.text);
BUILD_DIR/src/game/mario_actions_cutscene.o(.text);
BUILD_DIR/src/game/mario_actions_automatic.o(.text);
BUILD_DIR/src/game/mario_actions_stationary.o(.text);
BUILD_DIR/src/game/mario_actions_moving.o(.text);
BUILD_DIR/src/game/mario_actions_airborne.o(.text);
BUILD_DIR/src/game/mario_actions_submerged.o(.text);
BUILD_DIR/src/game/mario_actions_object.o(.text);
BUILD_DIR/src/game/level_geo.o(.text);
BUILD_DIR/src/game/mario_misc.o(.text);
BUILD_DIR/src/game/memory.o(.text);
BUILD_DIR/src/game/save_file.o(.text);
BUILD_DIR/src/game/area.o(.text);
BUILD_DIR/src/game/rendering_graph_node.o(.text);
BUILD_DIR/src/game/profiler.o(.text);
BUILD_DIR/asm/decompress.o(.text);
BUILD_DIR/src/game/camera.o(.text);
BUILD_DIR/src/game/debug_course.o(.text);
BUILD_DIR/src/game/object_list_processor.o(.text);
#if VERSION_EU
BUILD_DIR/src/game/behavior_actions.o(.text);
BUILD_DIR/src/game/platform_displacement.o(.text);
BUILD_DIR/src/game/spawn_sound.o(.text);
BUILD_DIR/src/game/debug.o(.text);
BUILD_DIR/src/game/screen_transition.o(.text);
BUILD_DIR/src/game/shadow.o(.text);
BUILD_DIR/src/game/skybox.o(.text);
BUILD_DIR/src/game/moving_texture.o(.text);
BUILD_DIR/src/game/geo_misc.o(.text);
BUILD_DIR/src/game/paintings.o(.text);
BUILD_DIR/src/game/print.o(.text);
BUILD_DIR/src/game/ingame_menu.o(.text);
#else
BUILD_DIR/src/game/object_helpers.o(.text);
BUILD_DIR/src/game/behavior_actions.o(.text);
BUILD_DIR/src/game/platform_displacement.o(.text);
BUILD_DIR/src/game/object_collision.o(.text);
BUILD_DIR/src/game/spawn_object.o(.text);
BUILD_DIR/src/game/spawn_sound.o(.text);
BUILD_DIR/src/game/debug.o(.text);
BUILD_DIR/src/game/screen_transition.o(.text);
BUILD_DIR/src/game/shadow.o(.text);
BUILD_DIR/src/game/skybox.o(.text);
BUILD_DIR/src/game/moving_texture.o(.text);
BUILD_DIR/src/game/geo_misc.o(.text);
BUILD_DIR/src/game/paintings.o(.text);
BUILD_DIR/src/game/print.o(.text);
BUILD_DIR/src/game/ingame_menu.o(.text);
#endif
BUILD_DIR/src/game/envfx_snow.o(.text);
BUILD_DIR/src/game/envfx_bubbles.o(.text);
BUILD_DIR/src/game/macro_special_objects.o(.text);
BUILD_DIR/src/game/hud.o(.text);
BUILD_DIR/src/game/obj_behaviors.o(.text);
BUILD_DIR/src/game/obj_behaviors_2.o(.text);
BUILD_DIR/src/audio/synthesis.o(.text);
BUILD_DIR/src/audio/memory.o(.text);
BUILD_DIR/src/audio/load.o(.text);
BUILD_DIR/src/audio/playback.o(.text);
BUILD_DIR/src/audio/effects.o(.text);
BUILD_DIR/src/audio/seqplayer.o(.text);
BUILD_DIR/src/audio/external.o(.text);
#ifdef VERSION_EU
// UNSORTED (find where these are)
BUILD_DIR/src/game/object_helpers.o(.text);
BUILD_DIR/src/game/object_collision.o(.text);
BUILD_DIR/src/game/spawn_object.o(.text);
#endif
BUILD_DIR/src/game*.o(.text);
BUILD_DIR/src/audio*.o(.text);
#if VERSION_US
. += 0x40;
#endif
BUILD_DIR/libultra.a:osSetTime.o(.text);
BUILD_DIR/libultra.a:osMapTLB.o(.text);
BUILD_DIR/libultra.a:osUnmapTLBAll.o(.text);
BUILD_DIR/libultra.a:sprintf.o(.text);
BUILD_DIR/libultra.a:osCreateMesgQueue.o(.text);
BUILD_DIR/libultra.a:osSetEventMesg.o(.text);
BUILD_DIR/libultra.a:osViSetEvent.o(.text);
BUILD_DIR/libultra.a:osCreateThread.o(.text);
BUILD_DIR/libultra.a:osRecvMesg.o(.text);
BUILD_DIR/libultra.a:osSpTaskLoadGo.o(.text);
BUILD_DIR/libultra.a:osSpTaskYield.o(.text);
BUILD_DIR/libultra.a:osSendMesg.o(.text);
BUILD_DIR/libultra.a:osSpTaskYielded.o(.text);
BUILD_DIR/libultra.a:osStartThread.o(.text);
BUILD_DIR/libultra.a:osWritebackDCacheAll.o(.text);
BUILD_DIR/libultra.a:osCreateViManager.o(.text);
BUILD_DIR/libultra.a:osViSetMode.o(.text);
BUILD_DIR/libultra.a:osViBlack.o(.text);
BUILD_DIR/libultra.a:osViSetSpecialFeatures.o(.text);
BUILD_DIR/libultra.a:osCreatePiManager.o(.text);
BUILD_DIR/libultra.a:osSetThreadPri.o(.text);
BUILD_DIR/libultra.a:osInitialize.o(.text);
BUILD_DIR/libultra.a:osViSwapBuffer.o(.text);
BUILD_DIR/libultra.a:sqrtf.o(.text);
BUILD_DIR/libultra.a:osContStartReadData.o(.text);
BUILD_DIR/libultra.a:osContInit.o(.text);
BUILD_DIR/libultra.a:osEepromProbe.o(.text);
BUILD_DIR/libultra.a:llmuldiv.o(.text);
BUILD_DIR/libultra.a:osInvalDCache.o(.text);
BUILD_DIR/libultra.a:osPiStartDma.o(.text);
BUILD_DIR/libultra.a:bzero.o(.text);
BUILD_DIR/libultra.a:osInvalICache.o(.text);
BUILD_DIR/libultra.a:osEepromLongRead.o(.text);
BUILD_DIR/libultra.a:osEepromLongWrite.o(.text);
BUILD_DIR/libultra.a:bcopy.o(.text);
BUILD_DIR/libultra.a:guOrthoF.o(.text);
BUILD_DIR/libultra.a:guPerspectiveF.o(.text);
BUILD_DIR/libultra.a:osGetTime.o(.text);
BUILD_DIR/libultra.a:llconv.o(.text);
BUILD_DIR/libultra.a:cosf.o(.text);
BUILD_DIR/libultra.a:sinf.o(.text);
BUILD_DIR/libultra.a:guTranslateF.o(.text);
BUILD_DIR/libultra.a:guRotateF.o(.text);
BUILD_DIR/libultra.a:guScaleF.o(.text);
BUILD_DIR/libultra.a:osAiSetFrequency.o(.text);
BUILD_DIR/libultra.a:alBnkfNew.o(.text);
BUILD_DIR/libultra.a:osWritebackDCache.o(.text);
BUILD_DIR/libultra.a:osAiGetLength.o(.text);
BUILD_DIR/libultra.a:osAiSetNextBuffer.o(.text);
BUILD_DIR/libultra.a:osTimer.o(.text);
BUILD_DIR/libultra.a:_Printf.o(.text);
BUILD_DIR/libultra.a:string.o(.text);
BUILD_DIR/libultra.a:__osDequeueThread.o(.text);
BUILD_DIR/libultra.a:__osDisableInt.o(.text);
BUILD_DIR/libultra.a:__osRestoreInt.o(.text);
BUILD_DIR/libultra.a:__osViInit.o(.text);
BUILD_DIR/libultra.a:__osExceptionPreamble.o(.text);
BUILD_DIR/libultra.a:osVirtualToPhysical.o(.text);
BUILD_DIR/libultra.a:__osSpSetStatus.o(.text);
BUILD_DIR/libultra.a:__osSpSetPc.o(.text);
BUILD_DIR/libultra.a:__osSpRawStartDma.o(.text);
BUILD_DIR/libultra.a:__osSpDeviceBusy.o(.text);
BUILD_DIR/libultra.a:__osSpGetStatus.o(.text);
BUILD_DIR/libultra.a:osGetThreadPri.o(.text);
BUILD_DIR/libultra.a:__osViGetCurrentContext.o(.text);
BUILD_DIR/libultra.a:__osViSwapContext.o(.text);
BUILD_DIR/libultra.a:osGetCount.o(.text);
BUILD_DIR/libultra.a:__osPiCreateAccessQueue.o(.text);
BUILD_DIR/libultra.a:osPiRawStartDma.o(.text);
BUILD_DIR/libultra.a:__osDevMgrMain.o(.text);
BUILD_DIR/libultra.a:__osSetSR.o(.text);
BUILD_DIR/libultra.a:__osGetSR.o(.text);
BUILD_DIR/libultra.a:__osSetFpcCsr.o(.text);
BUILD_DIR/libultra.a:__osSiRawReadIo.o(.text);
BUILD_DIR/libultra.a:__osSiRawWriteIo.o(.text);
BUILD_DIR/libultra.a:osMapTLBRdb.o(.text);
BUILD_DIR/libultra.a:osPiRawReadIo.o(.text);
#if VERSION_JP
. += 0x40;
#endif
BUILD_DIR/libultra.a:__osSiCreateAccessQueue.o(.text);
BUILD_DIR/libultra.a:__osSiRawStartDma.o(.text);
BUILD_DIR/libultra.a:osSetTimer.o(.text);
BUILD_DIR/libultra.a:osEepromWrite.o(.text);
BUILD_DIR/libultra.a:osJamMesg.o(.text);
BUILD_DIR/libultra.a:osPiGetCmdQueue.o(.text);
BUILD_DIR/libultra.a:osEepromRead.o(.text);
BUILD_DIR/libultra.a:guMtxF2L.o(.text);
BUILD_DIR/libultra.a:guMtxIdentF.o(.text);
BUILD_DIR/libultra.a:guNormalize.o(.text);
BUILD_DIR/libultra.a:__osAiDeviceBusy.o(.text);
BUILD_DIR/libultra.a:__osSetCompare.o(.text);
BUILD_DIR/libultra.a:_Litob.o(.text);
BUILD_DIR/libultra.a:_Ldtob.o(.text);
BUILD_DIR/libultra.a:kdebugserver.o(.text);
BUILD_DIR/libultra.a:__osSyncPutChars.o(.text);
BUILD_DIR/libultra.a:osSetIntMask.o(.text);
BUILD_DIR/libultra.a:osDestroyThread.o(.text);
BUILD_DIR/libultra.a:__osProbeTLB.o(.text);
BUILD_DIR/libultra.a:__osSiDeviceBusy.o(.text);
BUILD_DIR/libultra.a:ldiv.o(.text);
BUILD_DIR/libultra.a:__osGetCause.o(.text);
BUILD_DIR/libultra.a:__osAtomicDec.o(.text);
BUILD_DIR/libultra.a:guLookAtRef.o(.text); /* Fast3DEX2 only */
BUILD_DIR/libultra.a:*.o(.text);
BUILD_DIR/lib/rsp.o(.text);
/* data */
BUILD_DIR/src/game/crash_screen.o(.data*);
BUILD_DIR/src/game/main.o(.data*);
BUILD_DIR/src/game/display.o(.data*);
BUILD_DIR/src/game/game.o(.data*);
BUILD_DIR/src/game/sound_init.o(.data*);
BUILD_DIR/src/game/level_update.o(.data*);
BUILD_DIR/src/game/interaction.o(.data*);
BUILD_DIR/src/game/mario.o(.data*);
BUILD_DIR/src/game/mario_step.o(.data*);
BUILD_DIR/src/game/mario_actions_cutscene.o(.data*);
BUILD_DIR/src/game/mario_actions_moving.o(.data*);
BUILD_DIR/src/game/mario_actions_submerged.o(.data*);
BUILD_DIR/src/game/mario_actions_object.o(.data*);
BUILD_DIR/src/game/mario_misc.o(.data*);
BUILD_DIR/src/game/memory.o(.data*);
BUILD_DIR/src/game/save_file.o(.data*);
BUILD_DIR/src/game/area.o(.data*);
BUILD_DIR/src/game/rendering_graph_node.o(.data*);
BUILD_DIR/src/game/profiler.o(.data*);
BUILD_DIR/src/game/camera.o(.data*);
BUILD_DIR/src/game/object_list_processor.o(.data*);
BUILD_DIR/src/game/object_helpers.o(.data*);
BUILD_DIR/src/game/behavior_actions.o(.data*);
BUILD_DIR/src/game/platform_displacement.o(.data*);
BUILD_DIR/src/game/spawn_sound.o(.data*);
BUILD_DIR/src/game/debug.o(.data*);
BUILD_DIR/src/game/screen_transition.o(.data*);
BUILD_DIR/src/game/shadow.o(.data*);
BUILD_DIR/src/game/skybox.o(.data*);
BUILD_DIR/src/game/moving_texture.o(.data*);
BUILD_DIR/src/game/geo_misc.o(.data*);
BUILD_DIR/src/game/paintings.o(.data*);
BUILD_DIR/src/game/print.o(.data*);
BUILD_DIR/src/game/ingame_menu.o(.data*);
BUILD_DIR/src/game/envfx_snow.o(.data*);
BUILD_DIR/src/game/envfx_bubbles.o(.data*);
BUILD_DIR/src/game/macro_special_objects.o(.data*);
BUILD_DIR/src/game/hud.o(.data*);
BUILD_DIR/src/game/obj_behaviors.o(.data*);
BUILD_DIR/src/game/obj_behaviors_2.o(.data*);
BUILD_DIR/src/game*.o(.data*);
BUILD_DIR/src/audio/external.o(.data*);
BUILD_DIR/src/audio/data.o(.data*);
BUILD_DIR/src/audio*.o(.data*);
BUILD_DIR/libultra.a:osCreateViManager.o(.data*);
BUILD_DIR/libultra.a:osCreatePiManager.o(.data*);
BUILD_DIR/libultra.a:osInitialize.o(.data*);
BUILD_DIR/libultra.a:osContInit.o(.data*);
BUILD_DIR/libultra.a:osAiSetNextBuffer.o(.data*);
BUILD_DIR/libultra.a:osTimer.o(.data*);
BUILD_DIR/libultra.a:_Printf.o(.data*);
BUILD_DIR/libultra.a:__osDequeueThread.o(.data*);
BUILD_DIR/libultra.a:__osViInit.o(.data*);
BUILD_DIR/libultra.a:__osExceptionPreamble.o(.data*);
BUILD_DIR/libultra.a:__osPiCreateAccessQueue.o(.data*);
BUILD_DIR/libultra.a:__osSiCreateAccessQueue.o(.data*);
BUILD_DIR/libultra.a:_Litob.o(.data*);
BUILD_DIR/libultra.a:_Ldtob.o(.data*);
BUILD_DIR/libultra.a:osViData.o(.data*);
BUILD_DIR/libultra.a:kdebugserver.o(.data*);
BUILD_DIR/libultra.a:__osSyncPutChars.o(.data*);
BUILD_DIR/libultra.a:guRotateF.o(.data*);
BUILD_DIR/libultra.a:*.o(.data*);
/* rodata */
BUILD_DIR/src/game/crash_screen.o(.rodata*);
BUILD_DIR/src/game/main.o(.rodata*);
BUILD_DIR/src/game/game.o(.rodata*);
BUILD_DIR/src/game/sound_init.o(.rodata*);
BUILD_DIR/src/game/level_update.o(.rodata*);
BUILD_DIR/src/game/interaction.o(.rodata*);
BUILD_DIR/src/game/mario.o(.rodata*);
BUILD_DIR/src/game/mario_step.o(.rodata*);
BUILD_DIR/src/game/mario_actions_cutscene.o(.rodata*);
BUILD_DIR/src/game/mario_actions_automatic.o(.rodata*);
BUILD_DIR/src/game/mario_actions_stationary.o(.rodata*);
BUILD_DIR/src/game/mario_actions_moving.o(.rodata*);
BUILD_DIR/src/game/mario_actions_airborne.o(.rodata*);
BUILD_DIR/src/game/mario_actions_submerged.o(.rodata*);
BUILD_DIR/src/game/mario_actions_object.o(.rodata*);
BUILD_DIR/src/game/mario_misc.o(.rodata*);
BUILD_DIR/src/game/area.o(.rodata*);
BUILD_DIR/src/game/rendering_graph_node.o(.rodata*);
BUILD_DIR/src/game/camera.o(.rodata*);
BUILD_DIR/src/game/object_list_processor.o(.rodata*);
BUILD_DIR/src/game/object_helpers.o(.rodata*);
BUILD_DIR/src/game/behavior_actions.o(.rodata*);
BUILD_DIR/src/game/object_collision.o(.rodata*);
BUILD_DIR/src/game/spawn_object.o(.rodata*);
BUILD_DIR/src/game/spawn_sound.o(.rodata*);
BUILD_DIR/src/game/debug.o(.rodata*);
BUILD_DIR/src/game/screen_transition.o(.rodata*);
BUILD_DIR/src/game/shadow.o(.rodata*);
BUILD_DIR/src/game/skybox.o(.rodata*);
BUILD_DIR/src/game/moving_texture.o(.rodata*);
BUILD_DIR/src/game/geo_misc.o(.rodata*);
BUILD_DIR/src/game/paintings.o(.rodata*);
BUILD_DIR/src/game/print.o(.rodata*);
BUILD_DIR/src/game/ingame_menu.o(.rodata*);
BUILD_DIR/src/game/envfx_snow.o(.rodata*);
BUILD_DIR/src/game/envfx_bubbles.o(.rodata*);
BUILD_DIR/src/game/macro_special_objects.o(.rodata*);
BUILD_DIR/src/game/hud.o(.rodata*);
BUILD_DIR/src/game/obj_behaviors.o(.rodata*);
BUILD_DIR/src/game/obj_behaviors_2.o(.rodata*);
BUILD_DIR/src/game*.o(.rodata*);
BUILD_DIR/src/audio/synthesis.o(.rodata*);
BUILD_DIR/src/audio/memory.o(.rodata*);
BUILD_DIR/src/audio/playback.o(.rodata*);
BUILD_DIR/src/audio/effects.o(.rodata*);
BUILD_DIR/src/audio/seqplayer.o(.rodata*);
BUILD_DIR/src/audio/external.o(.rodata*);
BUILD_DIR/src/audio*.o(.rodata*);
BUILD_DIR/libultra.a:guPerspectiveF.o(.rodata*);
BUILD_DIR/libultra.a:llconv.o(.rodata*);
BUILD_DIR/libultra.a:cosf.o(.rodata*);
BUILD_DIR/libultra.a:sinf.o(.rodata*);
BUILD_DIR/libultra.a:guRotateF.o(.rodata*);
BUILD_DIR/libultra.a:_Printf.o(.rodata*);
BUILD_DIR/libultra.a:__osExceptionPreamble.o(.rodata*);
BUILD_DIR/libultra.a:NaN.o(.rodata*);
BUILD_DIR/libultra.a:_Litob.o(.rodata*);
BUILD_DIR/libultra.a:_Ldtob.o(.rodata*);
BUILD_DIR/libultra.a:osSetIntMask.o(.rodata*);
BUILD_DIR/libultra.a:guLookAtRef.o(.rodata*); /* Fast3DEX2 only */
BUILD_DIR/libultra.a:*.o(.rodata*);
BUILD_DIR/lib/rsp.o(.rodata*);
}
END_SEG(main)
BEGIN_NOLOAD(main)
{
BUILD_DIR/src/game/crash_screen.o(.bss*);
BUILD_DIR/src/game/main.o(.bss*);
BUILD_DIR/src/game/game.o(.bss*);
BUILD_DIR/src/game/sound_init.o(.bss*);
BUILD_DIR/src/game/level_update.o(.bss*);
BUILD_DIR/src/game/interaction.o(.bss*);
BUILD_DIR/src/game/mario.o(.bss*);
BUILD_DIR/src/game/mario_actions_cutscene.o(.bss*);
BUILD_DIR/src/game/mario_actions_moving.o(.bss*);
BUILD_DIR/src/game/mario_actions_submerged.o(.bss*);
BUILD_DIR/src/game/mario_misc.o(.bss*);
BUILD_DIR/src/game/memory.o(.bss*);
BUILD_DIR/src/game/save_file.o(.bss*);
BUILD_DIR/src/game/area.o(.bss*);
BUILD_DIR/src/game/rendering_graph_node.o(.bss*);
BUILD_DIR/src/game/profiler.o(.bss*);
BUILD_DIR/src/game/camera.o(.bss*);
BUILD_DIR/src/game/object_list_processor.o(.bss*);
BUILD_DIR/src/game/room.o(.bss*);
BUILD_DIR/src/game/object_helpers.o(.bss*);
BUILD_DIR/src/game/behavior_actions.o(.bss*);
BUILD_DIR/src/game/debug.o(.bss*);
BUILD_DIR/src/game/shadow.o(.bss*);
BUILD_DIR/src/game/skybox.o(.bss*);
BUILD_DIR/src/game/moving_texture.o(.bss*);
BUILD_DIR/src/game/geo_misc.o(.bss*);
BUILD_DIR/src/game/paintings.o(.bss*);
BUILD_DIR/src/game/print.o(.bss*);
BUILD_DIR/src/game/ingame_menu.o(.bss*);
BUILD_DIR/src/game/envfx_snow.o(.bss*);
BUILD_DIR/src/game/envfx_bubbles.o(.bss*);
BUILD_DIR/src/game/macro_special_objects.o(.bss*)
BUILD_DIR/src/game/hud.o(.bss*);
BUILD_DIR/src/game/obj_behaviors.o(.bss*);
BUILD_DIR/src/game/obj_behaviors_2.o(.bss*);
BUILD_DIR/src/game*.o(.bss*);
BUILD_DIR/src/audio/external.o(.bss*);
BUILD_DIR/libultra.a:osSetEventMesg.o(.bss*);
BUILD_DIR/libultra.a:osSpTaskLoadGo.o(.bss*);
BUILD_DIR/libultra.a:osCreateViManager.o(.bss*);
BUILD_DIR/libultra.a:osCreatePiManager.o(.bss*);
BUILD_DIR/libultra.a:osInitialize.o(.bss*);
BUILD_DIR/libultra.a:osContStartReadData.o(.bss*);
BUILD_DIR/libultra.a:osContInit.o(.bss*);
BUILD_DIR/libultra.a:guRotateF.o(.bss*);
BUILD_DIR/libultra.a:osTimer.o(.bss*);
BUILD_DIR/libultra.a:_Printf.o(.bss*);
BUILD_DIR/libultra.a:__osPiCreateAccessQueue.o(.bss*);
BUILD_DIR/libultra.a:__osSiCreateAccessQueue.o(.bss*);
BUILD_DIR/libultra.a:osEepromWrite.o(.bss*);
BUILD_DIR/libultra.a:kdebugserver.o(.bss*);
BUILD_DIR/libultra.a:*.o(.bss*);
}
END_NOLOAD(main)
ASSERT((. <= SEG_ENGINE), "Error: main segment extended into engine.")
BEGIN_SEG(engine, SEG_ENGINE)
{
BUILD_DIR/src/engine/math_util.o(.text);
BUILD_DIR/src/engine/graph_node.o(.text);
BUILD_DIR/src/engine/graph_node_manager.o(.text);
BUILD_DIR/src/engine/geo_layout.o(.text);
BUILD_DIR/src/engine/level_script.o(.text);
BUILD_DIR/src/engine/surface_collision.o(.text);
BUILD_DIR/src/engine/surface_load.o(.text);
BUILD_DIR/src/engine/behavior_script.o(.text);
BUILD_DIR/src/engine*.o(.text);
/* data */
BUILD_DIR/src/engine/graph_node.o(.data*);
BUILD_DIR/src/engine/graph_node_manager.o(.data*);
BUILD_DIR/src/engine/math_util.o(.data*);
BUILD_DIR/data/trig_tables.o(.data*);
BUILD_DIR/src/engine/geo_layout.o(.data*);
BUILD_DIR/src/engine/level_script.o(.data*);
BUILD_DIR/src/engine/behavior_script.o(.data*);
BUILD_DIR/src/engine*.o(.data*);
/* rodata */
BUILD_DIR/src/engine/math_util.o(.rodata*);
BUILD_DIR/src/engine/level_script.o(.rodata*);
BUILD_DIR/src/engine/surface_collision.o(.rodata*);
BUILD_DIR/src/engine/surface_load.o(.rodata*);
BUILD_DIR/src/engine*.o(.rodata*);
}
END_SEG(engine)
BEGIN_NOLOAD(engine)
{
BUILD_DIR/src/engine/math_util.o(.bss*);
BUILD_DIR/src/engine/geo_layout.o(.bss*);
BUILD_DIR/src/engine/level_script.o(.bss*);
BUILD_DIR/src/engine/surface_collision.o(.bss*);
BUILD_DIR/src/engine/surface_load.o(.bss*);
BUILD_DIR/src/engine/behavior_script.o(.bss*);
BUILD_DIR/src/engine*.o(.bss*);
}
END_NOLOAD(engine)
ASSERT((. <= SEG_FRAMEBUFFERS), "Error: engine segment extended into framebuffers.")
. = SEG_FRAMEBUFFERS;
BEGIN_NOLOAD(framebuffers)
{
BUILD_DIR/data/framebuffers.o(.bss*);
}
END_NOLOAD(framebuffers)
__expansionRamStart = 0x80400000;
ASSERT((. <= __expansionRamStart), "Error: RDRAM expanded into Expansion RAM, despite Expansion RAM not being defined.")
BEGIN_SEG(entry, 0x10000000)
{
BUILD_DIR/levels/entry.o(.level);
}
END_SEG(entry)
/* load MIO0 and level data */
MIO0_SEG(segment2, 0x02000000)
#ifdef VERSION_EU
MIO0_EU_SEG(translation_en, 0x19000000)
MIO0_EU_SEG(translation_fr, 0x19000000)
MIO0_EU_SEG(translation_de, 0x19000000)
#endif
/* mario actor group */
STANDARD_OBJECTS(group0, 0x04000000, 0x17000000)
/* load the other actor groups */
STANDARD_OBJECTS(group1, 0x05000000, 0x0C000000)
STANDARD_OBJECTS(group2, 0x05000000, 0x0C000000)
STANDARD_OBJECTS(group3, 0x05000000, 0x0C000000)
STANDARD_OBJECTS(group4, 0x05000000, 0x0C000000)
STANDARD_OBJECTS(group5, 0x05000000, 0x0C000000)
STANDARD_OBJECTS(group6, 0x05000000, 0x0C000000)
STANDARD_OBJECTS(group7, 0x05000000, 0x0C000000)
STANDARD_OBJECTS(group8, 0x05000000, 0x0C000000)
STANDARD_OBJECTS(group9, 0x05000000, 0x0C000000)
STANDARD_OBJECTS(group10, 0x05000000, 0x0C000000)
STANDARD_OBJECTS(group11, 0x05000000, 0x0C000000)
STANDARD_OBJECTS(group12, 0x06000000, 0x0D000000)
STANDARD_OBJECTS(group13, 0x06000000, 0x0D000000)
STANDARD_OBJECTS(group14, 0x06000000, 0x0D000000)
STANDARD_OBJECTS(group15, 0x06000000, 0x0D000000)
STANDARD_OBJECTS(group16, 0x06000000, 0x0D000000)
STANDARD_OBJECTS(group17, 0x06000000, 0x0D000000)
/* load the common actor groups */
STANDARD_OBJECTS(common0, 0x08000000, 0x0F000000)
STANDARD_OBJECTS(common1, 0x03000000, 0x16000000)
/* use segmented addressing for behaviors */
BEGIN_SEG(behavior, 0x13000000)
{
BUILD_DIR/data/behavior_data.o(.behavior);
}
END_SEG(behavior)
/* 0x8016F000 21D7D0-255EC0 [386F0] */
BEGIN_SEG(goddard, SEG_GODDARD)
{
BUILD_DIR/src/menu/level_select_menu.o(.text);
BUILD_DIR/src/menu/intro_geo.o(.text);
BUILD_DIR/src/menu/file_select.o(.text);
BUILD_DIR/src/menu/star_select.o(.text);
BUILD_DIR/src/menu*.o(.text);
BUILD_DIR/libgoddard.a:gd_main.o(.text);
BUILD_DIR/libgoddard.a:gd_memory.o(.text);
BUILD_DIR/libgoddard.a:sfx.o(.text);
BUILD_DIR/libgoddard.a:draw_objects.o(.text);
BUILD_DIR/libgoddard.a:objects.o(.text);
BUILD_DIR/libgoddard.a:skin_movement.o(.text);
BUILD_DIR/libgoddard.a:particles.o(.text);
BUILD_DIR/libgoddard.a:dynlist_proc.o(.text);
BUILD_DIR/libgoddard.a:old_menu.o(.text);
BUILD_DIR/libgoddard.a:debug_utils.o(.text);
BUILD_DIR/libgoddard.a:joints.o(.text);
BUILD_DIR/libgoddard.a:skin.o(.text);
BUILD_DIR/libgoddard.a:gd_math.o(.text);
BUILD_DIR/libgoddard.a:shape_helper.o(.text);
BUILD_DIR/libgoddard.a:renderer.o(.text);
BUILD_DIR/libgoddard.a:*.o(.text);
/* data, rodata, per file */
BUILD_DIR/src/menu/level_select_menu.o(.data*);
BUILD_DIR/src/menu/level_select_menu.o(.rodata*);
BUILD_DIR/src/menu/intro_geo.o(.data*);
BUILD_DIR/src/menu/file_select.o(.data*);
BUILD_DIR/src/menu/file_select.o(.rodata*);
BUILD_DIR/src/menu/star_select.o(.data*);
BUILD_DIR/src/menu/star_select.o(.rodata*);
BUILD_DIR/src/menu*.o(.data*);
BUILD_DIR/src/menu*.o(.rodata*);
/* goddard subsystem data */
BUILD_DIR/libgoddard.a:gd_main.o(.data*);
BUILD_DIR/libgoddard.a:draw_objects.o(.data*);
BUILD_DIR/libgoddard.a:objects.o(.data*);
BUILD_DIR/libgoddard.a:particles.o(.data*);
BUILD_DIR/libgoddard.a:dynlist_proc.o(.data*);
BUILD_DIR/libgoddard.a:debug_utils.o(.data*);
BUILD_DIR/libgoddard.a:joints.o(.data*);
BUILD_DIR/libgoddard.a:shape_helper.o(.data*);
BUILD_DIR/libgoddard.a:renderer.o(.data*);
/* goddard texture and DLs */
BUILD_DIR/data/goddard_tex_dl.o(.rodata*);
/* goddard subsystem rodata */
BUILD_DIR/libgoddard.a:gd_main.o(.rodata*);
BUILD_DIR/libgoddard.a:gd_memory.o(.rodata*);
BUILD_DIR/libgoddard.a:draw_objects.o(.rodata*);
BUILD_DIR/libgoddard.a:objects.o(.rodata*);
BUILD_DIR/libgoddard.a:skin_movement.o(.rodata*);
BUILD_DIR/libgoddard.a:particles.o(.rodata*);
BUILD_DIR/libgoddard.a:dynlist_proc.o(.rodata*);
BUILD_DIR/libgoddard.a:old_menu.o(.rodata*);
BUILD_DIR/libgoddard.a:debug_utils.o(.rodata*);
BUILD_DIR/libgoddard.a:joints.o(.rodata*);
BUILD_DIR/libgoddard.a:skin.o(.rodata*);
BUILD_DIR/libgoddard.a:gd_math.o(.rodata*);
BUILD_DIR/libgoddard.a:shape_helper.o(.rodata*);
BUILD_DIR/libgoddard.a:renderer.o(.rodata*);
}
END_SEG(goddard)
BEGIN_NOLOAD(goddard)
{
BUILD_DIR/src/menu/intro_geo.o(.bss*);
BUILD_DIR/src/menu/file_select.o(.bss*);
BUILD_DIR/src/menu/star_select.o(.bss*);
BUILD_DIR/src/menu*.o(.bss*);
BUILD_DIR/libgoddard.a:gd_main.o(.bss*);
BUILD_DIR/libgoddard.a:gd_memory.o(.bss*);
BUILD_DIR/libgoddard.a:sfx.o(.bss*);
BUILD_DIR/libgoddard.a:draw_objects.o(.bss*);
BUILD_DIR/libgoddard.a:objects.o(.bss*);
BUILD_DIR/libgoddard.a:skin_movement.o(.bss*);
BUILD_DIR/libgoddard.a:particles.o(.bss*);
BUILD_DIR/libgoddard.a:dynlist_proc.o(.bss*);
BUILD_DIR/libgoddard.a:old_menu.o(.bss*);
BUILD_DIR/libgoddard.a:debug_utils.o(.bss*);
BUILD_DIR/libgoddard.a:joints.o(.bss*);
BUILD_DIR/libgoddard.a:skin.o(.bss*);
BUILD_DIR/libgoddard.a:shape_helper.o(.bss*);
BUILD_DIR/libgoddard.a:renderer.o(.bss*);
BUILD_DIR/libgoddard.a:*.o(.bss*);
}
END_NOLOAD(goddard)
ASSERT((. <= SEG_POOL_END), "Error: extended past pool end.")
. = SEG_BUFFERS;
BEGIN_NOLOAD(buffers)
{
BUILD_DIR/src/buffers/buffers.o(.bss*);
BUILD_DIR/src/audio/globals_start.o(.bss*);
BUILD_DIR/src/audio/synthesis.o(.bss*);
BUILD_DIR/src/audio/memory.o(.bss*);
BUILD_DIR/src/audio/load.o(.bss*);
BUILD_DIR/src/audio/data.o(.bss*);
BUILD_DIR/src/audio/globals_end.o(.bss*);
BUILD_DIR/src/audio*.o(.bss*);
BUILD_DIR/data/gfx_output_buffer.o(.bss*);
}
END_NOLOAD(buffers)
/* While EU is being worked on, don't warn for a too large buffers segment.
* This is a broken thing to do, so please enforce this again when it's fixed! */
#ifndef VERSION_EU
ASSERT((. <= SEG_MAIN), "Error: buffers segment extended into main.")
#endif
/* 0x268020 0x268020-0 [0] */
BEGIN_SEG(intro, 0x14000000)
{
BUILD_DIR/bin/intro/header.o(.level);
}
END_SEG(intro)
BEGIN_SEG(intro_segment_7, 0x07000000)
{
BUILD_DIR/bin/intro/header.o(.seg07);
}
END_SEG(intro_segment_7)
MIO0_SEG(debug_level_select, 0x07000000)
MIO0_SEG(title_screen_bg, 0x0A000000)
/* 271B20-2A42A0 [32780] */
BEGIN_SEG(gd_dynlists, 0x04000000)
{
BUILD_DIR/libgoddard.a:dynlist_test_cube.o(.data);
BUILD_DIR/libgoddard.a:dynlist_unused.o(.data);
BUILD_DIR/libgoddard.a:dynlist_mario_face.o(.data);
BUILD_DIR/libgoddard.a:dynlists_mario_eyes.o(.data);
BUILD_DIR/libgoddard.a:dynlists_mario_eyebrows_mustache.o(.data);
BUILD_DIR/libgoddard.a:dynlist_mario_master.o(.data);
BUILD_DIR/libgoddard.a:anim_mario_mustache_right.o(.data);
BUILD_DIR/libgoddard.a:anim_mario_mustache_left.o(.data);
BUILD_DIR/libgoddard.a:anim_mario_lips_1.o(.data);
BUILD_DIR/libgoddard.a:anim_mario_lips_2.o(.data);
BUILD_DIR/libgoddard.a:anim_mario_eyebrows_1.o(.data);
BUILD_DIR/libgoddard.a:anim_group_1.o(.data);
BUILD_DIR/libgoddard.a:anim_group_2.o(.data);
BUILD_DIR/libgoddard.a:dynlist_test_cube.o(.rodata);
BUILD_DIR/libgoddard.a:dynlist_unused.o(.rodata);
BUILD_DIR/libgoddard.a:*.o(.data);
BUILD_DIR/libgoddard.a:*.o(.rodata);
}
END_SEG(gd_dynlists)
gMainLevels = __romPos;
BEGIN_SEG(menu, 0x14000000)
{
BUILD_DIR/bin/menu/header.o(.level);
}
END_SEG(menu)
BEGIN_SEG(menu_segment_7, 0x07000000)
{
BUILD_DIR/bin/menu/header.o(.seg07);
}
END_SEG(menu_segment_7)
BEGIN_SEG(scripts, 0x15000000)
{
BUILD_DIR/levels/scripts.o(.level);
}
END_SEG(scripts)
MIO0_SEG(water_skybox, 0x0A000000)
MIO0_SEG(ccm_skybox, 0x0A000000)
MIO0_SEG(clouds_skybox, 0x0A000000)
MIO0_SEG(bitfs_skybox, 0x0A000000)
MIO0_SEG(wdw_skybox, 0x0A000000)
MIO0_SEG(cloud_floor_skybox, 0x0A000000)
MIO0_SEG(ssl_skybox, 0x0A000000)
MIO0_SEG(bbh_skybox, 0x0A000000)
MIO0_SEG(bidw_skybox, 0x0A000000)
MIO0_SEG(bits_skybox, 0x0A000000)
// Texture bins
MIO0_SEG(fire, 0x09000000)
MIO0_SEG(spooky, 0x09000000)
MIO0_SEG(generic, 0x09000000)
MIO0_SEG(water, 0x09000000)
MIO0_SEG(sky, 0x09000000)
MIO0_SEG(snow, 0x09000000)
MIO0_SEG(cave, 0x09000000)
MIO0_SEG(machine, 0x09000000)
MIO0_SEG(mountain, 0x09000000)
MIO0_SEG(grass, 0x09000000)
MIO0_SEG(outside, 0x09000000)
MIO0_SEG(inside, 0x09000000)
MIO0_SEG(effect, 0x0B000000)
STANDARD_LEVEL(bbh)
STANDARD_LEVEL(ccm)
STANDARD_LEVEL(castle_inside)
STANDARD_LEVEL(hmc)
STANDARD_LEVEL(ssl)
STANDARD_LEVEL(bob)
STANDARD_LEVEL(sl)
STANDARD_LEVEL(wdw)
STANDARD_LEVEL(jrb)
STANDARD_LEVEL(thi)
STANDARD_LEVEL(ttc)
STANDARD_LEVEL(rr)
STANDARD_LEVEL(castle_grounds)
STANDARD_LEVEL(bitdw)
STANDARD_LEVEL(vcutm)
STANDARD_LEVEL(bitfs)
STANDARD_LEVEL(sa)
STANDARD_LEVEL(bits)
STANDARD_LEVEL(lll)
STANDARD_LEVEL(ddd)
STANDARD_LEVEL(wf)
STANDARD_LEVEL(ending)
STANDARD_LEVEL(castle_courtyard)
STANDARD_LEVEL(pss)
STANDARD_LEVEL(cotmc)
STANDARD_LEVEL(totwc)
STANDARD_LEVEL(bowser_1)
STANDARD_LEVEL(wmotr)
STANDARD_LEVEL(bowser_2)
STANDARD_LEVEL(bowser_3)
STANDARD_LEVEL(ttm)
/* 4E9FA0-? [?] */
BEGIN_SEG(assets, __romPos)
{
BUILD_DIR/assets/mario_anim_data.o(.data);
. = ALIGN(0x10);
BUILD_DIR/assets/demo_data.o(.data);
. = ALIGN(0x10);
gSoundDataADSR = .;
BUILD_DIR/sound/sound_data.ctl.o(.data);
. = ALIGN(0x10);
gSoundDataRaw = .;
BUILD_DIR/sound/sound_data.tbl.o(.data);
. = ALIGN(0x10);
gMusicData = .;
BUILD_DIR/sound/sequences.bin.o(.data);
. = ALIGN(0x10);
gBankSetsData = .;
BUILD_DIR/sound/bank_sets.o(.data);
. = ALIGN(0x10);
}
END_SEG(assets)
/* Discard everything not specifically mentioned above. */
/DISCARD/ :
{
*(*);
}
}