debuggers.hg

changeset 22902:18807b89083d

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>
author Ian Campbell <ian.campbell@citrix.com>
date Tue Feb 01 19:23:31 2011 +0000 (2011-02-01)
parents 923e60b7318c
children 74cd0f668546
files tools/Rules.mk
line diff
     1.1 --- a/tools/Rules.mk	Tue Feb 01 19:19:58 2011 +0000
     1.2 +++ b/tools/Rules.mk	Tue Feb 01 19:23:31 2011 +0000
     1.3 @@ -55,6 +55,9 @@ CFLAGS  += -D_LARGEFILE_SOURCE -D_LARGEF
     1.4  LDFLAGS += $(shell getconf LFS_LDFLAGS)
     1.5  endif
     1.6  
     1.7 +# Xen tools build is currently incompatible with ld --as-needed
     1.8 +LDFLAGS += -Wl,--no-as-needed
     1.9 +
    1.10  # 32-bit x86 does not perform well with -ve segment accesses on Xen.
    1.11  CFLAGS-$(CONFIG_X86_32) += $(call cc-option,$(CC),-mno-tls-direct-seg-refs)
    1.12  CFLAGS += $(CFLAGS-y)