aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Rules.mk
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-02-01 19:23:31 +0000
committerIan Campbell <ian.campbell@citrix.com>2011-02-01 19:23:31 +0000
commit047b1675f840761f1756c215ab5dfe78ef8546a9 (patch)
tree304229a5da785720c6468da564608483a051996c /tools/Rules.mk
parentd3e77ae6b6b24eb650868019040ef3e228eccbed (diff)
downloadxen-047b1675f840761f1756c215ab5dfe78ef8546a9.tar.gz
xen-047b1675f840761f1756c215ab5dfe78ef8546a9.tar.bz2
xen-047b1675f840761f1756c215ab5dfe78ef8546a9.zip
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 on. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Reported-by: Nathan March <nathan@gt.net> Tested-by: Nathan March <nathan@gt.net> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/Rules.mk')
-rw-r--r--tools/Rules.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/Rules.mk b/tools/Rules.mk
index 75948a3cdd..f7dda356b5 100644
--- a/tools/Rules.mk
+++ b/tools/Rules.mk
@@ -55,6 +55,9 @@ CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
LDFLAGS += $(shell getconf LFS_LDFLAGS)
endif
+# 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)
CFLAGS += $(CFLAGS-y)