Use of -fPIC on Tru64

Richard Henderson rth@redhat.com
Thu Dec 13 01:44:00 GMT 2001


On Thu, Dec 13, 2001 at 10:29:08AM +0100, Arnaud Charlet wrote:
> I do not understand why -fPIC is specified explicitely.

-fPIC affects assumptions about how names bind.

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.


r~



More information about the Gcc mailing list