-
Notifications
You must be signed in to change notification settings - Fork 418
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
error: unknown register name 'r0' in asm #25
Comments
use the gcc compiler |
I have the same problem, using gcc compiler alone, it gave me these errors
|
My solution is creating a Application.mk under the directory of jni: APP_MODULES := base |
ok. I found this project is not suitable for arm64, coz r0-r7 do not exist anymore, and x0-x7 instead. And, if you wanna make this project work on arm64-v8a, some codes need to be edited, such as the inline assembly the compiler mentions, and codes about ELF32, the hook assembly codes, etc. |
When try to compile, i have an error:
[arm64-v8a] Compile : base <= hook.c
~/adbi/instruments/base/jni/../hook.c:43:5: error: unknown register name 'r0' in asm
: "r0", "r1", "r7"
The text was updated successfully, but these errors were encountered: