summaryrefslogtreecommitdiff
path: root/binutils/patches/127_x86_64_i386_biarch.patch
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2012-12-03 19:01:30 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2012-12-03 19:01:30 +0400
commit8ce8d223a716e16cd3ffd3aaa04d4dee7d35d4dd (patch)
treedf24ae9285d42b32bf3f9b74e0142a4e36b6f5f0 /binutils/patches/127_x86_64_i386_biarch.patch
parent7a067c659745b5cd1cc33767cc4d554b40885a5c (diff)
downloadcibs-pkgs-8ce8d223a716e16cd3ffd3aaa04d4dee7d35d4dd.tar.gz
GNU binutils 2.22+
Diffstat (limited to 'binutils/patches/127_x86_64_i386_biarch.patch')
-rw-r--r--binutils/patches/127_x86_64_i386_biarch.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/binutils/patches/127_x86_64_i386_biarch.patch b/binutils/patches/127_x86_64_i386_biarch.patch
new file mode 100644
index 0000000..b0700e0
--- /dev/null
+++ b/binutils/patches/127_x86_64_i386_biarch.patch
@@ -0,0 +1,22 @@
+Author:
+Description: Description: Add (/usr)/lib32 to the search paths on x86_64.
+Author: Aurelien Jarno <aurel32.debian.org>
+Upstream status: Debian specific
+Index: binutils/ld/emulparams/elf_i386.sh
+===================================================================
+--- binutils.orig/ld/emulparams/elf_i386.sh 2012-10-28 16:32:06.388214837 +0400
++++ binutils/ld/emulparams/elf_i386.sh 2012-10-28 16:37:09.730487669 +0400
+@@ -14,3 +14,13 @@
+ NO_SMALL_DATA=yes
+ SEPARATE_GOTPLT=12
+ IREL_IN_PLT=
++
++# Linux modify the default library search path to first include
++# a 32-bit specific directory.
++case "$target" in
++ x86_64*-linux* | i[3-7]86*-linux* | x86_64*-kfreebsd*-gnu | i[3-7]86*-kfreebsd*-gnu)
++ case "$EMULATION_NAME" in
++ *i386*) LIBPATH_SUFFIX=32 ;;
++ esac
++ ;;
++esac