PIC is wasteful

Agner Fog agner@agner.org
Fri Jun 24 18:09:00 GMT 2011


On 24-06-2011 17:21, Ian Lance Taylor wrote:
>
>> Is there no way to avoid 32 bit absolute addresses in 64 bit mode
>> other than -fpic which has the undesired effect of using GOT and PLT
>> entries?
> -mcmodel=large.
The large model is not supported. If it was, it would probably be 
inefficient.
>> -Bsymbolic doesn't seem to do anything. At least it doesn't prevent
>> GOT entries
> -Bsymbolic is a linker option, and it does do something at the linker
> level.  However, the linker is unable to eliminate a GOT once the
> compiler has created one.
That makes sense



More information about the Gcc-help mailing list