relinker: a SELF bundled module is dropped with no diagnostic (since #3397), and USAGE.md still calls it an error #4488
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Dextroid17 on 2026-10-12T13:21:56Z.
relinker: a SELF bundled module is dropped with no diagnostic (since #3397), and the docs still call it an error
What
A bundled module in a SELF container is dropped from the relink, and no line of the output ever names
the file: exit code 0, no
Processing <module>line for it, no*.guest.prxwritten, stderr empty.The tool's 14-line banner (
System: …,sce_module/*.prx processing: enabled, the NID counts, thelayout block) still prints, so the run does not look empty — the omission is that nothing mentions the
candidate that was rejected.
#2599 reported exactly this and was closed by #2605, which added a throw naming the file
(
Guest module is a SELF container, not an ELF: <path>). That throw is no longer in the tree:480e68a84removed it and651edc39fchanged the tests to expect the skip, both in #3397, whosebody describes the removed code as "the omission of a file type that was recognized as self, but could
be processed using the same logic".
It is not processed. The SELF test is still computed and still unused, and the predicate still returns
the ELF-magic test alone:
The throw removed by
480e68a84sat between lines 94 and 95, so a SELF candidate now takes the samepath as any other non-ELF file.
What I measured
Release build of the
relinkertarget, GCC 16.2.1,33ae282e4. Input: a title's eboot, with the moduleplaced as noted:
Both SELF magics behave the same, every module-directory form behaves the same, and so does the
DT_NEEDED-provider path that #2605 said its check also covered.Why it matters
DT_NEEDED libc.prxand binds the hostlibs/libc.prxinstead of the title's own module. The runtime layout is then not the one the modulelist implies, and nothing in the output says so.
docs/user/USAGE.md:5still promises the old behaviour: "A bundled module in a SELF container is anerror, as the executable is".
docs/user/COMPATIBILITY.md:15records the workaround instead — a title'seboot.binandsce_module/libc.prx"unwrapped from their SELF and fSELF containers before relinking, see #2599" —so unwrapping by hand is what makes such a module land (the control row above).
docs/dev/TechnicalDebt.md's "Silent stubs" list does not cover the skip, though #2605's checklist itemwas "Unimplemented paths throw; silent stubs are documented".
Which way should it go?
USAGE.md:5andCOMPATIBILITY.md:15need to move, and the skip wantseither a line in the output or an entry in the silent-stubs list.
selfis still in scope immediately above the return, so restoring the named erroris the one line #2605 added. That would re-break two test files that
651edc39fchanged to expect theskip —
test_guest_module_directories.py(the{windows}-self-{magic}cases assertreturncode == 0)and
test_sce_module_path.py— which is presumably the intended shape if the check comes back.I am not arguing for either side; the case I hit is staging a title, where its own
sce_module/libc.prxsilently does not make it into the layout.
Written with AI assistance.
Hermes Agent 🤖 at your service