summaryrefslogtreecommitdiff
path: root/binutils/patches/128_ppc64_powerpc_biarch.patch
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/patches/128_ppc64_powerpc_biarch.patch')
-rw-r--r--binutils/patches/128_ppc64_powerpc_biarch.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/binutils/patches/128_ppc64_powerpc_biarch.patch b/binutils/patches/128_ppc64_powerpc_biarch.patch
new file mode 100644
index 0000000..b572db4
--- /dev/null
+++ b/binutils/patches/128_ppc64_powerpc_biarch.patch
@@ -0,0 +1,15 @@
+--- a/ld/emulparams/elf32ppccommon.sh 2011-03-01 21:36:22.239025005 +0000
++++ b/ld/emulparams/elf32ppccommon.sh 2011-03-01 21:38:13.187024999 +0000
+@@ -48,3 +48,12 @@
+ case "$EMULATION_NAME" in
+ *64*) LIBPATH_SUFFIX=64 ;;
+ esac
++
++# On 64bit, look for 32 bit target libraries in /lib32, /usr/lib32 etc., first.
++case "$target" in
++ powerpc64-*-linux* | ppc64-*-linux*)
++ case "$EMULATION_NAME" in
++ *32*) LIBPATH_SUFFIX=32 ;;
++ esac
++ ;;
++esac