AnyPS5/core/relinker
abderahmane-ai bd750b5954 feat(relinker): write a registry for each converted bundled module
--registry only described the imports of the executable, so a title whose
own modules import system functions (PSN.prx, libc.prx and others) could
not be audited completely. With --registry the relinker now also writes
<output-stem>.<module>.registry.json for every converted guest module.

An entry is written for each relocation against an undefined symbol that
no other bundled module exports, the same test the module builder uses to
decide that a dependency is satisfied by a sibling. Entries carry nid,
library and targetOffset; the symbol name no longer has the # suffix by the
time the module is read, so the NID is the bare 11 characters. The
executable's registry is unchanged.

The test converts two modules where one is provided by its sibling, for
Linux and Windows output, covers the DT_RELA and DT_JMPREL tables, checks
that the same module imports the sibling's function once the sibling is
absent, and that nothing is written without --registry. Registered in
CTest as guest_registry.
2026-10-09 22:44:09 +02:00
..
cli test(relinker): cover CLI argument parsing 2026-10-09 02:40:19 +05:00
codegen Merge pull request #1457 from drk1rd/fix/relinker-ud1-trap 2026-10-08 16:17:06 +02:00
domain/include/domain fix(relinker): fall back to unqualified lookup for unmatched import modules 2026-10-06 16:48:10 -03:00
elfpatcher Merge pull request #1586 from awake-devel/fix/relinker-keep-eh-frame-hdr 2026-10-09 23:25:35 +13:00
io fix(relinker): reject invalid and overflowing alignment 2026-10-05 08:44:55 -03:00
relinker feat(relinker): write a registry for each converted bundled module 2026-10-09 22:44:09 +02:00
CMakeLists.txt feat(relinker): write a registry for each converted bundled module 2026-10-09 22:44:09 +02:00
main.cpp feat(relinker): write a registry for each converted bundled module 2026-10-09 22:44:09 +02:00