This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: creating shared objects without using -fpic


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]