fix(relinker): drop the input PT_PHDR and PT_INTERP from Linux output #2877
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2877"
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 danzaio on 2026-10-10T17:19:00Z.
PR body draft — fix/relinker-phdr-interp (issue #2816, carries ctj01)
What
I watched a converted game die on startup because the loader read the wrong headers.
The relinker wrote its own
PT_PHDRandPT_INTERPnext to the input's copies. The loader takes the load bias from the lastPT_PHDR, which is the stale input one, and the process faults before main. The input'sPT_PHDRandPT_INTERPare now filtered out. Carries ctj01's branch, closed by intake before review.Tested
Windows, MinGW 15.2, relinker-only build.
linux_input_program_headerscovers neither/interp-only/phdr-only/both/exact-slots: fails without the fix, passes with it. The run-until-entry half is Linux-only; structural checks ran here. Conventions check passes.Not run: Linux execution.
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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T17:19:11Z.
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.
Pull request closed