patches/binutils/2.20/160-amd64-32bit-path.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jul 30 17:50:34 2010 +0200 (2010-07-30)
changeset 2051 57cda75fd174
permissions -rw-r--r--
Fix CT_SanitizePath

Replace the over-engineered and buggy test in CT_SanitizePath
with a straight forward string pattern match, and also
handle empty PATH elements which are qeuivalent to ".".

Thanks-To: Arnaud Lacombe <lacombar@gmail.com>
Signed-off-by: Johannes Stezenbach <js@sig21.net>
     1 --- binutils/ld/emulparams/elf_i386.sh
     2 +++ binutils/ld/emulparams/elf_i386.sh
     3 @@ -13,3 +13,13 @@
     4  NO_SMALL_DATA=yes
     5  SEPARATE_GOTPLT=12
     6  IREL_IN_PLT=
     7 +
     8 +# In Gentoo, we install 32bit libs into /lib32 in an
     9 +# ABI setup with amd64/x86
    10 +case "$target" in
    11 +  x86_64*-linux*)
    12 +    case "$EMULATION_NAME" in
    13 +      *i386*) LIBPATH_SUFFIX=32  ;;
    14 +    esac
    15 +  ;;
    16 +esac