fix(relinker): validate guest run paths for the target OS #5302
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5302"
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 Ondra97 on 2026-10-13T16:46:13Z.
Closed as a duplicate of #4801. The earlier claim that no other open PR implemented this fix was incorrect. The shared production fix should land in #4801; the verified test-only supplement and validation details preserve the additional Mach-O coverage.
What
On a Windows host, Linux and macOS guest conversion rejected a valid absolute run path such as /absolute libs because std::filesystem::is_absolute used Windows syntax. Conversely it accepted drive and UNC paths that are not Unix absolute paths. Validate Unix target paths by their leading slash, while preserving the existing $ORIGIN forms and Windows-target behavior. The regression uses target paths rather than host temporary-directory paths.
Tested
Windows, supported WinLibs GCC 15.2, Release full relinker-only build and 150/150 CTest tests passed. The Unix absolute-path regression failed before the fix. Actual Linux dynamic strings and Mach-O executable/guest run paths are checked, together with rejection of Windows drive and UNC paths before output. No title run is claimed.
Local conventions and whitespace checks passed. Current open PRs were checked for overlapping files, lines and functions.
CI relinker builds and test suites passed on Linux, Windows and macOS for
446a5893b(Build). Full runtime-library jobs were skipped by the automatic PR policy.Combined local validation of #5283, #5286, #5298, #5302, #5305, #5308 and #5310 on main
61b8742b6: all seven patches merge without conflicts; the full relinker-only build and 150/150 CTest tests passed.Checklist
mainat publication; superseded by #4801NotImplemented_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)Pull request closed