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

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