diff options
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-2.23.2/binutils-x86_64_i386_biarch.patch')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils-2.23.2/binutils-x86_64_i386_biarch.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.23.2/binutils-x86_64_i386_biarch.patch b/meta/recipes-devtools/binutils/binutils-2.23.2/binutils-x86_64_i386_biarch.patch new file mode 100644 index 0000000000..c09578a787 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils-2.23.2/binutils-x86_64_i386_biarch.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | #!/bin/sh -e | ||
2 | ## 127_x86_64_i386_biarch.dpatch | ||
3 | ## | ||
4 | ## DP: Description: Add (/usr)/lib32 to the search paths on x86_64. | ||
5 | ## DP: Author: Aurelien Jarno <aurel32.debian.org> | ||
6 | ## DP: Upstream status: Debian specific | ||
7 | # | ||
8 | # Hacked to apply with quilt | ||
9 | # Adapted to binutils 2.18.50.0.7 | ||
10 | Upstream-Status: Inappropriate [embedded specific] | ||
11 | |||
12 | Index: binutils-2.22/ld/emulparams/elf_i386.sh | ||
13 | =================================================================== | ||
14 | --- binutils-2.22.orig/ld/emulparams/elf_i386.sh | ||
15 | +++ binutils-2.22/ld/emulparams/elf_i386.sh | ||
16 | @@ -14,3 +14,13 @@ GENERATE_PIE_SCRIPT=yes | ||
17 | NO_SMALL_DATA=yes | ||
18 | SEPARATE_GOTPLT=12 | ||
19 | IREL_IN_PLT= | ||
20 | + | ||
21 | +# Linux modify the default library search path to first include | ||
22 | +# a 32-bit specific directory. | ||
23 | +case "$target" in | ||
24 | + x86_64*-linux* | i[3-7]86*-linux* | x86_64*-kfreebsd*-gnu | i[3-7]86*-kfreebsd*-gnu) | ||
25 | + case "$EMULATION_NAME" in | ||
26 | + *i386*) LIBPATH_SUFFIX=32 ;; | ||
27 | + esac | ||
28 | + ;; | ||
29 | +esac | ||