fix(relinker): allow Windows export aliases when probing backup copies #7418
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7418"
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?
Imported from boykopovar/AnyPS5. Originally posted by tkcm01 on 2026-10-18T05:24:25Z.
What
Pass
windows = truewhenCli::ReadModulesprobes guest module SONAMEs for backup copy detection (GuestImageReader().Read(..., true).Soname), so guest modules containing identical ordinary function export aliases (supported on Windows since5ea9ce2e4) are not prematurely rejected beforeGuestModuleBuilder::Buildvalidates them with the target platform'swindowsflag.Tested
relinkeron macOS (-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON) and ranctest --test-dir build-relinker --output-on-failure(185/185 tests passed, including the newbackup-aliascase inguest_module_directories).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by DProkos on 2026-10-18T19:21:14Z.
Windows check of
8bcf040abmerged onto currentmain(c4c2b3aa7, clean merge).Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7 UCRT, Ninja, Release,
ANYPS5_RELINKER_ONLY=ON,BUILD_TESTING=ON, Python 3.11.0.guest_module_directories: passed, including the newbackup-aliascase for both the Linux and the Windows output.Negative control: with
NativeModules.cpprestored tomainand the new test kept,guest_module_directoriesfails at thebackup-aliasassertion (test_guest_module_directories.py:180, the backup copy is not reported as skipped). With the PR's line back it passes again.Not run: titles or homebrew.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T19:53:13Z.
Checked: the SONAME probe now reads with
windows = true, only for the backup-copy detection;GuestModuleBuilder::Buildstill validates exports with the target's flag, and the new test covers both targets (Linux still rejects the duplicate alias). Windows run and negative control by @DProkos confirm it. Merged.