fix(relinker): suggest needed modules below scanned directories #17536
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17536"
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 dr-hoseyn on 2026-11-08T20:59:02Z.
What
Search below previously scanned module directories when looking for a missing dependency. Module discovery reads only the immediate children of each configured directory, so suppress hints for those files without suppressing unscanned subdirectories. The hint identifies the exact nested directory to pass to --module-dir.
Tested
Windows, WinLibs GCC 15.2, Release relinker-only build. Reproduced the missing hint on main. The regression checks nested directories under sce_module, prx and an explicit --module-dir. It verifies that the hint points to the nested module, that the already-scanned SELF is not suggested, and that adding the suggested directory converts the module. All seven selected CTests passed. Synthetic ELF and SELF fixtures only. The overlap tool checked 1,966 open pull requests and found no overlap.
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 gabichuuuuu on 2026-11-08T22:00:58Z.
Review: COMMENTED
Windows run of head
55a5f8ccef, merged ontomain0bae53facdin one tree with eight other open PRs that touch different files (all nine merged cleanly). Setup: Windows 11, WinLibs GCC 15.2 r7 (x86_64-ucrt-posix-seh, the CI toolchain), Release,BUILD_TESTING=ON.guest_needed_moduleswith--repeat until-fail:5: 5 / 5 pass.main'score/relinker/cli/src/NativeModules.cppand this PR's test: 5 / 5 runs fail.This PR and #17538 both edit
NativeModules.cpp. They merged together cleanly here, and both tests pass in that tree.