This is the mail archive of the
mailing list for the binutils project.
Re: [PATCH] PR ld/19636: [x86] Resolve undefweak and defined symbols in executable
- From: Michael Matz <matz at suse dot de>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Wed, 24 Feb 2016 17:52:04 +0100 (CET)
- Subject: Re: [PATCH] PR ld/19636: [x86] Resolve undefweak and defined symbols in executable
- Authentication-results: sourceware.org; auth=none
- References: <20160223175814 dot GA2858 at intel dot com> <alpine dot LSU dot 2 dot 20 dot 1602241541430 dot 20277 at wotan dot suse dot de> <CAMe9rOoxU43=dhGYZZGQtWhfbU-sGRoaiiJ7PfPNtzSc05-t-A at mail dot gmail dot com> <alpine dot LSU dot 2 dot 20 dot 1602241552020 dot 20277 at wotan dot suse dot de> <CAMe9rOpEWKVVP=-o0t0emkjKR0-xqnn-YZ5C5nfa=0E4BkEZaw at mail dot gmail dot com> <alpine dot LSU dot 2 dot 20 dot 1602241709410 dot 20277 at wotan dot suse dot de> <CAMe9rOr5qa_PBJA3oDENWErRfrojtzC1ncXaWwyh-1EAczPn-g at mail dot gmail dot com>
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.