This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: someone please hep me


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]