This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: someone please hep me
- From: Andrew Haley <aph at redhat dot com>
- To: "Alan Kozlay" <alankozlay at biometricassociates dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 6 Apr 2007 11:00:23 +0100
- Subject: Re: someone please hep me
- References: <000001c777f6$09553df0$6701a8c0@AlanLaptop>
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