Remove `netbsdpe` support
authorJohn Ericson <git@JohnEricson.me>
Sun, 18 Jul 2021 22:32:14 +0000 (18:32 -0400)
committerAlan Modra <amodra@gmail.com>
Wed, 21 Jul 2021 01:30:35 +0000 (11:00 +0930)
netbsdpe was deprecated in c2ce831330e10dab4703094491f80b6b9a5c2289.
Since then, a release has passed (2.37), and it was marked obselete in
5c9cbf07f3f972ecffe13d858010b3179df17b32. Unless I am mistaken, that
means we can now remove support altogether.

All branches in the "active" code are remove, and the target is
additionally marked as obsolete next to the other removed ones for
libbfd and gdb.

Per [1] from the NetBSD toolchain list, PE/COFF support was removed a
decade ago. Furthermore, the sole mention of this target in the binutils
commit history was in 2002. Together, I'm led to believe this target
hasn't seen much attention in quite a while.

[1]: https://mail-index.netbsd.org/tech-toolchain/2021/06/16/msg003996.html

bfd/
* config.bfd: Remove netbsdpe entry.
binutils/
* configure.ac: Remove netbsdpe entry.
* testsuite/lib/binutils-common.exp (is_pecoff_format): Likewise.
* configure: Regenerate.
gas/
* configure.tgt: Remove netbsdpe entry.
gdb/
* configure.tgt: Add netbsdpe to removed targets.
ld/
* configure.tgt: Remove netbsdpe entry.
* testsuite/ld-bootstrap/bootstrap.exp: Likewise.

bfd/config.bfd
binutils/configure
binutils/configure.ac
binutils/testsuite/lib/binutils-common.exp
gas/configure.tgt
gdb/configure.tgt
ld/configure.tgt
ld/testsuite/ld-bootstrap/bootstrap.exp

index c4cabf7867be3b423790b26f17d823f7d04b7c1a..ebda78f60a7be530bee4e85897d2c2ea855596ba 100644 (file)
@@ -614,10 +614,6 @@ case "${targ}" in
     targ_selvecs="iamcu_elf32_vec"
     targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
     ;;
-  i[3-7]86-*-netbsdpe*)
-    targ_defvec=i386_pe_vec
-    targ_selvecs="i386_pe_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec"
-    ;;
   i[3-7]86-*-openbsd*)
     targ_defvec=i386_elf32_vec
     targ_selvecs="iamcu_elf32_vec"
index 82640b8b23468420a8a3735dbd4916a1c0529a21..373fb180f74c59320e09305ed8c0b26560f9c9a5 100755 (executable)
@@ -14522,7 +14522,7 @@ do
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
          BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
          ;;
-       i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
+       i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32**)
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          if test -z "$DLLTOOL_DEFAULT"; then
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
index b2d0be00b60b073ea5b98af7290db2bde3106c6e..9d17b399aecb19328d19463fc51b9db50d1a7414 100644 (file)
@@ -358,7 +358,7 @@ do
          BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
          ;;
 changequote(,)dnl
-       i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
+       i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32**)
 changequote([,])dnl
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
          if test -z "$DLLTOOL_DEFAULT"; then
index 59e25df99b0a59e25fa34a78cf622dfe806a2172..0fb506cfd8960fe0df03485993b51bc121a6fe9e 100644 (file)
@@ -105,7 +105,6 @@ proc is_pecoff_format args {
         || [istarget $m_os-cygwin*]
         || [istarget $m_os-interix*]
         || [istarget $m_os-mingw*]
-        || [istarget $m_os-netbsdpe*]
         || [istarget $m_os-pe*]
         || [istarget $m_os-winnt*] } {
        return 1
index 338892add2ab6e8e7eb464edd37262b48d5bc699..0be695bc61cbe7870c7ece8fe384fbdb0fe93b4b 100644 (file)
@@ -224,7 +224,6 @@ case ${generic_target} in
   i386-*-fuchsia*)                     fmt=elf ;;
   i386-*-genode*)                      fmt=elf ;;
   i386-*-bsd*)                         fmt=aout em=386bsd ;;
-  i386-*-netbsdpe*)                    fmt=coff em=pe ;;
   i386-*-netbsd*-gnu* | \
   i386-*-knetbsd*-gnu | \
   i386-*-netbsd* | \
index 97a5a57c37886c2261bb20ae16b9dc2dfc3f26e4..5f66cda6b788762083c68b92b2c118750c1d6d65 100644 (file)
@@ -14,6 +14,7 @@
 case $targ in
  *-*-irix* | \
  *-*-solaris2.[01] | *-*-solaris2.[2-9]* | *-*-solaris2.10* | \
+ *-*-netbsdpe* | \
  alpha*-*-osf* | \
  alpha*-*-freebsd* | \
  alpha*-*-kfreebsd*-gnu | \
index 6205d7c98728f7228275589cf4c584e9e8e95e77..6c5353921831641b6dec39c99b3c73b71faafae4 100644 (file)
@@ -347,9 +347,6 @@ i[3-7]86-*-openbsd*)
                        targ_emul=elf_i386
                        targ_extra_emuls="elf_iamcu"
                        ;;
-i[3-7]86-*-netbsdpe*)  targ_emul=i386pe
-                       targ_extra_ofiles="deffilep.o pe-dll.o"
-                       ;;
 i[3-7]86-*-elfiamcu)   targ_emul=elf_iamcu
                        targ_extra_emuls=elf_i386
                        ;;
index 9c27c5ff5d977c8a33ad68a54131bcad23db5019..74582392010e5a368fff81e6d213e06b4f7d1891 100644 (file)
@@ -216,8 +216,7 @@ foreach flags $test_flags {
        || [istarget "*-*-winnt*"]
        || [istarget "*-*-mingw*"]
        || [istarget "*-*-interix*"]
-       || [istarget "*-*-beospe*"]
-       || [istarget "*-*-netbsdpe*"]} {
+       || [istarget "*-*-beospe*"]} {
        # Trim off the date present in PE binaries by only looking
        #   at the ends of the files
        # Although this works, a way to set the date would be better.