I know ARMv7 compatible CPU can execute ARMv6 code.
But can I statically link ARMv6 code with ARMv7 code in single binary?
I am interested in both iOS 6 and Android platforms.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Android supports building fat binary with both ARMv6 and ARMv7.
But Android 4.0 on ARMv7 devices has bug and it loads ARMv6 lib even when ARMv7 is available.
You have to name libs differently.
Parse /proc/cpu file and get information about cpu and load proper lib by name.
Android NDK have sample code to detect CPU.