refactor(relinker): remove functions nothing calls #6325
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6325"
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 amirerfantim on 2026-10-15T11:47:41Z.
What
Removes relinker functions that nothing in the repository calls:
GuestImageReader::ReadModuleNames: its only caller was removed in41126bfa5.EmitShiftImmandElfReader::ReadSection(and itsIElfReaderdeclaration).ElfReader::GetFileSizehas no caller onmaineither, but #6314 adds one, so it stays.ValidationPolicy::ValidateNidBelongsToLibrary,ValidateSceStructureSize,ValidateDynamicFieldInterpretableandValidateNoSyscallInstructions(and theirIValidationPolicydeclarations).ValidationPolicy::ValidateSyscallAbsence, which is empty, and its call.ValidationPolicy::RegisterLibraryImportand_importedLibraries: the set is read only byValidateNidBelongsToLibrary.ValidateRelocationTypeSupportedalready fills the supported relocation types when the set is empty, so it behaves the same without the registration.No behaviour changes. 11 files, 175 lines removed, none added.
Tested
macOS 27.0 (Apple Silicon), Apple clang 21.0.0, Release relinker-only build.
grep -rnwovercoreandtoolsfinds no remaining reference to any removed name.ValidationPolicyandElfReaderare the only implementations ofIValidationPolicyandIElfReader.-fprofile-instr-generate) of the relinker-only tests onmainexecuted none of the removed functions.python3 tools/check_conventions.py --base origin/mainpasses.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
Imported from boykopovar/AnyPS5. Originally posted by amirerfantim on 2026-10-15T13:05:09Z.
Checked #6112 manually against this PR:
GuestImage.hpp, #6112 adds a field tostruct GuestImage(around line 47); this PR removes theReadModuleNamesdeclaration (line 60).GuestImageReader.cpp, #6112 changesGuestImageReader::Read(around line 357); this PR removesReadModuleNames(lines 15-89).mainare only incore/relinker/CMakeLists.txtanddocs/dev/debt/relinker.md, which this PR does not change.No overlap.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T23:38:35Z.
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.
core/relinker/relinker/include/relinker/guest/GuestImage.hppcore/relinker/relinker/src/guest/GuestImageReader.cppcore/relinker/relinker/src/pipeline/RelinkerPipeline.cppcore/relinker/relinker/include/relinker/guest/GuestImage.hppcore/relinker/relinker/src/guest/GuestImageReader.cpp