|
|
|
|
@@ -0,0 +1,175 @@
|
|
|
|
|
# u4 link investigation
|
|
|
|
|
|
|
|
|
|
Assigned branch agent/w1003/sol-u4-ultra, baseline 8479c50a. The task-specific LINK instruction overrides the generic matching-only template. No worker delegation, assembly, label pinning or other worktree edits.
|
|
|
|
|
Baseline pools identical: tiPcKeyboard 204/204; eggAudioExpMgr 0/0. Baseline DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d.
|
|
|
|
|
Both units already 100% per named function/data. Keyboard text emission 0x6f98 vs retail 0x6f44, plus secondary-vtable thunk order; audio text same size but the destructor/calc thunks swap.
|
|
|
|
|
|
|
|
|
|
Trial K1: plain Matching flip yields SHA1 31da1cbc0a71398e3d535ec20285efe94da18ffd. dtk first mismatch at 0x814101D8: expected Manager::getHWKeyboard const, found Base::getTranslateMode. Actual getter is at 0x814154A8. Source emission order is a real linker blocker despite all named code/data being exact.
|
|
|
|
|
|
|
|
|
|
Trial K2: declare the first three retained virtual accessors out of line only in TI_PC_KEYBOARD_IMPLEMENTATION and define them in retail order; remove Base::init inline marker only in this TU so its existing definition remains in source order. No bodies or target instruction sequences changed.
|
|
|
|
|
K2 failed: non-inline toolbar accessor anchors an extra strong Base vtable, colliding with tiToolBar.o, and allowing Base::init to inline changes Layout::init. Trial K3 retains inline/weak accessor declarations with NO_INLINE, and marks Base::init NO_INLINE.
|
|
|
|
|
K3 failed: accessor inline declarations defer emission, NO_INLINE on Base::init removes the proven target inlining in Layout::init. Reverted K2/K3. Need preserve inline semantics while recovering code-generation order.
|
|
|
|
|
|
|
|
|
|
Section audit: keyboard .rodata, .data and .sdata2 are byte-identical before relocation. .bss/.sbss/.sdata end differences are ordinary trailing linker alignment, 12/16, 5/8, 133/136. No .extab/.extabindex exist. Four source-only text symbols total 84 bytes and are deduplicated during the actual link, so linked unit length remains 0x6f44. The linker does retain all 141 retail functions, but in different order.
|
|
|
|
|
Compiler diagnostic src/keyboard/tiPcKeyboard ipa function: 126/141 exact, first=['setInputModeJP__Q49textinput8keyboard6pctype4BaseFbUlUl', 'setInputModeCK__Q49textinput8keyboard6pctype4BaseFUl', 'onGUIEvent__Q49textinput8keyboard6pctype5UIObjFRQ39textinput3gui13PaneComponentUlPQ49textinput11nw4rmanager14TiEventHandler5Input'], thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv']. No flags retained without full proof.
|
|
|
|
|
Compiler diagnostic src/keyboard/tiPcKeyboard ipa function noauto: 110/141 exact, first=['setInputModeJP__Q49textinput8keyboard6pctype4BaseFbUlUl', 'setInputModeCK__Q49textinput8keyboard6pctype4BaseFUl', 'onGUIEvent__Q49textinput8keyboard6pctype5UIObjFRQ39textinput3gui13PaneComponentUlPQ49textinput11nw4rmanager14TiEventHandler5Input'], thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv']. No flags retained without full proof.
|
|
|
|
|
Compiler diagnostic src/keyboard/tiPcKeyboard ipa file nobottomup: 141/141 exact, first=['getTranslateMode__Q49textinput8keyboard6pctype4BaseCFv', 'isCapsOn__Q49textinput8keyboard6pctype4BaseCFv', 'create__Q49textinput8keyboard6pctype4BaseFP12MEMAllocator'], thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv']. No flags retained without full proof.
|
|
|
|
|
Compiler diagnostic src/keyboard/tiPcKeyboard ipa file smart: 121/141 exact, first=['List_GetFirst__Q24nw4r2utFPCQ34nw4r2ut4List', 'getTranslateMode__Q49textinput8keyboard6pctype4BaseCFv', 'isCapsOn__Q49textinput8keyboard6pctype4BaseCFv'], thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv']. No flags retained without full proof.
|
|
|
|
|
Compiler diagnostic libs/EGG/src/core/eggAudioExpMgr ipa function: 8/8 exact, first=['initialize__Q23EGG20SimpleAudioMgrWithFxFPQ33EGG9IAudioMgr3Arg', 'SaveState__Q34nw4r3snd9SoundHeapFv', '__ct__Q33EGG20SimpleAudioMgrWithFx9ArgWithFxFv'], thunks=['@52@calc__Q23EGG14SimpleAudioMgrFv', '@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv']. No flags retained without full proof.
|
|
|
|
|
Compiler diagnostic libs/EGG/src/core/eggAudioExpMgr ipa function noauto: 8/8 exact, first=['initialize__Q23EGG20SimpleAudioMgrWithFxFPQ33EGG9IAudioMgr3Arg', 'SaveState__Q34nw4r3snd9SoundHeapFv', '__ct__Q33EGG20SimpleAudioMgrWithFx9ArgWithFxFv'], thunks=['@52@calc__Q23EGG14SimpleAudioMgrFv', '@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv']. No flags retained without full proof.
|
|
|
|
|
Compiler diagnostic libs/EGG/src/core/eggAudioExpMgr ipa file nobottomup: 8/8 exact, first=['__ct__Q23EGG20SimpleAudioMgrWithFxFv', '__dt__Q23EGG20SimpleAudioMgrWithFxFv', '__ct__Q33EGG20SimpleAudioMgrWithFx9ArgWithFxFv'], thunks=['@52@calc__Q23EGG14SimpleAudioMgrFv', '@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv']. No flags retained without full proof.
|
|
|
|
|
Compiler diagnostic libs/EGG/src/core/eggAudioExpMgr ipa file smart: 8/8 exact, first=['__ct__Q23EGG20SimpleAudioMgrWithFxFv', '__dt__Q23EGG20SimpleAudioMgrWithFxFv', '__ct__Q33EGG20SimpleAudioMgrWithFx9ArgWithFxFv'], thunks=['@52@calc__Q23EGG14SimpleAudioMgrFv', '@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv']. No flags retained without full proof.
|
|
|
|
|
|
|
|
|
|
Trial K4: out-of-line inline definitions after non-inline declarations, preserving inline semantics and checking whether MWCC retains source definition order without strong vtable anchoring.
|
|
|
|
|
K4 failed: standard out-of-line inline definitions still defer the accessors to first use. Reverted. Per-function IPA trials drop to 126/141 or 110/141 and reverse the top-level emission list; file IPA/no-bottom-up keeps 141/141 but does not fix order. No flag retained.
|
|
|
|
|
|
|
|
|
|
Trial K5: ordinary out-of-line weak accessors, using the project DECL_WEAK binding for methods shared across translation units. Check both emission order and whether the weak key method still incorrectly anchors a strong toolbar vtable.
|
|
|
|
|
K5 failed: DECL_WEAK itself defers emission just like inline. Reverted.
|
|
|
|
|
|
|
|
|
|
Trial K6: normal accessor definitions in target order, declare toolbar::Base::create out of line in this TU so its real external method remains the vtable key. Preserve the proven initialization inline boundary with shared initializeKeyState implementation, keeping Base::init and Layout::init target code unchanged.
|
|
|
|
|
K6 restored 141/141, first three linked accessors now in exact retail order, and no extra toolbar vtable. Trial K7: move only the remaining out-of-order real accessors and animation methods to their target source positions; preserve shared headers with the existing TI macro.
|
|
|
|
|
K7 preserved 141/141 and restored retained function ordering until the static initializer; changing GUIComponent::setTriggerTarget to out of line made it the vtable key and emitted an extra 104-byte strong GUIComponent table with unneeded inline methods. Trial K8: leave the real GUIComponent destructor declared out of line for this TU, making that earlier external method the key and avoiding a second table owner. No constructor or destructor uses of GUIComponent exist in this unit.
|
|
|
|
|
K8: all 141 functions instruction-exact, all retained functions at their exact linked addresses except six 8-byte @68@ thunks. DOL diff shrank 24,301 -> 26 bytes, only the reordered thunk branches and corresponding secondary-vtable pointers. Matching trial SHA1 ae275fe21ca289dfacd2ea1c8b1ed78b8779c359. All original code, data and string bytes unchanged; four extra weak functions deduplicate normally. Remaining layout is the same destructor-thunk ordering failure as audio.
|
|
|
|
|
Compiler version diagnostic src/keyboard/tiPcKeyboard GC/3.0a3: 140/141 exact; thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv'].
|
|
|
|
|
Compiler version diagnostic src/keyboard/tiPcKeyboard GC/3.0a3.2: 140/141 exact; thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv'].
|
|
|
|
|
Compiler version diagnostic src/keyboard/tiPcKeyboard GC/3.0a3.3: 140/141 exact; thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv'].
|
|
|
|
|
Compiler version diagnostic src/keyboard/tiPcKeyboard GC/3.0a3.4: 140/141 exact; thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv'].
|
|
|
|
|
Compiler version diagnostic src/keyboard/tiPcKeyboard GC/3.0a5: 140/141 exact; thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv'].
|
|
|
|
|
Compiler version diagnostic src/keyboard/tiPcKeyboard Wii/1.0RC1: 94/141 exact; thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv'].
|
|
|
|
|
Compiler version diagnostic src/keyboard/tiPcKeyboard Wii/1.0: 94/141 exact; thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv'].
|
|
|
|
|
Compiler version diagnostic src/keyboard/tiPcKeyboard Wii/1.0a: 94/141 exact; thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv'].
|
|
|
|
|
Compiler version diagnostic src/keyboard/tiPcKeyboard Wii/1.1: 94/141 exact; thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv'].
|
|
|
|
|
Compiler version diagnostic src/keyboard/tiPcKeyboard Wii/1.3: 94/141 exact; thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv'].
|
|
|
|
|
Compiler version diagnostic libs/EGG/src/core/eggAudioExpMgr GC/3.0a3: 8/8 exact; thunks=['@52@calc__Q23EGG14SimpleAudioMgrFv', '@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv'].
|
|
|
|
|
Compiler version diagnostic libs/EGG/src/core/eggAudioExpMgr GC/3.0a3.2: 8/8 exact; thunks=['@52@calc__Q23EGG14SimpleAudioMgrFv', '@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv'].
|
|
|
|
|
Compiler version diagnostic libs/EGG/src/core/eggAudioExpMgr GC/3.0a3.3: 8/8 exact; thunks=['@52@calc__Q23EGG14SimpleAudioMgrFv', '@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv'].
|
|
|
|
|
Compiler version diagnostic libs/EGG/src/core/eggAudioExpMgr GC/3.0a3.4: 8/8 exact; thunks=['@52@calc__Q23EGG14SimpleAudioMgrFv', '@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv'].
|
|
|
|
|
Compiler version diagnostic libs/EGG/src/core/eggAudioExpMgr GC/3.0a5: 8/8 exact; thunks=['@52@calc__Q23EGG14SimpleAudioMgrFv', '@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv'].
|
|
|
|
|
Compiler version diagnostic libs/EGG/src/core/eggAudioExpMgr Wii/1.0RC1: 6/8 exact; thunks=['@52@calc__Q23EGG14SimpleAudioMgrFv', '@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv'].
|
|
|
|
|
Compiler version diagnostic libs/EGG/src/core/eggAudioExpMgr Wii/1.0: 6/8 exact; thunks=['@52@calc__Q23EGG14SimpleAudioMgrFv', '@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv'].
|
|
|
|
|
Compiler version diagnostic libs/EGG/src/core/eggAudioExpMgr Wii/1.0a: 6/8 exact; thunks=['@52@calc__Q23EGG14SimpleAudioMgrFv', '@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv'].
|
|
|
|
|
Compiler version diagnostic libs/EGG/src/core/eggAudioExpMgr Wii/1.1: 6/8 exact; thunks=['@52@calc__Q23EGG14SimpleAudioMgrFv', '@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv'].
|
|
|
|
|
Compiler version diagnostic libs/EGG/src/core/eggAudioExpMgr Wii/1.3: 6/8 exact; thunks=['@52@calc__Q23EGG14SimpleAudioMgrFv', '@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv'].
|
|
|
|
|
K10 implicit virtual destructor: 141/141 exact, thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv']; no fix retained.
|
|
|
|
|
K11 destructor exception specification: 141/141 exact, thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv']; no fix retained.
|
|
|
|
|
K12 destructor before void onPressedCaps();: 141/141 exact, thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv']; no fix retained.
|
|
|
|
|
K12 destructor before virtual void draw();: 141/141 exact, thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv']; no fix retained.
|
|
|
|
|
K12 destructor before virtual void onEvent(UIObj* object: 141/141 exact, thunks=['@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv', '@68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager', '@68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv', '@236@onEvent__Q49textinput8keyboard6pctype12LayoutByNW4RFPQ49textinput8keyboard6pctype5UIObjUlPv']; no fix retained.
|
|
|
|
|
|
|
|
|
|
K9 failed to compile with only Layout constructor exposed because its real Base constructor was gated out; K13 exposed existing constructors in the same header, compiled without changing the thunk order, then restored. K10 implicit virtual destructor, K11 throw() and K12 three declaration positions preserve 141/141 but leave destructor last. Ten compiler-version tests agree that the destructor remains last; no version changes retained. Prior sol-link2c and sol-link2m transcripts were read from the logs, not their worktrees: 291 and 82 measurements already rejected declaration/base order, using declarations, actual System constructors, parent vtable builds and compiler versions. Avoid those duplicate audio experiments.
|
|
|
|
|
A1 include the own header directly: 8/8 exact, thunks=[('@52@calc__Q23EGG14SimpleAudioMgrFv', '0x1fc'), ('@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv', '0x204')], sections=[('.text', '0x20c'), ('.data', '0x78')]; reverted.
|
|
|
|
|
A2 standard nested struct without redundant typedef: 8/8 exact, thunks=[('@52@calc__Q23EGG14SimpleAudioMgrFv', '0x1fc'), ('@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv', '0x204')], sections=[('.text', '0x20c'), ('.data', '0x78')]; reverted.
|
|
|
|
|
A3 derived destructor exception specification: 8/8 exact, thunks=[('@52@calc__Q23EGG14SimpleAudioMgrFv', '0x1fc'), ('@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv', '0x204')], sections=[('.text', '0x20c'), ('.data', '0x78')]; reverted.
|
|
|
|
|
A4 exception code-generation diagnostic: 8/8 exact, thunks=[('@52@calc__Q23EGG14SimpleAudioMgrFv', '0x1fc'), ('@52@__dt__Q23EGG20SimpleAudioMgrWithFxFv', '0x204')], sections=[('.text', '0x20c'), ('extab', '0x4c'), ('extabindex', '0x3c'), ('.data', '0x78')]; reverted.
|
|
|
|
|
|
|
|
|
|
K8 linked DOL word-level evidence, 26 differing bytes:
|
|
|
|
|
```
|
|
|
|
|
0x814170e8: target 4bffab44 candidate 4bffde14, @68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv
|
|
|
|
|
0x814170f0: target 4bffde0c candidate 4bffe03c, @68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager
|
|
|
|
|
0x814170f8: target 4bffe034 candidate 4bffbef8, @68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv
|
|
|
|
|
0x81417100: target 4bffbef0 candidate 4bffc040, @68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv
|
|
|
|
|
0x81417108: target 4bffc038 candidate 4bffb364, @68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv
|
|
|
|
|
0x81417110: target 4bffb35c candidate 4bffab1c, @68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv
|
|
|
|
|
0x8165bcd0: target 814170e4 candidate 8141710c, __vt__Q49textinput8keyboard6pctype12LayoutByNW4R
|
|
|
|
|
0x8165bcd8: target 8141710c candidate 81417104, __vt__Q49textinput8keyboard6pctype12LayoutByNW4R
|
|
|
|
|
0x8165bce0: target 81417104 candidate 814170fc, __vt__Q49textinput8keyboard6pctype12LayoutByNW4R
|
|
|
|
|
0x8165bce4: target 814170fc candidate 814170f4, __vt__Q49textinput8keyboard6pctype12LayoutByNW4R
|
|
|
|
|
0x8165bce8: target 814170ec candidate 814170e4, __vt__Q49textinput8keyboard6pctype12LayoutByNW4R
|
|
|
|
|
0x8165bcec: target 814170f4 candidate 814170ec, __vt__Q49textinput8keyboard6pctype12LayoutByNW4R
|
|
|
|
|
0x816602c4: target 8141710c candidate 81417104, __vt__Q49textinput8keyboard6pctype6Sample
|
|
|
|
|
0x816602cc: target 81417104 candidate 814170fc, __vt__Q49textinput8keyboard6pctype6Sample
|
|
|
|
|
0x816602d0: target 814170fc candidate 814170f4, __vt__Q49textinput8keyboard6pctype6Sample
|
|
|
|
|
0x816602d4: target 814170ec candidate 814170e4, __vt__Q49textinput8keyboard6pctype6Sample
|
|
|
|
|
0x816602d8: target 814170f4 candidate 814170ec, __vt__Q49textinput8keyboard6pctype6Sample
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
src/keyboard/tiPcKeyboard adjustor-thunk relocation audit:
|
|
|
|
|
```
|
|
|
|
|
source @68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv -> updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv, type 10, addend 0x0
|
|
|
|
|
source @68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager -> updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager, type 10, addend 0x0
|
|
|
|
|
source @68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv -> calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv, type 10, addend 0x0
|
|
|
|
|
source @68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv -> draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv, type 10, addend 0x0
|
|
|
|
|
source @68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv -> init__Q49textinput8keyboard6pctype12LayoutByNW4RFv, type 10, addend 0x0
|
|
|
|
|
source @68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv -> __dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv, type 10, addend 0x0
|
|
|
|
|
source .rela.data+0x2f58 -> @68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv, addend 0x0
|
|
|
|
|
source .rela.data+0x2f5c -> @68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager, addend 0x0
|
|
|
|
|
source .rela.data+0x2f54 -> @68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv, addend 0x0
|
|
|
|
|
source .rela.data+0x2f50 -> @68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv, addend 0x0
|
|
|
|
|
source .rela.data+0x2f48 -> @68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv, addend 0x0
|
|
|
|
|
source .rela.data+0x2f40 -> @68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv, addend 0x0
|
|
|
|
|
target @68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv -> __dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv, type 10, addend 0x0
|
|
|
|
|
target @68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv -> updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv, type 10, addend 0x0
|
|
|
|
|
target @68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager -> updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager, type 10, addend 0x0
|
|
|
|
|
target @68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv -> calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv, type 10, addend 0x0
|
|
|
|
|
target @68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv -> draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv, type 10, addend 0x0
|
|
|
|
|
target @68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv -> init__Q49textinput8keyboard6pctype12LayoutByNW4RFv, type 10, addend 0x0
|
|
|
|
|
target .rela.data+0x2f40 -> @68@__dt__Q49textinput8keyboard6pctype12LayoutByNW4RFv, addend 0x0
|
|
|
|
|
target .rela.data+0x2f48 -> @68@init__Q49textinput8keyboard6pctype12LayoutByNW4RFv, addend 0x0
|
|
|
|
|
target .rela.data+0x2f50 -> @68@draw__Q49textinput8keyboard6pctype12LayoutByNW4RFv, addend 0x0
|
|
|
|
|
target .rela.data+0x2f54 -> @68@calc__Q49textinput8keyboard6pctype12LayoutByNW4RFv, addend 0x0
|
|
|
|
|
target .rela.data+0x2f58 -> @68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFiffUlUlUlPv, addend 0x0
|
|
|
|
|
target .rela.data+0x2f5c -> @68@updateInput__Q49textinput8keyboard6pctype12LayoutByNW4RFRQ39textinput5input10HKBManager, addend 0x0
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
libs/EGG/src/core/eggAudioExpMgr adjustor-thunk relocation audit:
|
|
|
|
|
```
|
|
|
|
|
source @52@calc__Q23EGG14SimpleAudioMgrFv -> calc__Q23EGG14SimpleAudioMgrFv, type 10, addend 0x0
|
|
|
|
|
source @52@__dt__Q23EGG20SimpleAudioMgrWithFxFv -> __dt__Q23EGG20SimpleAudioMgrWithFxFv, type 10, addend 0x0
|
|
|
|
|
source .rela.data+0x4c -> @52@calc__Q23EGG14SimpleAudioMgrFv, addend 0x0
|
|
|
|
|
source .rela.data+0x28 -> @52@__dt__Q23EGG20SimpleAudioMgrWithFxFv, addend 0x0
|
|
|
|
|
target @52@__dt__Q23EGG20SimpleAudioMgrWithFxFv -> __dt__Q23EGG20SimpleAudioMgrWithFxFv, type 10, addend 0x0
|
|
|
|
|
target @52@calc__Q23EGG14SimpleAudioMgrFv -> calc__Q23EGG14SimpleAudioMgrFv, type 10, addend 0x0
|
|
|
|
|
target .rela.data+0x28 -> @52@__dt__Q23EGG20SimpleAudioMgrWithFxFv, addend 0x0
|
|
|
|
|
target .rela.data+0x4c -> @52@calc__Q23EGG14SimpleAudioMgrFv, addend 0x0
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
New evidence from the linked DOL: the real textinput::keyboard::pctype::Sample vtable at 0x8166021C references five affected LayoutByNW4R thunks, and its real destructor at 0x81439358 is 0x58 bytes, with @68@ destructor at 0x814395D0. src/keyboard/tiKeyboard.cpp already defines this exact real derived class, with no new members and an empty destructor. The PC implementation header currently omits it. Trial K14 restores that proven class declaration with its real empty inline destructor only for this TU. This is not the invented audio Sample class rejected earlier; every symbol and inheritance relation is present in retail.
|
|
|
|
|
K14 no change: unused inline Sample destructor was not emitted. Trial K15 defines the same proven real Sample destructor out of line with weak linkage, so the existing strong tiKeyboard.cpp definition remains the owner. Every generated Sample function will be checked against the original tiKeyboard object; no invented symbol is allowed.
|
|
|
|
|
K15 prefix DECL_WEAK compiles and flips the Layout destructor thunk to first, proving the real Sample definition is the missing trigger. Its real 0x58-byte destructor is weak but its vtable is strong, which would duplicate the existing tiKeyboard table. Correction to K5: the suffix DECL_WEAK spelling failed to compile; the earlier unchanged-order observation read a stale object and is invalid. Trial K16 uses an ordinary explicit inline Sample destructor definition out of class, to build the real parent table while keeping normal C++ weak ODR emission.
|
|
|
|
|
K16 unused inline destructor does not emit/build the Sample vtable. Trial K17 restores the existing real Base/Layout inline constructors and defines the proven forwarding Sample constructor. The real Sample destructor stays external to this unit, preserving tiKeyboard as the vtable key owner. This should leave an ordinary weak duplicate Sample vtable and an unused constructor which the linker can discard. No fake class/function, data pad or forced activity is introduced.
|
|
|
|
|
K17 keeps the external Sample key, so the compiler uses its external table without constructing the parent, leaving the thunk order unchanged. Trial K18 keeps the real forwarding constructor while making the proven empty Sample destructor inline. The constructor now needs a normally emitted weak Sample vtable, whose parent is the real LayoutByNW4R.
|
|
|
|
|
K18 flips the parent thunk order and keeps 141/141, but is rejected: the duplicate real Sample adjustment thunk is selected before tiKeyboard and its weak table adds linked data, so DOL hash changes globally. Its unused forwarding constructor is discarded. Trial K19 tests TU-local novtable on the proven external Sample class, to avoid emitting its foreign table/thunk while constructing the parent metadata. This is diagnostic only unless every native gate passes.
|
|
|
|
|
K19 novtable suppresses the Sample table but also loses the parent thunk-order effect. Trial K20 checks a real weak Sample destructor definition with the same novtable gate instead of the unused constructor. Reject unless it has no foreign emitted data or thunks.
|
|
|
|
|
|
|
|
|
|
K20 again leaves the destructor last. All Sample/constructor/novtable/weak-attribute experiments were rejected and restored. K8 is retained as safe native emission-order progress, with no change to any named instruction or data bytes. The pending compiler issue has at least ten distinct source trials and a real retail class/vtable proof; no function body is untried or below 100%. Audio A1-A3 preserve 8/8 but do not reverse the pair; A4 exceptions-on adds non-retail exception sections, rejected.
|
|
|
|
|
The both-Matching clean full gate fails only the linked DOL gate: SHA1 2956de1849b33025558c4b2b3b701a68a0099645. Both units stay 100% in objdiff and instruction-exact, regressions/forbidden/style are zero. The rejected linked build is not accepted.
|
|
|
|
|
|
|
|
|
|
## Final retained result
|
|
|
|
|
|
|
|
|
|
Only the readable K8 method-emission repair is retained. Keyboard stays NonMatching; audio stays Equivalent. No Sample/constructor/novtable/weak-attribute experiment, compiler flag or config change remains. No other source-unit output changes. Linking is NOT complete: keyboard now fails on only 26 bytes from the six reordered @68@ thunks and their real Layout/Sample vtable references; audio fails on nine bytes from the @52@ destructor/calc thunk swap, including the shared SimpleAudioMgr vtable reference. The missing original compiler trigger remains unresolved.
|
|
|
|
|
|
|
|
|
|
The clean full gate passes with both units unlinked. All 149 exact-name ctxdiff invocations have identical instruction counts and diffs 0. Every original function is objdiff 100%; every owned section is 100%; both pools are identical. The regenerated report equals the initial baseline for all 1,027 units. Full build/43U/ok exists and main.dol is byte-identical to retail, SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Forbidden additions, readability warnings and regressions: 0.
|
|
|
|
|
|
|
|
|
|
The first announcement before reading the task prompt was a silent-mode breach; all subsequent intermediate messages were tools only. No pushes, PRs, merges, rebases, other worktree edits or worker delegations occurred.
|
|
|
|
|
|
|
|
|
|
Final full gate:
|
|
|
|
|
```
|
|
|
|
|
full build: ok
|
|
|
|
|
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
|
|
|
|
[src/keyboard/tiPcKeyboard] pool: IDENTICAL
|
|
|
|
|
[src/keyboard/tiPcKeyboard] objdiff: code 28484/28484 data 18564/18564 functions 141/141 fuzzy 100.0000 linked code 0
|
|
|
|
|
[src/keyboard/tiPcKeyboard] instruction-exact functions: 141/141
|
|
|
|
|
[src/keyboard/tiPcKeyboard] section .bss size 16 match 100.0
|
|
|
|
|
[src/keyboard/tiPcKeyboard] section .ctors size 4 match 100.0
|
|
|
|
|
[src/keyboard/tiPcKeyboard] section .data size 12576 match 100.0
|
|
|
|
|
[src/keyboard/tiPcKeyboard] section .rodata size 5816 match 100.0
|
|
|
|
|
[src/keyboard/tiPcKeyboard] section .sbss size 8 match 100.0
|
|
|
|
|
[src/keyboard/tiPcKeyboard] section .sdata size 136 match 100.0
|
|
|
|
|
[src/keyboard/tiPcKeyboard] section .sdata2 size 8 match 100.0
|
|
|
|
|
[src/keyboard/tiPcKeyboard] section .text size 28484 match 100.0
|
|
|
|
|
[src/keyboard/tiPcKeyboard] baseline: code 28484/28484 data 18564 functions 141 fuzzy 100.0000
|
|
|
|
|
[libs/EGG/src/core/eggAudioExpMgr] pool: IDENTICAL
|
|
|
|
|
[libs/EGG/src/core/eggAudioExpMgr] objdiff: code 524/524 data 120/120 functions 8/8 fuzzy 100.0000 linked code 0
|
|
|
|
|
[libs/EGG/src/core/eggAudioExpMgr] instruction-exact functions: 8/8
|
|
|
|
|
[libs/EGG/src/core/eggAudioExpMgr] section .data size 120 match 100.0
|
|
|
|
|
[libs/EGG/src/core/eggAudioExpMgr] section .text size 524 match 100.0
|
|
|
|
|
[libs/EGG/src/core/eggAudioExpMgr] baseline: code 524/524 data 120 functions 8 fuzzy 100.0000
|
|
|
|
|
regressions vs baseline: 0
|
|
|
|
|
global matched_code_percent: 92.22483 -> 92.22483
|
|
|
|
|
global fuzzy_match_percent: 99.73261 -> 99.73261
|
|
|
|
|
global complete_code_percent: 74.91312 -> 74.91312
|
|
|
|
|
global matched_data_percent: 99.78196 -> 99.78196
|
|
|
|
|
forbidden patterns added (net, per file): 0
|
|
|
|
|
readability warnings (net, per file; must be 0 in the final result): 0
|
|
|
|
|
GATE PASS
|
|
|
|
|
```
|