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

Add basic AArch32 support across passes #64

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

antoniofrighetto
Copy link
Collaborator

No description provided.

@@ -38,11 +38,31 @@ static const std::vector<PrologueInfoTy> ANTI_FRIDA_PROLOGUES = {
)delim", 2}
};

// TODO: Ensure the following stub makes Frida fail.
Copy link
Member

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];
Copy link
Member

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];

Copy link
Member

@romainthomas romainthomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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.

3 participants