This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: creating shared objects without using -fpic
- To: Doug Evans <dje at transmeta dot com>
- Subject: Re: creating shared objects without using -fpic
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Fri, 4 Aug 2000 13:00:55 +1000 (EST)
- cc: binutils at sourceware dot cygnus dot com
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.