Repository navigation
Conversation
Match the executable import type rule for guest-to-guest bindings and add conversion, native Linux, and TLS rejection regressions.
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
What
A guest module importing a function or object from another bundled module fails conversion with
Guest import/export type mismatchwhen the provider usesSTT_NOTYPE. The executable-to-guest path already accepts this pairing; the guest-to-guest path rejects it before output is emitted.Align the guest-to-guest type predicate with the existing executable path.
STT_NOTYPEis an unspecified ordinary type (ELF gABI section 5.3); TLS imports still require a TLS export, explicitly incompatible types still fail, and the existing non-TLS relocation guard is preserved.Extend three existing fixture suites. The Linux execution cases select
b.prx(value 22) while a competinga.prxexports the same name (value 11), covering both a function call and an object read through real relocations. The conversion cases cover FUNC/OBJECT imports from NOTYPE exports, and a new TLS negative case protects the exception.No title-specific behavior, new dependency, or game-unblock claim.
Tested
Linux x86_64, GCC 14.2.0, CMake 3.31.6, Python 3.12.14, Release,
ANYPS5_RELINKER_ONLY=ON,BUILD_TESTING=ON. Tested local commit:bb58bbeb2ae43bdd0fe48f5fe11682207963465a; base:a0e55122cb00db002d693efdd53b101fae86a83c. Published commit:cb2cd0d1b56bb3a74eba6a94faa5509e8b3591f5. The published and tested trees are identical:e1e737b81a37dd279617ae316f11e4fdc9bf2ae3.7cca3db6e867943c676b217391f1bbc6bc43b170. With the new tests and unchanged production code,linux_guest_qualified_importsandguest_export_lookupfail with the expected import/export type mismatch. The added TLS negative case passes. The relinker source is unchanged between this RED baseline and the final base.ctest --test-dir build-relinker --parallel 6 --output-on-failure.python3 tools/check_conventions.pyandgit diff --checkpass. Rebase range-diff confirms the patch is unchanged.ctest. Installing Ninja and putting both tools on PATH resolved these in the final complete rerun; no tests were disabled or altered for this.Overlap-check limitation:
python3 tools/pr_overlap.py --branch fix/relinker-untyped-guest-exports --repo boykopovar/AnyPS5 --base mainwas attempted but could not query PRs because this environment'sghis not authenticated. The 15 open PRs returned forGuestModuleBuilder, plus the additional NOTYPE search hit boykopovar#27825, were inspected manually, with no duplicate of this fix found. boykopovar#21877 and boykopovar#27866 touch nearby provider-selection code while preserving the old type condition; boykopovar#28282 adds guest-to-executable binding, and boykopovar#28178 handles executable TLS imports. The extra trace-imports PR boykopovar#27825 touches none of these four files. This is a manual duplicate check, not an exhaustive automated overlap pass or a merge-composition test.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)Summary by CodeRabbit