-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Armbe8 patches #1130
Armbe8 patches #1130
Conversation
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.
Thanks!
src/linux/frida-helper-backend.vala
Outdated
@@ -1988,7 +1988,11 @@ namespace Frida { | |||
#elif ARM | |||
target_address &= ~1; | |||
|
|||
# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ |
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.
Does the Vala compiler define this?
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.
Yeah. It seems to work just fine. Without the change it dies.
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.
ISTM this will always be false, because I can't see the Vala compiler defining this. (Just grepped through the codebase.)
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 am setting the CFLAGS
environment variable before I run ./configure
and make
to set -mbe8
and it seems to work ok for me. Without this change frida-inject
seems to fail? Perhaps vala
still uses the C pre-processor and that's why this works?
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.
Let me check this and confirm that it is working as expected.
src/linux/helpers/loader.c
Outdated
/* avoid inline initialization to prevent the compiler attempting to insert a call to memset */ | ||
/* | ||
* Avoid inline initialization to prevent the compiler attempting to insert | ||
* a call to memset. |
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.
Extra space before memset
.
src/linux/helpers/loader.c
Outdated
/* avoid inline initialization to prevent the compiler attempting to insert a call to memset */ | ||
/* | ||
* Avoid inline initialization to prevent the compiler attempting to insert | ||
* a call to memset. |
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.
Extra space before memset
.
a9f79f1
to
b390702
Compare
Thanks! 🙌 |
Fixes to support ARMBE8