This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: objcopy --weaken


On Tue, 11 Apr 2006, Daniel Jacobowitz wrote:

> On Wed, Apr 12, 2006 at 01:05:48AM +0200, Peter S. Mazinger wrote:
> > Hello!
> > 
> > The objcopy --weaken command suggests that it is able to change all 
> > (global) symbols to weak. Running it against an object file it does it, 
> > but running it against a shared lib does not change anything.
> 
> What do you expect it to do?

I would have expected to change all global(strong) to weak.

> In modern shared library lookup, dynamic exported symbols are the same
> whether they are strong or weak.

That is true if modern=glibc (there is though some compat  
option/environment setting to disable this behaviour).

At link time if libpthread.so and libc.so provide the same symbol (could 
happen w/ any other 2 libs, the example is "real-life", the linker fails, 
if one of them is not weak.

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2


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