config/binutils/binutils.in
changeset 2376 369664fd7cba
parent 2374 e99f599ff64d
child 2467 200836977ce6
     1.1 --- a/config/binutils/binutils.in	Mon Apr 04 01:00:17 2011 +0200
     1.2 +++ b/config/binutils/binutils.in	Tue Apr 05 01:02:28 2011 +0200
     1.3 @@ -80,6 +80,12 @@
     1.4  config ARCH_x86
     1.5      select BINUTILS_GOLD_SUPPORTS_ARCH
     1.6  
     1.7 +# Force using the BFD linker if needed
     1.8 +# This is the case for some C libraries (eg. glibc and
     1.9 +# eglibc at least) and affected components can select this
    1.10 +config BINUTILS_FORCE_LD_BFD
    1.11 +    bool
    1.12 +
    1.13  choice
    1.14      bool
    1.15      prompt "Linkers to enable"
    1.16 @@ -95,6 +101,7 @@
    1.17      prompt "gold"
    1.18      depends on BINUTILS_HAS_GOLD
    1.19      depends on BINUTILS_GOLD_SUPPORTS_ARCH
    1.20 +    depends on ! BINUTILS_FORCE_LD_BFD
    1.21      depends on EXPERIMENTAL
    1.22      select BINUTILS_GOLD_INSTALLED
    1.23      help
    1.24 @@ -125,6 +132,7 @@
    1.25      depends on EXPERIMENTAL
    1.26      select BINUTILS_GOLD_INSTALLED
    1.27      select BINUTILS_LINKER_BOTH
    1.28 +    select BINUTILS_LD_WRAPPER if BINUTILS_FORCE_LD_BFD
    1.29      help
    1.30        Both the historical ld and the new gold linkers will be
    1.31        installed, with gold being the default linker used.