This is the mail archive of the gcc@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: two PPC gcc issues in 2.95.3 ->


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>


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