Blame SOURCES/binutils-gold-warn-unsupported.patch

01a2c8
Only in binutils-2.34/gold: autom4te.cache
01a2c8
diff -rup binutils.orig/gold/configure binutils-2.34/gold/configure
01a2c8
--- binutils.orig/gold/configure	2020-04-20 12:35:13.048297305 +0100
01a2c8
+++ binutils-2.34/gold/configure	2020-04-20 14:02:06.743725696 +0100
01a2c8
@@ -5180,7 +5180,8 @@ for targ in $target $canon_targets; do
01a2c8
     . ${srcdir}/configure.tgt
01a2c8
 
01a2c8
     if test "$targ_obj" = "UNKNOWN"; then
01a2c8
-      as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
01a2c8
+      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"unsupported target $targ\"" >&5
01a2c8
+$as_echo "$as_me: WARNING: \"unsupported target $targ\"" >&2;}
01a2c8
     else
01a2c8
       targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
01a2c8
       if test "$targ_extra_obj" != ""; then
01a2c8
diff -rup binutils.orig/gold/configure.ac binutils-2.34/gold/configure.ac
01a2c8
--- binutils.orig/gold/configure.ac	2020-04-20 12:35:13.050297291 +0100
01a2c8
+++ binutils-2.34/gold/configure.ac	2020-04-20 14:01:46.435868770 +0100
01a2c8
@@ -181,7 +181,7 @@ for targ in $target $canon_targets; do
01a2c8
     . ${srcdir}/configure.tgt
01a2c8
 
01a2c8
     if test "$targ_obj" = "UNKNOWN"; then
01a2c8
-      AC_MSG_ERROR("unsupported target $targ")
01a2c8
+      AC_MSG_WARN("unsupported target $targ")
01a2c8
     else
01a2c8
       targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
01a2c8
       if test "$targ_extra_obj" != ""; then
01a2c8
--- binutils.orig/ld/configure.tgt	2020-04-20 12:35:12.465301359 +0100
01a2c8
+++ binutils-2.34/ld/configure.tgt	2020-04-20 14:17:52.123066333 +0100
01a2c8
@@ -220,7 +220,7 @@ bfin-*-linux-uclibc*)	targ_emul=elf32bfi
01a2c8
 			targ_extra_emuls="elf32bfin"
01a2c8
 			targ_extra_libpath=$targ_extra_emuls
01a2c8
 			;;
01a2c8
-bpf-*-*)		targ_emul=elf64bpf
01a2c8
+bpf-* | bpf-*-*)	targ_emul=elf64bpf
01a2c8
 			;;
01a2c8
 cr16-*-elf*)		targ_emul=elf32cr16
01a2c8
 			;;
01a2c8
@@ -1026,7 +1026,7 @@ z8k-*-coff)		targ_emul=z8002
01a2c8
 			targ_extra_ofiles=
01a2c8
 			;;
01a2c8
 *)
01a2c8
-  echo 2>&1 "*** ld does not support target ${targ}"
01a2c8
+  echo 2>&1 "*** ld does not support target '${targ}' NO REALLY"
01a2c8
   echo 2>&1 "*** see ld/configure.tgt for supported targets"
01a2c8
   exit 1
01a2c8
 
01a2c8
--- binutils.orig/bfd/config.bfd	2020-04-20 12:35:13.038297375 +0100
01a2c8
+++ binutils-2.34/bfd/config.bfd	2020-04-20 14:25:26.452869193 +0100
01a2c8
@@ -473,7 +473,7 @@ case "${targ}" in
01a2c8
     ;;
01a2c8
 
01a2c8
 #ifdef BFD64
01a2c8
-  bpf-*-none)
01a2c8
+  bpf-*-none | bpf-*)
01a2c8
     targ_defvec=bpf_elf64_le_vec
01a2c8
     targ_selvecs=bpf_elf64_be_vec
01a2c8
     targ_underscore=yes
01a2c8
@@ -1427,7 +1427,7 @@ case "${targ}" in
01a2c8
     ;;
01a2c8
 
01a2c8
   *)
01a2c8
-    echo 1>&2 "*** BFD does not support target ${targ}."
01a2c8
+    echo 1>&2 "*** BFD does not support target '${targ}'.  Honest."
01a2c8
     echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
01a2c8
     exit 1
01a2c8
     ;;