Skip to content

Platform symbols at the first native link

This November 13, 2026 survey records the initial host link. The providers, stubs and missing definitions below describe that build. For the current port and build instructions, see The SDL3 port.

  • nm -u of every game unit that compiles with the host clang (713 of 759 units), checked against the symbols the port and the kept units define;
  • nm -u of the PS2 objects of all kept units (build/source-tree/obj), which also covers units that do not compile natively yet;
  • the global definitions in analysis/uncc, which name the original owner of data that exists only in the ELF.

The openbloodmoney executable was then linked from every compiling object. No symbol owned by a replaced unit is left undefined, except the two ZVifChain1 members listed under "Not provided".

Replaced-unit symbols and their providers

Symbol Replaced unit Provided by Used by
ZCDBusy(int) system/_ps2/cdread.cpp port/engine/system/_sdl/cdreadsdl.cpp engine/zstdlib/filesystem.cpp
ZCDCheckError() system/_ps2/cdread.cpp cdreadsdl.cpp filesystem.cpp
ZCDGetFileSize(const char *, uint32 *) system/_ps2/cdread.cpp cdreadsdl.cpp filesystem.cpp
ZCDGetSector(const char *, uint32 *) system/_ps2/cdread.cpp cdreadsdl.cpp filesystem.cpp
ZCDReadFile(const char *, void *, uint32, uint32) system/_ps2/cdread.cpp cdreadsdl.cpp filesystem.cpp
ZCDReadSectors(uint32, uint32, void *, bool) system/_ps2/cdread.cpp cdreadsdl.cpp filesystem.cpp
ZSysMem::CreateAllocators(), DestroyAllocators(), InitializeCriticalSection(), EnterCriticalSection(), LeaveCriticalSection() system/_ps2/sysmemps2.cpp port/engine/system/_sdl/sysmemsdl.cpp engine/system/sysmem.cpp
g_pGlacierMem, g_lGlacierMemSize system/_ps2/sysmemps2.cpp (data) sysmemsdl.cpp sysmemsdl.cpp, startupsdl.cpp
g_pEngineData system/_ps2/sysinterfaceps2.cpp (data) port/engine/system/_sdl/sysinterfacesdl.cpp about 200 units
g_lDemoTimeOutMS, g_lDemoGameplayTimeOutMS, g_lDemoFinalTimeOutMS system/_ps2/sysinterfaceps2.cpp (data) sysinterfacesdl.cpp enginedata/enginedatabase.cpp, hitman3/gui/gui.cpp
DemoGameplayCallback(), IsGameplayTimeOutAllowed(const char *) system/_ps2/sysinterfaceps2.cpp sysinterfacesdl.cpp hitman3/gui/gui.cpp
ZSysInputPS2::IsDisconnected() system/_ps2/newsysinputps2.cpp port/engine/system/_sdl/sysinputsdl.cpp engine/rendervideo/video.cpp
SysInput::StartUp(), Initialize(), ShutDown() system/_ps2/newsysinputps2.cpp sysinputsdl.cpp startupsdl.cpp, nukeandrestartsdl.cpp
NukeAndRestart(const char *) startup/_ps2/nukeandrestart.cpp port/engine/startup/_sdl/nukeandrestartsdl.cpp enginedata/enginedatabase.cpp
LoadIniFile(const char *, char **) startup/_ps2/nukeandrestart.cpp nukeandrestartsdl.cpp engine/system/sysinterface.cpp
LoadConfigFile(const char *, char **) startup/_ps2/nukeandrestart.cpp nukeandrestartsdl.cpp engine/system/actions_new.cpp
g_bInNukeAndRestart and the saved-state buffers startup/_ps2/nukeandrestart.cpp (data) nukeandrestartsdl.cpp rendersdl.cpp
g_GlobalCom, g_GlobalComBuffer hitman3/_ps2/startup.cpp port/hitman3/hitman3/_sdl/startupsdl.cpp engine/system/sysinterface.cpp
GameDataFactory, ZGameDataFactory::CreateGameData(), DestroyGameData() hitman3/_ps2/startup.cpp startupsdl.cpp engine data layer, through g_pGameDataFactory
GetLevelScriptExtraSize(const char *) hitman3/_ps2/startup.cpp startupsdl.cpp engine/zstdlib/zscriptc.cpp
SetupMemoryBuffers(const char *) hitman3/_ps2/startup.cpp startupsdl.cpp enginedata/enginedatabase.cpp
DisableSoftConversions(bool) hitman3/_ps2/startup.cpp startupsdl.cpp engine/geomsbase/zparticle.cpp
g_bSLUSBuild hitman3/_ps2/startup.cpp startupsdl.cpp hitman3/gui/newspapermissingcontroller.cpp
__cxa_pure_virtual, abort hitman3/_ps2/startup.cpp the host C++ runtime and C library many units
ZRenderPS2::AddFlipCallBack(FLIPCALLBACK, void *) drawing/old/_ps2/renderps2.cpp port/engine/drawing/old/_sdl/rendersdl.cpp geomsbase/zparticlebox.cpp, hitman3/background/humanflow.cpp
ZRenderPS2::WaitVU1Done() drawing/old/_ps2/renderps2.cpp rendersdl.cpp hitman3/gui/mcprogressps2.cpp
g_CamPosOffsetY, g_CamSizeOffsetY drawing/old/_ps2/renderps2.cpp (data) rendersdl.cpp hitman3/camera/hm3camerascope.cpp
g_CancelMaterialBreak drawing/old/_ps2/zolddrawps2.cpp (data) port/engine/drawing/old/_sdl/zolddrawsdl.cpp hm3camerascope.cpp
ZPrimDrawEntry::GetDrawInfo(ZOldDrawInfo *) const drawing/old/_ps2/zolddrawps2.cpp zolddrawsdl.cpp (counts nothing) drawing/old/zdrawresources.cpp
ZOldViewBase::CreateBoundElement(ZBoundElement *, ZBaseGeom *, ZMatrix *) drawing/old/_ps2/zoldviewps2.cpp port/engine/drawing/old/_sdl/zoldviewsdl.cpp (aborts; VU0 assembly) drawing/old/zoldviewbase.cpp
doSpeedCheck(...) drawing/old/_ps2/spherechecks.cpp zoldviewsdl.cpp (aborts; VU0 assembly) zoldviewbase.cpp
ZPrimControlPS2 (all members, including UnpackVertices) drawing/_ps2/zprimcontrolps2.cpp the original unit, now compiled natively collision/old/_ps2/zcollisionps2.cpp, renderdllsdl.cpp
ZPS2Video::ZPS2Video() and its vtable rendervideo/_ps2/ps2video.cpp port/engine/rendervideo/_sdl/videosdl.cpp (movie ends at once) engine/rendervideo/video.cpp
ZBaseVideo::EndOfFile() const, ZBaseVideo::SetSize(int, int) rendervideo/_ps2/ps2video.cpp videosdl.cpp engine/rendervideo/basevideo.cpp
ZMCInputStream and ZMCOutputStream (constructors, destructors, Read, Write, m_lTotalRead, m_lTotalWritten) serializerlib/_ps2/filestreamps2.cpp port/engine/serializerlib/_sdl/filestreamsdl.cpp hitman3/gui/savegamefilestreamsps2.cpp, hitman3/gui/mcprogressps2.cpp
ZHM3SavePS2::ZHM3SavePS2() and its vtable hitman3/gui/saveps2.cpp port/hitman3/gui/_sdl/savesdl.cpp (reports no save device) hitman3/gui/menu/system/hm3menuelements.cpp
g_bPartialLoadEnabled, SetLoadPercent(uint32, uint32) system/_ps2/sysfileps2.cpp port/engine/system/_sdl/sysfilesdl.cpp cdreadsdl.cpp

