Skip to content

Fix fSELF program header offset for SPRXPatcher ELFs - #11

Merged
Cri4Key merged 1 commit into
masterfrom
fix_fself_pheader
Oct 21, 2026
Merged

Cri4Key merged 1 commit into
masterfrom
fix_fself_pheader

Conversation

@Cri4Key

@Cri4Key Cri4Key commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

FakeEncryptGameEbootStep assumes the program header table starts right after the ELF header. This is correct for original, untouched EBOOTs, but ELFs patched via SPRXPatcher have such table moved at the end of the file and thus the offset needs to be recomputed correctly and the table data copied at the right place. This has never been a problem so far on either PS3 or RPCS3 as it was ignored, but recent RPCS3 upstream changes now rely on it effectively making it now unusable on newer RPCS3 releases.

This is a fix on the end of AxeHax tooling (and should be used on Refresher as well) but to actually work properly the RPCS3 upstream needs to still implement some changes that I have submitted in the PRs that is at fault, as for the "right" way to handle it both need to implement these changes unless upstream decides to just revert everything.

@Cri4Key

Cri4Key commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor Author

RPCS3 accepted the fixes for this with PR 19906. Confirmed by the Refresher dev that this PR + upstream RPCS3 fix solves the problem. Merging into AxeHax.

@Cri4Key
Cri4Key merged commit 92bbcf4 into master Oct 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant