This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] tools: disable linker --as-needed option.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] tools: disable linker --as-needed option.
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Wed, 02 Feb 2011 01:10:20 -0800
Delivery-date: Wed, 02 Feb 2011 01:11:25 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1296588211 0
# Node ID 18807b89083dd6ff27f95974a6d7ee1111179b07
# Parent  923e60b7318c41a2a18e3f535b9023c12a0a8968
tools: disable linker --as-needed option.

The Xen build system is not currently compatible with the --as-needed
linker option. The proper fix for this is turning out to be rather
invasive to the build system so simply disable for now with the
intention of revisiting for the 4.2 release.

The --no-as-needed option is available at least since binutils 2.15
(released in May 2004) and hence I think can be unconditionally relied

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Reported-by: Nathan March <nathan@xxxxxx>
Tested-by: Nathan March <nathan@xxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
 tools/Rules.mk |    3 +++
 1 files changed, 3 insertions(+)

diff -r 923e60b7318c -r 18807b89083d tools/Rules.mk
--- a/tools/Rules.mk    Tue Feb 01 19:19:58 2011 +0000
+++ b/tools/Rules.mk    Tue Feb 01 19:23:31 2011 +0000
@@ -55,6 +55,9 @@ LDFLAGS += $(shell getconf LFS_LDFLAGS)
 LDFLAGS += $(shell getconf LFS_LDFLAGS)
+# Xen tools build is currently incompatible with ld --as-needed
+LDFLAGS += -Wl,--no-as-needed
 # 32-bit x86 does not perform well with -ve segment accesses on Xen.
 CFLAGS-$(CONFIG_X86_32) += $(call cc-option,$(CC),-mno-tls-direct-seg-refs)

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] tools: disable linker --as-needed option., Xen patchbot-unstable <=