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]

someone please hep me


Help,


GCC:
I?m using GNU?s arm-elf-gcc 2.95.2 because we have some older code to mix in
which was originally written and tested using that version.

Hardware:
ARM7TDMI with additional external FLASH to run additional code in

	internalFlash  	: ORIGIN = 0x00000000, LENGTH = 0x40000
	ram 			: ORIGIN = 0x20000000, LENGTH = 0x10000 
	extFlash (RXA) 	: ORIGIN = 0x60000000, LENGTH = 0x800000

For my test, all code is placed in internal Flash except a simple stub
function named myFavoriteFunction() which is placed in external flash
The code in the internal flash references that function.

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?

Thanks in advance,
-Alan


Alan Kozlay
Software/Hardware Engineer.
?
Biometric Associates, Inc.
9475 Deereco Rd.? Suite 304
Lutherville, MD 21093
alankozlay@biometricassociates.com
www.biometricassociates.com
(410) 252-7210 DESK
(410) 252-7214 FAX



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