Guillaume Jaunet wrote:

> 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:
>

    I haved tried your suggestion while I build my own libc and linking
with my application.
    But same error exists.

    Here is the command I used:

    arm-linux-gcc -fPIC -shared -nostdlib -o libnewc.so $OBJS
    arm-linux-gcc -fPIC print.c -nostdlib -L. -lnewc

    Is it necessary for me to add -fPIC also while I build files in $OBJS?

    Thx.

Yours,
Jacky


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

Reply via email to