fix(relinker): preserve Windows extended-path arguments #9793
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9793"
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 Iluminatti312 on 2026-10-22T15:20:21Z.
What
Fix Windows extended-length path (
\\?\) handling in the relinker.MinGW-w64 wildcard expansion interprets the
?in the path prefix before the argument reacheswmain(). This can truncate the input path and causeCannot open fileerrors.std::filesystem::absolute().Before the fix, the new test failed with
Cannot open file: \\input.elf. After the fix, both cases pass.Tested
main: 3 relevant tests passed, 1 skipped, 0 failed.python tools/check_conventions.py --base upstream/main— passed.python tools/check_test_registration.py --scripts— passed.The existing
long_pathstest is skipped because WindowsLongPathsEnabledis disabled. This change does not claim verified support for all paths longer thanMAX_PATH.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](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T16:24:41Z.
Review: DISMISSED
I inspected the MinGW wildcard-expansion fix, preserved device/extended output path handling, and regression test. The exact PR head cross-compiled successfully as a Windows relinker with MinGW-w64 GCC 12. I could not execute
windows_extended_pathshere because this Linux environment has no Windows runtime/Wine; the PR reports that test passing on Windows 11 with GCC 15.2, and the hosted checks currently cover conventions, intake and labels only.The branch is eight commits behind current
main(8499ea52e571b0edfc1feecfd3f6b9944012b359). CONTRIBUTING.md requires branches to be based on and kept up to date withmain. Please update it and rerun the focused Windows regression test after the rebase.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T16:55:51Z.
Review: COMMENTED
The updated exact head
dc4a48abc4d665938ea5e826630ca02fe3b38a40now rebases onto currentmain(499b1cf9fc), and the focused Windows regression rerun is reported after the rebase. Current-main conventions,git diff --check, and merge-tree checks pass. The hosted relinker matrix is not present in the current check set, so I’m treating the Windows test result as contributor-reported. I could not run the Windows-only regression in this Linux VM because it has no Windows runtime. The earlier base/test requests are addressed; no additional issue found in the path handling on inspection.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:59:58Z.
Review: CHANGES_REQUESTED
Re-check — changes requested
I re-read the Windows report and exact head
dc4a48abc4d665938ea5e826630ca02fe3b38a40. It confirms that the current regression test covers only--skip-sce-module; it does not show a successful default module conversion. In the current patch, the input and module-root paths still pass throughstd::filesystem::absolute(), and the test has no default-module case. The reported default conversion still fails while deriving the guest-module parent from an extended path, so the reportedwindows_extended_pathspass does not cover the failing path.Please preserve the Windows namespace prefix consistently through input, module-root and output derivation, and add a regression that runs default module processing with extended input and output paths. Keep the existing identity/overwrite protections and retain the
--skip-sce-modulecase as a separate control.There is also a current-main integration blocker: after refreshing to
f7e84c4cf1609cc10bac95a44cd431805e5ebc8a,tools/check_main_sync.pyreports a conflict incore/relinker/main.cpp(the branch is based on499b1cf9f). Please reconcile the newer main changes and rerun the Windows regression on that integrated head.git diff --checkpasses; I cannot execute the Windows-only test in this Linux environment.