Re: Ch.10.2 Libraries - shared lib compilation - -fPIC
Andrey Rahmatullin <wrar@debian.org> writes:
> It's not "contra-productive". It may cause some performance decrease in
> some cases, but benefits are more important than that.
In particular, having to do text relocations during dynamic linking means
that the text segment has to be read/write, which interferes with some
security hardening measures that are generally more important than the
marginal performance benefit one might get from not using PIC.
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: