fix(relinker): preserve Linux executable exports and ELF section addresses #2785
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2785"
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 tototomate123 on 2026-10-10T15:00:29Z.
What
Split from #1616, following its review. Map section addresses through load segments; preserve defined executable exports,
DT_HASHandDT_DEBUGso Linux symbol lookup and debugging can find them. Includes an executable-export regression and malformed-symbol-table check. Two commits.Tested
Linux x86-64, GCC 16.2.1, Release.
linux_executable_exportspasses (generated Linux ELF loads and calls its exported symbol; malformed input is rejected). Relinker builds. Conventions and whitespace checks pass on current main (5edae353).Depends on
None for build. HFW integration also needs #2786 (loader), #2787 (filesystem), #2788 (http), #2789 (apr), #2790 (shader). #1269 (media), #1339 (VRR), #1586 (unwind) and #1436 (imports) are now on main. Local image-table experiments are excluded; open #757 → #758 overlaps them, and #920 is closed without merging. Earlier combined integration reached menu/loading UI; these isolated branches have not been game-tested and gameplay is unverified.
Checklist
main; no duplicate implementation found beyond superseded #1616Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T15:00:39Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T07:20:42Z.
Checked on Linux x86-64 (relinker scope, 95/95 ctest):
linux_executable_exportspasses with the change and fails without it (exit code 1 from the probe), and the malformedDT_OS_SYMTABSZcase is rejected. TheDT_HASHchain and the section address mapping throughPT_LOADlook right. Merging once CI is green.