From: Wei Liu Subject: Re: [PATCH v2] tools: link executables with libtinfo explicitly Date: Tue, 2 Jun 2015 17:58:24 +0100 Message-ID: <20150602165824.GZ19403@zion.uk.xensource.com> References: <1433252006-1779-1-git-send-email-daniel.kiper@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YzpWN-0008Ti-23 for xen-devel@lists.xenproject.org; Tue, 02 Jun 2015 16:58:35 +0000 Content-Disposition: inline In-Reply-To: <1433252006-1779-1-git-send-email-daniel.kiper@oracle.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: Daniel Kiper Cc: xen-devel@lists.xenproject.org, wei.liu2@citrix.com, ian.jackson@eu.citrix.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org 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. > > 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