diff options
author | John Ericson <git@JohnEricson.me> | 2021-08-11 13:17:54 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-08-11 13:17:54 +0100 |
commit | ab4f385b3c31e6bca198d2eef1a8c5268e28cd76 (patch) | |
tree | 64a9c881a0adcf1efcb7e9bc774ca6180f1002ab /gdb | |
parent | 0e6e4b599a1572823c71e2e95a24cf17d048f42b (diff) | |
download | binutils-ab4f385b3c31e6bca198d2eef1a8c5268e28cd76.zip binutils-ab4f385b3c31e6bca198d2eef1a8c5268e28cd76.tar.gz binutils-ab4f385b3c31e6bca198d2eef1a8c5268e28cd76.tar.bz2 |
Deprecate a.out support for NetBSD targets.
As discussed previously, a.out support is now quite deprecated, and in
some cases removed, in both Binutils itself and NetBSD, so this legacy
default makes little sense. `netbsdelf*` and `netbsdaout*` still work
allowing the user to be explicit about there choice. Additionally, the
configure script warns about the change as Nick Clifton requested.
One possible concern was the status of NetBSD on NS32K, where only a.out
was supported. But per [1] NetBSD has removed support, and if it were to
come back, it would be with ELF. The binutils implementation is
therefore marked obsolete, per the instructions in the last message.
With that patch and this one applied, I have confirmed the following:
--target=i686-unknown-netbsd
--target=i686-unknown-netbsdelf
builds completely
--target=i686-unknown-netbsdaout
properly fails because target is deprecated.
--target=vax-unknown-netbsdaout builds completely except for gas, where
the target is deprecated.
[1]: https://mail-index.netbsd.org/tech-toolchain/2021/07/19/msg004025.html
---
bfd/config.bfd | 43 +++++++++++++--------
bfd/configure.ac | 5 +--
binutils/testsuite/binutils-all/nm.exp | 2 +-
binutils/testsuite/lib/binutils-common.exp | 7 +---
config/picflag.m4 | 4 +-
gas/configure.tgt | 9 +++--
gas/testsuite/gas/arm/blx-bl-convert.d | 2 +-
gas/testsuite/gas/arm/blx-local-thumb.d | 2 +-
gas/testsuite/gas/sh/basic.exp | 2 +-
gdb/configure.host | 34 +++++++----------
gdb/configure.tgt | 2 +-
gdb/testsuite/gdb.asm/asm-source.exp | 6 +--
intl/configure | 2 +-
ld/configure.tgt | 44 +++++++++++-----------
ld/testsuite/ld-arm/arm-elf.exp | 4 +-
ld/testsuite/ld-elf/elf.exp | 2 +-
ld/testsuite/ld-elf/shared.exp | 4 +-
libiberty/configure | 4 +-
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/configure.host | 34 | ||||
-rw-r--r-- | gdb/configure.tgt | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.asm/asm-source.exp | 6 |
3 files changed, 16 insertions, 26 deletions
diff --git a/gdb/configure.host b/gdb/configure.host index e94a19b..1fc8360 100644 --- a/gdb/configure.host +++ b/gdb/configure.host @@ -13,23 +13,17 @@ # The default is $host_cpu. case $host in - arm*-*-netbsdelf* | \ - i[34567]86-*-netbsdelf* | \ - m68*-*-netbsdelf* | \ - sparc-*-netbsdelf* | \ - vax-*-netbsdelf*) - ;; *-*-irix* | \ *-*-solaris2.[01] | *-*-solaris2.[2-9]* | *-*-solaris2.10* | \ alpha*-*-osf* | \ alpha*-*-freebsd* | \ alpha*-*-kfreebsd*-gnu | \ - arm*-*-netbsd* | \ + arm*-*-netbsdaout* | \ hppa*-*-hiux* | \ i[34567]86-ncr-* | \ i[34567]86-*-dgux* | \ i[34567]86-*-lynxos* | \ - i[34567]86-*-netbsd* | \ + i[34567]86-*-netbsdaout* | \ i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3] | \ i[34567]86-*-sco3.2v5* | \ i[34567]86-*-sco3.2v4* | \ @@ -41,11 +35,11 @@ case $host in i[34567]86-*-unixware* | \ i[34567]86-*-sysv* | \ i[34567]86-*-isc* | \ - m68*-*-netbsd* | \ - sparc-*-netbsd* | \ + m68*-*-netbsdaout* | \ + sparc-*-netbsdaout* | \ rs6000-*-lynxos* | \ vax-*-bsd* | \ - vax-*-netbsd* | \ + vax-*-netbsdaout* | \ vax-*-ultrix* | \ hppa*-*-hpux* | \ ia64-*-hpux* | \ @@ -88,7 +82,7 @@ aarch64*-*-linux*) gdb_host=linux ;; aarch64*-*-freebsd*) gdb_host=fbsd ;; alpha*-*-linux*) gdb_host=alpha-linux ;; -alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu) +alpha*-*-netbsdaout* | alpha*-*-knetbsdaout*-gnu) gdb_host=nbsd ;; alpha*-*-openbsd*) gdb_host=nbsd ;; @@ -96,7 +90,7 @@ arc*-*-linux*) gdb_host=linux ;; arm*-*-freebsd*) gdb_host=fbsd ;; arm*-*-linux*) gdb_host=linux ;; -arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu) +arm*-*-netbsd* | arm*-*-knetbsd*-gnu) gdb_host=nbsdelf ;; arm*-*-openbsd*) gdb_host=nbsdelf ;; @@ -106,7 +100,7 @@ hppa*-*-openbsd*) gdb_host=obsd ;; i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu) gdb_host=fbsd ;; -i[34567]86-*-netbsdelf* | i[34567]86-*-knetbsd*-gnu) +i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu) gdb_host=nbsdelf ;; i[34567]86-*-go32*) gdb_host=go32 ;; i[34567]86-*-mingw32*) gdb_host=mingw @@ -124,14 +118,14 @@ i[34567]86-*-cygwin*) gdb_host=cygwin ;; ia64-*-linux*) gdb_host=linux ;; m68*-*-linux*) gdb_host=linux ;; -m68*-*-netbsdelf* | m68*-*-knetbsd*-gnu) +m68*-*-netbsd* | m68*-*-knetbsd*-gnu) gdb_host=nbsdelf ;; m68*-*-openbsd*) gdb_host=obsd ;; m88*-*-openbsd*) gdb_host=obsd ;; mips*-*-linux*) gdb_host=linux ;; -mips*-*-netbsd* | mips*-*-knetbsd*-gnu) +mips*-*-netbsdaout* | mips*-*-knetbsd*-gnu) gdb_host=nbsd ;; mips*-*-freebsd*) gdb_host=fbsd ;; mips64*-*-openbsd*) gdb_host=obsd64 ;; @@ -139,7 +133,7 @@ mips64*-*-openbsd*) gdb_host=obsd64 ;; powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*) gdb_host=aix ;; powerpc*-*-freebsd*) gdb_host=fbsd ;; -powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu) +powerpc-*-netbsdaout* | powerpc-*-knetbsd*-gnu) gdb_host=nbsd ;; powerpc-*-openbsd*) gdb_host=obsd ;; @@ -151,7 +145,7 @@ riscv*-*-linux*) gdb_host=linux ;; s390*-*-linux*) gdb_host=linux ;; -sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu) +sh*-*-netbsd* | sh*-*-knetbsd*-gnu) gdb_host=nbsd ;; sh*-*-openbsd*) gdb_host=nbsd ;; @@ -159,7 +153,7 @@ sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu) gdb_host=fbsd ;; sparc-*-linux*) gdb_host=linux ;; sparc64-*-linux*) gdb_host=linux64 ;; -sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu) +sparc-*-netbsd* | sparc-*-knetbsd*-gnu) gdb_host=nbsdelf ;; sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) gdb_host=nbsd64 ;; @@ -171,7 +165,7 @@ sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*) tilegx-*-linux*) gdb_host=linux ;; -vax-*-netbsdelf* | vax-*-knetbsd*-gnu) +vax-*-netbsd* | vax-*-knetbsd*-gnu) gdb_host=nbsdelf ;; vax-*-openbsd*) gdb_host=obsd ;; diff --git a/gdb/configure.tgt b/gdb/configure.tgt index 5f66cda..cac76f4 100644 --- a/gdb/configure.tgt +++ b/gdb/configure.tgt @@ -580,7 +580,7 @@ sh*-*-linux*) glibc-tdep.o linux-tdep.o" gdb_sim=../sim/sh/libsim.a ;; -sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu) +sh*-*-netbsd* | sh*-*-knetbsd*-gnu) # Target: NetBSD/sh gdb_target_obs="sh-tdep.o sh-netbsd-tdep.o" gdb_sim=../sim/sh/libsim.a diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index dedcd92..d188c71 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -166,11 +166,7 @@ if { "${asm-arch}" == "" } { } # On NetBSD/ELF we need a special NetBSD-identifying note section. -if { [istarget "*-*-netbsdelf*"] - || [istarget "alpha-*-netbsd*"] - || [istarget "mips*-*-netbsd*"] - || [istarget "powerpc-*-netbsd*"] - || [istarget "x86_64-*-netbsd*"] } then { +if { [istarget "*-*-netbsd*"] && ![istarget "*-*-netbsdaout*"] } then { set asm-note "netbsd" } |