Three PS2-named members are defined natively although no object of that class exists: ZRenderPS2::AddFlipCallBack, ZRenderPS2::WaitVU1Done and ZSysInputPS2::IsDisconnected. The kept callers cast g_pSysInterface->WindowFirst or SysInput::instance to the PS2 class and call a non-virtual member. The native definitions never touch this: they forward to the SDL renderer's callback list, do nothing, and return false. The alternative is a guarded call in zparticlebox.cpp, humanflow.cpp, mcprogressps2.cpp and video.cpp.

Sony SDK entry points kept units still call

Symbol Caller Provided by
sceOpen, sceClose, sceLseek, sceRead, sceWrite zstdlib/filesystem.cpp (IOFSPhysicalAccess_t, used for zip creation) port/engine/system/_sdl/ps2sdk.cpp, on files under SDL_GetPrefPath
sceCdSync filesystem.cpp (AsyncFd_PS2) ps2sdk.cpp, reads finish at once
FlushCache drawing/old/zoldviewbase.cpp, zstdlib/zscriptc.cpp ps2sdk.cpp
DIntr, EIntr geomsbase/zparticlebox.cpp ps2sdk.cpp
LoadExecPS2, scePadEnd, sceSifInitRpc, sceSifExitCmd hitman3/gui/menu/elements/hm3navigators.cpp (launches the URBAN demo) ps2sdk.cpp; LoadExecPS2 logs and exits
sceGsSyncVCallback hitman3/gui/mcprogressps2.cpp ps2sdk.cpp, stored but never called
sceMcSync, sceMcGetDir hitman3/gui/savegamefilestreamsps2.cpp port/engine/system/_sdl/memorycardsdl.cpp, files under <pref path>/mc<port>/

