Hi,

You are facing a very well known bug of the linker on ARM. 
Just add the -fPIC flag to gcc to override this problem.

Regards,
Guillaume


Jacky Lam wrote:
> 
> Hi,
> 
>     I am trying to make a new library replacing libc. After I link it
> with a helloworld program and run it on the board,
>     the following error occurs:
> 
>     error in loading shared libraries: ./libnewc.so: R_ARM_PC24
> relocation out of range
> 
>     Could anyone tell me why this happens and how to fix it?
> 
>     Thx.
> 
> Yours,
> Jacky
> 
> _______________________________________________
> http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
> Please visit the above address for information on this list.

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to