Repository navigation
fix(relinker): name the guest module in its output filename errors - #8270
Merged
oneandonlydean merged 1 commit intoOct 20, 2026
Merged
oneandonlydean merged 1 commit into
oneandonlydean merged 1 commit into
Conversation
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
12 tasks done
Contributor
|
Verdict: confirm. Tested at
AI-assisted: yes (Claude Code); results above were run on this machine. |
The checks on a guest module's output name threw without an input path, so the conversion's catch reported the main executable. They now carry the module's path, as the guest image reader's errors do. The loop's duplicate-export check gets the same change for consistency; it cannot fire, because the reader rejects a duplicate first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
thuanquang
force-pushed
the
fix/relinker-module-name-input-path
branch
from
October 20, 2026 16:45
99ffb6a to
d896645
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Follow-up to #8262. The relinker's checks on a guest module's output name also report the main executable on the
Input:line, because their exceptions carry no input path and the conversion's catch fills in the executable. With--windowsand a module namedbroken é.prx:The three output-name checks in
GuestModuleBuilder's per-module loop (unsupported guest filename, unsupported Windows guest filename, conflicting guest output filename) now put the module's path in the exception, as the guest image reader already does. The loop's duplicate-export check gets the same change for consistency, but it cannot be reached:GuestImageReaderrejects a duplicate stripped export first, and its error already names the module.Tested
Windows 11 26200, WinLibs GCC 15.2.0 r7, Release,
BUILD_TESTING=ON.conversion_diagnostics: with--windowsand with--windows --to-intel, a new case converts an executable with a well-formed guest module namedbroken é.prx(the helper's existing name). It requiresUnsupported Windows guest filenameand exactly oneInput:line naming the module.main1edbe4b5ewith only the test change: both new cases fail, and theirInput:line nameseboot.bin.conversion_diagnosticspasses 3 of 3. With every relinker test executable rebuilt, all 151 tests undercore/relinkerpass.GuestModuleBuilder.cpp(fix(relinker): resume scans after undecodable bytes between PS4 unwind functions #7660, fix(relinker): share Windows --module-dir modules between executables #7450, fix(relinker): infer guest dependencies from referenced imports #6903, fix(relinker): run a guest DT_INIT of 0 as the module initializer #6684) or the syscall scanner (fix(relinker): resync the syscall scan past undecodable data regions #8042, fix(relinker): mask embedded data tables in inter-FDE gaps #8076).relinker --windows ... --module-dir Media/Modules eboot.binwithmain+ fix(relinker): name the guest module when its syscall scan fails #8262 + fix(relinker): name the guest module in its output filename errors #8270): the syscall stop now reportsInput: ...\Media\Modules\MonoAssembliesPS4.prxinstead ofeboot.bin.python tools/check_conventions.py --base origin/mainwith this title and body passes.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)🤖 Generated with Claude Code