[PATCH] PR ld/19636: [x86] Resolve undefweak and defined symbols in executable

Michael Matz matz@suse.de
Wed Feb 24 16:52:00 GMT 2016


Hi,

On Wed, 24 Feb 2016, H.J. Lu wrote:

> >> It is in the same boat as LD_DYNAMIC_WEAK in ld.so. If one wants the 
> >> old behavior, use -z dynamic-undefined-weak.
> >
> > That doesn't make sense to me.  Why should one suddenly have to use an 
> > option to get useful behaviour that one got since about forever 
> > before?
> 
> My change will make ld guarantees the consistent behavior, regardless 
> PIC or non-PIC.

As you keep repeating this, I'll do so as well: yes, and you resolved that 
consistency into the wrong direction, break PIC and non-PIC, instead of 
fixing both.  That makes no sense, just because there are broken 
circumstances should not make us break all others as well.


Ciao,
Michael.



More information about the Binutils mailing list