someone please hep me
Andrew Haley
aph@redhat.com
Fri Apr 6 10:00:00 GMT 2007
Alan Kozlay writes:
> When I link (LD) I get:
>
> relocation truncated to fit: R_ARM_PC24 myFavoriteFunction
>
> I take this to mean that the compiler cannot generate a call to an address
> that far away.
> Am I right?
>
> Things I've tried:
>
> 1) added -mcpu=arm7tdmi
> Changed nothing
> 2) added -mapcs-32
> Changed nothing
> 3) -mapcs-frame (getting desperate)
> Changed nothing
>
> I've come to believe that it -mlong-calls that I really need but I don't
> think 2.95 supports it.
>
> What can I do?
You have to find the particular reloc it's complaining about and find
out what generated it.
Andrew.
--
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903
More information about the Gcc-help
mailing list