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 Wed, Apr 12, 2006 at 01:56:50AM +0200, Peter S. Mazinger wrote:
> That is true if modern=glibc (there is though some compat  
> option/environment setting to disable this behaviour).

(A) I believe Solaris does the same thing nowadays.  (B) I believe
they've threatened several times to remove the option.

> 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.

Er, is this really true?  Why should it be?

If there's a good reason for it, e.g. detecting non-deterministic
binding, weakening one is just going to give you unpredictable bugs
later.  The strong one will not be reliably picked at runtime.

-- 
Daniel Jacobowitz
CodeSourcery


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