-
Notifications
You must be signed in to change notification settings - Fork 9
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
Indirect flags failing #1
Comments
It seems that it conflicts with PIE. The target is arm right? I will look into it later, thanks for your report! |
btw does it work for arm64-v8a? |
Yes this is arm, and no doesn't work on arm64. My main target is both arm and arm64 |
On Arm64, I got different errors related to ld |
For |
Works now on arm64, and fixed curl. I messed it up by accident |
doesn't work with |
With
It works fine on arm64 and x86_64 With
Tested on public project https://github.com/LGLTeam/Android-Mod-Menu but I added a bat file to compile libs without Android studio |
It's weird, I can compile for 32bit arch with
|
Are you using NDK 25 right? I got an error on different cpp files on Android-Mod-Menu project |
I am using NDK r24 for now.
|
c5f30f7 should properly fix the linking error. |
I tried NDK r24 but still getting same error on 32-bit. Mind telling me your way to setup ollvm on NDK? I followed this chinese tutorial to setup ollvm https://blog.csdn.net/qq_41923691/article/details/123258565 |
Almost the same as this tutorial but I am using Linux. a2aebce changed the linkage type for index value too and adjusted the offset. Could you please try this one?
|
It's now working on NDK 24 and 25 and the app ran perfectly as well. One more thing, the flag |
It should be |
Ok it works now. Now I noticed something is wrong with sllvm, it's not obfuscate anything, despite all the flags are valid. The lib size are always same with and without sllvm flags. And I removed some OBFUSCATE and to check in IDA Pro, see if the strings is obfuscated by sllvm, it's not. What i'm doing wrong? |
Do other flags also behave like this or only |
Very sorry, I realized I accidently disabled new pass manager during the rebuild. Recloned and rebuild again with new pass on. Still getting error on 32-bit. Maybe the fix does not apply on Windows?
|
Did you pull the latest submodule? |
Yes, I did. Just only 32-bit issue left. x86_64 and arm64 compiled fine but x86_64
arm64
I'm using llvm-mingw 20220906 for compiling sllvm on Windows 10 x64 Sorry for giving you headache |
I will look into this later. It will take some time since I need to take an exam these days, sorry for that. |
No problem. Good luck with the exam 😊 |
There seems to be error when using
indircall
orindirbr
flagsSamples
KittyMemory.zip
The text was updated successfully, but these errors were encountered: