Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MIPS PLT on newer Unicorn versions #1932

Merged
merged 1 commit into from Jul 12, 2021
Merged

Conversation

Arusekk
Copy link
Member

@Arusekk Arusekk commented Jul 12, 2021

Apparently it is us who used unicorn The Wrong Way,
e.g. trying to fetch instructions @ 0xdbdbdbdb,
which is both unaligned and high-address-space.
Unicorn just changed the exception to throw exception with the address
of an offending jump instruction, instead of the incorrect address.
Making the debugs actually work and changing address to 0x7c7c7c7c
solves the issue.

Closes #1538
Ping pentoo/pentoo-overlay#734 @blshkv

Apparently it is us who used unicorn The Wrong Way,
e.g. trying to fetch instructions @ 0xdbdbdbdb,
which is both unaligned and high-address-space.
Unicorn just changed the exception to throw exception with the address
of an offending jump instruction, instead of the incorrect address.
Making the debugs actually work and changing address to 0x7c7c7c7c
solves the issue.

Closes Gallopsled#1538
Ping pentoo/pentoo-overlay#734 @blshkv
@Arusekk
Copy link
Member Author

Arusekk commented Jul 12, 2021

Tested on both py2 and py3 locally, with and without PLT_DEBUG commandline arg set. Merging, since it looks mature and pretty fail-proof.
EDIT: skipping changelog, since it does not change behavior, and the dependencies speak for themselves.

@Arusekk Arusekk merged commit 03df22a into Gallopsled:dev Jul 12, 2021
@Arusekk Arusekk deleted the mips-plt-ftw branch July 12, 2021 19:42
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.

Unfreeze unicorn: broken MIPS PLT
1 participant