Hi,

I'm trying to build some shared libraries with the Linaro Android toolchain.
For all of my libraries I get the following errors from the linker:

|BlaBla.cpp.o: requires unsupported dynamic reloc R_ARM_REL32; recompile with 
-fPIC

/home/dev/android/android_linaro_toolchain/libexec/gcc/arm-linux-androideabi/4.7.1/real-ld:
 error: hidden symbol '__dso_handle' is not defined locally
|

I'm using -fPIC in the compiler's flags so I'm not sure why the linker is complaining. The |__dso_handle| error is supposed to have been fixed in the NDKr6. I tried the Linaro 4.7.1(2012.05) toolchain, the one available for download, one of the daily builds from Linaro of the same toolchain(the one from Friday last week) and I also rebuilt entirely the toolchain from source but with the same results. I found a bug report in the launchpad(https://bugs.launchpad.net/igloocommunity/+bug/1000200) which pretty much describes exactly the same problem but unfortunately none of the observations made there helped(I do have -fPIC in the compilation flags, I do not
have any assembly source and I rebuilt the toolchain from source).

Does anyone have any hints on how to fix or overcome the problem?

Thanks,

Marius





_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to