two PPC gcc issues in 2.95.3 ->

Eric Christopher echristo@redhat.com
Mon Jun 23 19:22:00 GMT 2003


> 
> 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