This is the mail archive of the binutils@sourceware.cygnus.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: libiberty...


On Sat, Nov 20, 1999 at 11:28:47AM +0000, Richard Earnshaw wrote:
> What do you mean we can't call it a "shared library system" if it doesn't 
> share code?  Oh, hell!  Let's call it a DLL then...

It's not so bad as you make out -- if you compile with -fpic
the code _does_ get shared.  It's just that most ELF targets
also allow non-pic code in shared libraries at a (possibly
substantial) performance cost.

Even then, if care is taken the linker can try to minimize
the cost.  E.g. by causing the direct call to go to a stub 
that does a proper PIC inter-module branch.


r~

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