Hi,

> When I build a shared library A, a second shared library
> which links with A, and a program links with the second
> shared library, the program complains:
> ./prog: error in loading shared libraries: /usr/lib/libfoo.so: R_ARM_PC24
relo
> cation out of range
>
> Is there anything to take care when builing shared libraries?

You have to compile the object files with -fPIC.

Regards,
T J



_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm

Reply via email to