2009-11-27 12:33:30 +01:00
|
|
|
Index: ld/emulparams/elf_s390.sh
|
|
|
|
===================================================================
|
|
|
|
--- ld/emulparams/elf_s390.sh.orig 2009-11-23 14:02:48.000000000 +0100
|
|
|
|
+++ ld/emulparams/elf_s390.sh 2009-11-23 14:03:08.000000000 +0100
|
|
|
|
@@ -11,3 +11,18 @@ TEMPLATE_NAME=elf32
|
2007-10-09 04:28:58 +02:00
|
|
|
GENERATE_PIE_SCRIPT=yes
|
|
|
|
NO_SMALL_DATA=yes
|
2012-09-14 14:12:28 +02:00
|
|
|
IREL_IN_PLT=
|
2007-10-09 04:28:58 +02:00
|
|
|
+
|
|
|
|
+# 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
|