From: Daniel Kiper Subject: Re: [PATCH v2] tools: link executables with libtinfo explicitly Date: Wed, 3 Jun 2015 13:08:07 +0200 Message-ID: <20150603110807.GX3787@olila.local.net-space.pl> References: <1433252006-1779-1-git-send-email-daniel.kiper@oracle.com> <20150602165824.GZ19403@zion.uk.xensource.com> <1433327750.7108.65.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z06X0-0003gR-2d for xen-devel@lists.xenproject.org; Wed, 03 Jun 2015 11:08:22 +0000 Content-Disposition: inline In-Reply-To: <1433327750.7108.65.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xenproject.org, Wei Liu , ian.jackson@eu.citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Wed, Jun 03, 2015 at 11:35:50AM +0100, Ian Campbell wrote: > On Tue, 2015-06-02 at 17:58 +0100, Wei Liu wrote: > > On Tue, Jun 02, 2015 at 03:33:26PM +0200, Daniel Kiper wrote: > > > binutils 2.22 changed ld default from --copy-dt-needed-entries > > > to -no-copy-dt-needed-entries. This revealed that some objects > > > are linked implicitly with libtinfo and newer ld fails to build > > > relevant executables. > > For future reference "relevant executables" would be better as a list of > the actual affected programs... Wilco. > > > Below is short explanation why we should not do that... > > > > > > http://fedoraproject.org/wiki/UnderstandingDSOLinkChange says: > > > > > > The default behaviour for ld (my note: before version 2.22) allows > > > users to 'indirectly' link to required objects/libraries through > > > intermediate objects/libraries. While this is convenient, it can > > > also be dangerous because it makes your program's dependencies tied > > > to the dependencies of other objects. If those objects ever change > > > their linkages, they can break your program without any changes > > > to your own code! > > > > > > Please run autoconf in tools directory. > > > > > > Signed-off-by: Daniel Kiper > > > > Acked-by: Wei Liu > > Applied, running autoconf. Thanks! Daniel