This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: libiberty...
- To: richard dot earnshaw at arm dot com
- Subject: Re: libiberty...
- From: Richard Henderson <rth at cygnus dot com>
- Date: Mon, 22 Nov 1999 15:57:10 -0800
- Cc: Scott Bambrough <scottb at netwinder dot org>, Philip Blundell <Philip dot Blundell at pobox dot com>, Ian Lance Taylor <ian at zembu dot com>, binutils at sourceware dot cygnus dot com, Nick Clifton <nickc at cygnus dot com>
- References: <3835CDC5.88598812@netwinder.org> <199911201128.LAA05227@cam-mail1.cambridge.arm.com>
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~