libiberty...

Richard Henderson rth@cygnus.com
Mon Nov 22 15:57:00 GMT 1999
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~


More information about the Binutils mailing list