[binutils-gdb] ns32k configury

Alan Modra amodra@sourceware.org
Fri Aug 13 02:30:48 GMT 2021


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=41ee6d14fd3faf486036cdb9042e432664abfe48

commit 41ee6d14fd3faf486036cdb9042e432664abfe48
Author: Alan Modra <amodra@gmail.com>
Date:   Fri Aug 13 11:32:13 2021 +0930

    ns32k configury
    
    Since ns32k-netbsd is as yet not removed, just marked obsolete,
    the target should still be accepted with --enable-obsolete.
    
    I also enabled ns32k-openbsd in ld since there doesn't seem to be a
    good reason why that target is not supported there but is elsewhere.
    
    bfd/
            * config.bfd: Allow ns32k-netbsd.
    ld/
            * configure.tgt: Allow ns32k-openbsd.

Diff:
---
 bfd/config.bfd   | 5 ++++-
 ld/configure.tgt | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/bfd/config.bfd b/bfd/config.bfd
index 606c9cea982..50e356d2e9e 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -64,6 +64,9 @@ case $targ in
  *-*-netbsdelf* | *-*-netbsdaout* | *-*-netbsdpe*)
     # Explicit, no defaulting
     ;;
+ ns32k-*-netbsd*)
+    # The obsolete warning is enough, and ns32k does not have ELF support
+    ;;
  *-*-netbsd* )
     targ_migrated=`echo "$targ" | sed 's/netbsd/netbsdaout/'`
     echo "*** WARNING: $targ is now defaults to meaning ELF not a.out." >&2
@@ -996,7 +999,7 @@ case "${targ}" in
     targ_defvec=ns32k_aout_pc532mach_vec
     targ_underscore=yes
     ;;
-  ns32k-*-lites* | ns32k-*-openbsd*)
+  ns32k-*-lites* | ns32k-*-*bsd*)
     targ_defvec=ns32k_aout_pc532nbsd_vec
     targ_underscore=yes
     ;;
diff --git a/ld/configure.tgt b/ld/configure.tgt
index 075febff13e..d46ed620c17 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -605,7 +605,7 @@ nios2*-*-*)		targ_emul=nios2elf
 ns32k-pc532-mach* | ns32k-pc532-ux*)  targ_emul=pc532macha
 			targ_extra_ofiles=
 			;;
-ns32k-*-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd
+ns32k-*-*bsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd
 			targ_extra_ofiles=
 			;;
 or1k-*-elf | or1knd-*-elf | or1k-*-rtems* | or1knd-*-rtems*)


More information about the Binutils-cvs mailing list