I am trying to replace my default arm-eabi-ld
with installed from binutils-gold
ld
, however during linking I have got
(..../*.o) requires unsupported dynamic reloc; recompile with -fPIC
LOCAL_CFLAGS := -fPIC
in Android.mk doesn't help very much. Is there any chance to use gold linker?
good news!
Latest version from https://launchpad.net/ubuntu/+source/binutils/2.21.0.20110327-2ubuntu2/+buildjob/2436559 works for me!
my results:
linking with ld: 6 minutes
linking with gold: 1 minute !!!!
installation script: