Discover compiler-named and custom jump tables #710
Reference in New Issue
Block a user
Delete Branch "agent/bittle/jump-table-discovery"
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?
Extend jump_table_diff's automatic discovery beyond the jumptable_ prefix. Multi-entry initialized-data objects qualify when every ADDR32 entry targets the selected function and at least one destination is inside its body. This finds compiler @ names and custom names such as scHwKeyboardConvertWCCodeJumpTable. Ordinary function-entry callback arrays, single pointers, nonobjects and nondata sections are excluded unless explicitly named. Existing named-table behavior and exit codes remain unchanged.
Stop scanning an object after the first nonmatching entry, avoiding full scans of ordinary string/constant arrays for every function.
Evidence on
10e3f47e:fef5701046Only the optional tool and its tests change; no runtime sources, data, metadata, report scoring or CI policy changes. This is selective table verification, not a claim that all data or instruction behavior is correct. Left for Cole's review and merge.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.