fix(relinker): allow duplicate Linux guest exports that no module imports #733
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/733"
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 alfalfa-star on 2026-10-05T18:21:35Z.
What
On Linux a title fails to convert when two bundled modules export the same name, even if nothing imports it:
82XiaP80JDoisg_pAKPluginList. Every Wwise effect plugin exports it (36 modules in PPSA14632'sprx/), and the title opens each plugin withsceKernelLoadStartModuleand looks the symbol up through that handle (sceKernelDlsym, which resolves within the module's own scope). No module or executable imports it, and no relocation in the plugins references it by symbol.On Linux a duplicate guest export is now accepted unless the executable or a guest module imports the name, which fails as
Ambiguous guest import <name> in <importer>: exported by <providers>because the provider would be ambiguous. A duplicate within one module still fails. Windows keeps rejecting duplicates.This is the Linux counterpart of #684, which allows duplicates on Windows when imports select their module and keeps the Linux policy. Both edit the duplicate check in
GuestModuleBuilder.cpp, so whichever lands second needs a rebase there. It also works with #672: the#guestrenaming runs after this check.Tested
33e9a121.guest_module_directoriesnow covers two modules exporting the same name (converts on Linux, rejected on Windows) and a third module importing it (ambiguous import on Linux). The other relinker tests pass.mainthe conversion fails as above; with this change all 43 bundled modules convert, and with #672 the plugin exports become82XiaP80JDo#guest. The title does not reach the plugin loading yet (see #730), so the runtime lookups are not exercised by it.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T21:03:44Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/relinker/relinker/src/guest/GuestModuleBuilder.cppL68