Restore SDK path function order and link natively #772
Reference in New Issue
Block a user
Delete Branch "agent/bittle/pf-path-link"
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?
Scope
Follow #769's extent correction with native linking. Move the unchanged PFPATH_MatchFileNameWithPattern definition after PFPATH_GetVolumeFromPath and before PFPATH_putShortName, leave a normal forward declaration at its old location, and set the SDK fa/pf_path Matching flag. No function body, compiler flag, metadata, data initializer, or padding change.
The flag-only attempt failed: the 784-byte matcher was emitted 2,368 bytes too early, shifting nine intervening functions +784 bytes. The definition move restores target order and the complete DOL.
Verification after rebase on
51d5dc519b666104f312matches tested local tree.Honest data-score limit
Objdiff still reports only 8/56 matched data (14.285715%) and .sdata 97.87234%; those scores are unchanged. Raw .sdata is exactly 48/48 bytes with no relocations. Native .sdata2 has 6 bytes identical to the reference prefix; the reference has two trailing zero alignment bytes, reproduced naturally by the linked image. No artificial padding or symbol-size edits are added to raise that score. The exact full DOL is the linkage evidence; this PR does not claim the unit's reported data metric is 100%.
Draft for review; no merge performed.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.