creating shared objects without using -fpic
Alan Modra
alan@linuxcare.com.au
Thu Aug 3 20:01:00 GMT 2000
On Thu, 3 Aug 2000, Doug Evans wrote:
> [target = i386-linux]
>
> Suppose I create a shared object but I _don't_ compile the
> object files in it with -fpic.
>
> Seems to me that this can't work, but simple tests
> reveal that the dynamic linker is smart enough to
> get some things right.
>
> Did I miss something, or is -fpic on linux no longer useful.
Well, non-PIC shared libraries "work" (at least they are supposed to), but
any pages in the shared library that need fixups won't be shared between
process images.
--
Linuxcare. Support for the Revolution.
More information about the Binutils
mailing list