fix(relinker): rebase the grown Linux program header table #6403
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6403"
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 MarcZX10 on 2026-10-15T14:09:58Z.
What
tableOff, which may differ from the inputphOffwhen the output table grows.Tested
python3 core/relinker/relinker/tests/test_linux_fixed_base.py /tmp/AnyPS5-6393-build/core/relinker/relinkerpassed.0x401118is unmapped).python3 tools/check_conventions.py --base upstream/mainandgit diff --checkpassed.Checklist
main; no other open PR implements the same functions.mdfiles or images addedImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T14:23:27Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/relinker/relinker/tests/test_linux_fixed_base.pyL34, L37Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/relinker/elfpatcher/src/linux/LinuxElfPatcher.cppImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T15:03:30Z.
I rebased the focused #6393 fix commit onto current main and removed the old parent history from the PR branch. The current-main Release relinker build and
test_linux_fixed_base.pypass; the relocated-table regression confirms the entry is mapped at the fixed base. Conventions andgit diff --checkalso pass.Imported from boykopovar/AnyPS5. Originally posted by saxopa on 2026-10-16T14:20:56Z.
Ran this on a real x86-64 kernel (QEMU system emulation, Linux 6.6.134, Ubuntu 24.04 glibc), with the fixture from this PR's
test_linux_fixed_base.py, relinker-only builds ofmain82ddae75band this branch:main--linux-fixed-base--linux-fixed-baseSo the moved-table case crashes at start on
mainand runs at the base with this change. The new test case only inspects the file; runninggrown_pathnext tofixed_pathin the Linux execution block would cover the crash itself.AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T15:34:35Z.
Thanks for the QEMU execution comparison. It confirms the moved-table fixture reaches the runtime failure on main and no longer crashes with this fix. The adjacent
grown_pathexecution check is a useful addition to make that behavior part of CI; I have not changed the PR yet because #6224 already carries the overlapping moved-table regression.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T20:01:45Z.
Thanks for the QEMU runtime check. It confirms the moved-table input crashes on main and reaches the fixed base with this change. Your suggested
grown_pathexecution check would make that runtime behavior part of CI. I have not added it because #6224 and #6447 also carry the same table-offset fix; I’ll leave this PR open and avoid duplicating their test changes pending consolidation guidance.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T00:10:27Z.
Closing in favour of #6224, which has the same
tableOfffix and now carries this PR's three-slot fixture (folded in2cf75dbbf), as you offered on the 15th.Pull request closed