-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add basic AArch32 support across passes #64
base: main
Are you sure you want to change the base?
Add basic AArch32 support across passes #64
Conversation
@@ -38,11 +38,31 @@ static const std::vector<PrologueInfoTy> ANTI_FRIDA_PROLOGUES = { | |||
)delim", 2} | |||
}; | |||
|
|||
// TODO: Ensure the following stub makes Frida fail. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked the source code of Frida and I don't think this will be working for ARM/Thumb since Frida does not need a scratch register as for AArch64. It could be better to raise a warning or an error?
IRB.CreateCall(FType, InlineAsm::get( | ||
FType, | ||
R"delim( | ||
ldr r1, [r1, #-8]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ldr x1, #-8;
is actually a pc-relative instruction. Thus, it should be: ldr r1, [pc, #-4];
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.