mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
7d1821e3ab
The DT_RELA tags were still guarded on the input module's relocation table, while the new accessor relocations were appended to a copy of it. A module with an initialiser and no imports therefore kept the argument stub but lost both relocations that fill its GOT slots, so the stub called through a null pointer at load time. Guard on the extended table instead, and drop the unused start parameter from the displacement helper. The test now converts a module whose DT_RELASZ is zero and asserts that the output carries both accessor imports and a 48-byte relocation table.