forked from pool/binutils
1e122fb9d2
* PR32109 - fuzzing problem * PR32083 - LTO vs overridden common symbols * PR32067 - crash with LTO-plugin and --oformat=binary * PR31956 - LTO vs wrapper symbols * riscv - add Zimop and Zcmop extensions - Adjusted binutils-2.43-branch.diff.gz. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=475
24 lines
771 B
Diff
24 lines
771 B
Diff
Index: ld/emulparams/elf_s390.sh
|
|
===================================================================
|
|
--- ld/emulparams/elf_s390.sh.orig 2024-01-29 01:00:00.000000000 +0100
|
|
+++ ld/emulparams/elf_s390.sh 2024-01-30 14:45:36.996853073 +0100
|
|
@@ -13,3 +13,18 @@ GENERATE_PIE_SCRIPT=yes
|
|
NO_SMALL_DATA=yes
|
|
IREL_IN_PLT=
|
|
SYMBOL_ABI_ALIGNMENT=2
|
|
+
|
|
+# 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
|