forked from pool/binutils
fed834d5d6
update and biarch patch. It does not help me, but it does not harm either ;) OBS-URL: https://build.opensuse.org/request/show/143122 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=115
24 lines
703 B
Diff
24 lines
703 B
Diff
Index: ld/emulparams/elf_s390.sh
|
|
===================================================================
|
|
--- ld/emulparams/elf_s390.sh.orig
|
|
+++ ld/emulparams/elf_s390.sh
|
|
@@ -12,3 +12,18 @@ GENERATE_SHLIB_SCRIPT=yes
|
|
GENERATE_PIE_SCRIPT=yes
|
|
NO_SMALL_DATA=yes
|
|
IREL_IN_PLT=
|
|
+
|
|
+# Treat a host that matches the target with the possible exception of "x"
|
|
+# in the name as if it were native.
|
|
+if test `echo "$host" | sed -e s/x//` = `echo "$target" | sed -e s/x//`; then
|
|
+ case " $EMULATION_LIBPATH " in
|
|
+ *" ${EMULATION_NAME} "*)
|
|
+ NATIVE=yes
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+
|
|
+# Look for 64 bit target libraries in /lib64, /usr/lib64 etc., first.
|
|
+case "$EMULATION_NAME" in
|
|
+ *64*) LIBPATH_SUFFIX=64 ;;
|
|
+esac
|