two PPC gcc issues in 2.95.3 ->

Mark Douglas mdouglas@metrowerks.com
Mon Jun 23 23:30:00 GMT 2003


Michael and Eric:
nice to here from you guys...
sounds like it's not fixed for 32 but sounds like a workaround exists through the use of function pointers w/ the longcall attribute. can you confirm?
Thanks!
Mark


-----Original Message-----
From: Eric Christopher [mailto:echristo@redhat.com]
Sent: Monday, June 23, 2003 11:55 AM
To: Michael Meissner
Cc: gcc@gcc.gnu.org; Mark Douglas
Subject: Re: two PPC gcc issues in 2.95.3 ->



> 
> REL24 means pc-relative calls and jumps must be within 2**24 bytes.  This is
> due to the instruction layout.  You can direct the compiler to call functions
> through a pointer with either the longcall attribute, or with the -mlongcall
> switch which affects all function calls.  You might check whether newer
> releases of the linker will insert some code that is linked near the call, and
> then loads up the long address and jumps to it.
> 

ppc64 will. 32 will not.

-eric

-- 
Eric Christopher <echristo@redhat.com>



More information about the Gcc mailing list