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

H.J. Lu hjl.tools@gmail.com
Wed Feb 24 16:53:00 GMT 2016


On Wed, Feb 24, 2016 at 8:52 AM, Michael Matz <matz@suse.de> wrote:
> 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.

You keep saying non-PIC is broken, which I disagree.

-- 
H.J.



More information about the Binutils mailing list