Fix Korean jump-table ownership and link zikorean #483
Reference in New Issue
Block a user
Delete Branch "agent/bittle/korean-table-ownership"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Evidence
zikorean.calready has 3/3 byte-exact functions, but its original.datasplit incorrectly includes a foreign 40-byte jump table at 0x8166B3A8–0x8166B3D0.All 10 relocations in that table target
Zi8_81483118, which belongs tozkokeyp.c(.text0x8148302C–0x8148447C), not zikorean. The independently compiled zkokeyp object naturally emits exactly the same 40-byte table with matching destinations/addends: 0x140, 0x120, 0x10C, 0xEC, 0xD8, 0xB8, 0xA4, 0x84, 0x70, 0x50 relative toZi8_81483118.Move only this
.dataownership to zkokeyp. Zikorean retains its two natural 31-entry tables (248 bytes), and can then be marked Matching and linked. No bytes are removed from total accounting, no source tables are invented, and this is not weak-vtable deduplication.Fresh verification
Rebased/reference main:
3946983f. Freshly rebuilt the owned object and full 43U target, plus a separate current-main report for regression comparison.ctxdiff.py: 49/49, 619/619, 629/629 instructions; zero differences..databytes; its other unmatched code/extabindex remain unchanged and unlinked.build/43U/okpass; DOL SHA-1 26116613f624061ba99c8d1a299aaa6efa85670d.Two adjacent data owners necessarily appear in this one ownership correction. No C/C++ source, function extent, padding objects, assembly or original binaries changed. Left for Cole's review and merge.
Reviewed and merged. Clean rebuild on the orchestrator gate: DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, zikorean 3/3 exact with code 5188/5188 and data 308/308 now linked, zkokeyp picks up the table's 40 bytes, 0 regressions, 0 forbidden patterns. The relocation evidence (all 10 entries target zkokeyp's .text) is exactly what a split ownership change needs. Nice one: this kind of mis-owned table is worth hunting for elsewhere; any .data block whose relocations all point into another unit's .text is a candidate.