From GCC 4.4.3 to 4.6.0 -march=armv5te

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

From GCC 4.4.3 to 4.6.0 -march=armv5te


When I try to compile my project with gcc 4.6.0 instead of 4.4.3 for armv5te, I get an exception while invoking System.loadLibrary():
E/AndroidRuntime(24706): FATAL EXCEPTION: main
E/AndroidRuntime(24706): java.lang.ExceptionInInitializerError
E/AndroidRuntime(24706): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1285]:   104 cannot locate '__gnu_thumb1_case_si'...
E/AndroidRuntime(24706): at java.lang.Runtime.loadLibrary(
E/AndroidRuntime(24706): at java.lang.System.loadLibrary(
E/AndroidRuntime(24706): at com.myapp.MyApp.<clinit>(
E/AndroidRuntime(24706): ... 15 more
W/ActivityManager(  204):   Force finishing activity com.myapp/com.myapp.MyApp

The flag configuration for gcc is as follows:
-fno-rtti -fno-exceptions -march=armv5te -mtune=xscale -msoft-float -mthumb -mthumb-interwork -fstack-protector -finline-limit=64 -Wno-psabi -O2 -fpic -fno-strict-aliasing -funwind-tables -fno-short-enums -fsigned-char -ffast-math -fvisibility=hidden -O0 -g -Wall -Wextra -Wno-unused -Wno-sign-compare

If i remove -mthumb key everything works okay (compiling for armv7-a or x86 works either), but I cannot remove thumb from production.

Is there anything I can do to fix thix problem? Thanks :-)

You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at