binutils/x86-64-biarch.patch

15 lines
496 B
Diff

Index: ld/emulparams/elf_i386.sh
===================================================================
--- ld/emulparams/elf_i386.sh.orig 2009-11-23 14:02:48.000000000 +0100
+++ ld/emulparams/elf_i386.sh 2009-11-23 14:03:08.000000000 +0100
@@ -12,4 +12,9 @@ GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
NO_SMALL_DATA=yes
SEPARATE_GOTPLT=12
+
+# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
+case "$EMULATION_NAME" in
+ *64*) LIBPATH_SUFFIX=64 ;;
+esac
IREL_IN_PLT=