Not provided

  • ZVifChain1::ZVifChain1(void *, uint32) and ZVifChain1::~ZVifChain1() (drawing/_ps2/zdmachain.cpp), used by drawing/watermanager.cpp to build VIF water-ripple chains. watermanager.cpp itself does not compile yet (zdmachain.h line 193). Its ripple chains are WS7 step 9.
  • ZLoader_Sequence_Player::m_pCreate_Func stays null, so no loading-screen player runs. SetLoadPercent pumps SDL events during partial loads instead.

Undefined symbols in the November 13 build

Linking every compiling object gives 1,885 undefined symbols:

Group Symbols
Defined in the 46 units that do not compile yet 1,141
Data that exists only in the ELF, with a kept owner in analysis/uncc (WS2) 687
Functions in the 13 .s units (WS5) 44
No owner found (SysInput::instance, Action::instance, ZMSG_Sizes, ZLoader_Sequence_Player::m_pCreate_Func, three singleton instances, ZAudioType<2>::ZPacked::m_iBitTable, DecreaseBloodAmount, ZMatrixTransform<6>) 10
Template or inline members no unit emits natively 3

The port objects need the following from those groups:

  • WS2 data: g_pSysInterface, g_pSysFile, g_pGameData, g_pGameDataFactory, g_pGlobalCom, g_pScriptDll, g_pScriptIfDll (owned by engine/globals/globals.cpp), g_pRenderDll (owned by engine/system/sysinterface.cpp) and SysInput::instance.
  • Units that do not compile natively yet: drawing/renderbase.cpp (112 symbols), drawing/old/zolddrawbase.cpp (74), drawing/old/zoldviewbase.cpp (38) and audio/soundengine/sound.cpp (124). These hold the base classes of the null renderer and the null sound DLL.

The three emitted-nowhere symbols are ZComponent<ZStandardComponentBase, ...>::~ZComponent() (audiolib/common/audiointerface.cpp), ISerializerStream::ExchangeArray<unsigned long> (enginedata/eventbuffer.cpp, the 64-bit REF instantiation) and ZHitman3::IsLockpicking() (hitman3/characters/zhitman3.cpp).