Use of -fPIC on Tru64

Arnaud Charlet charlet@ACT-Europe.FR
Thu Dec 13 03:35:00 GMT 2001


> -fPIC affects assumptions about how names bind.

Thanks. So -fPIC has indeed an effect on Tru64, and generates, I guess,
less efficient code.

> Without pic, it is assumed that
> 
>   void foo() { ... }
>   void bar() { foo(); }
> 
> bar calls the version of foo immediately above.  With pic, this
> is not a valid assumption, because the name foo may bind from
> another library earlier in the search order.

But then, why does libgcc need to be compiled with -fPIC on Tru64 ?

Arno



More information about the Gcc mailing list