aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-04-16 15:24:43 +0930
committerAlan Modra <amodra@gmail.com>2018-04-16 15:24:43 +0930
commit04cb01fd5a3bc167ae26486bbc2bf941e96ad805 (patch)
treeb7f71cd3f917db13548bed31087b8f7d46682301 /bfd
parentc2bf1eecf99abc4d546bb52a008a25e64a29d85e (diff)
downloadgdb-04cb01fd5a3bc167ae26486bbc2bf941e96ad805.zip
gdb-04cb01fd5a3bc167ae26486bbc2bf941e96ad805.tar.gz
gdb-04cb01fd5a3bc167ae26486bbc2bf941e96ad805.tar.bz2
Remove we32k support
include/ * coff/we32k.h: Delete. bfd/ * Makefile.am: Remove we32k support. * archures.c: Likewise. * coffcode.h: Likewise. * config.bfd: Likewise. * configure.ac: Likewise. * targets.c: Likewise. * coff-we32k.c: Delete. * cpu-we32k.c: Delete. * Makefile.in: Regenerate. * bfd-in2.h: Regenerate. * configure: Regenerate. * po/SRC-POTFILES.in: Regenerate. opcodes/ * configure.ac: Remove we32k support. * configure: Regenerate. bintuils/ * testsuite/binutils-all/objdump.exp: Remove we32k support.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog15
-rw-r--r--bfd/Makefile.am4
-rw-r--r--bfd/Makefile.in6
-rw-r--r--bfd/archures.c7
-rw-r--r--bfd/bfd-in2.h1
-rw-r--r--bfd/coff-we32k.c78
-rw-r--r--bfd/coffcode.h16
-rw-r--r--bfd/config.bfd6
-rwxr-xr-xbfd/configure1
-rw-r--r--bfd/configure.ac1
-rw-r--r--bfd/cpu-we32k.c41
-rw-r--r--bfd/po/SRC-POTFILES.in2
-rw-r--r--bfd/targets.c3
13 files changed, 18 insertions, 163 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9746112..4e81da9 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,20 @@
2018-04-16 Alan Modra <amodra@gmail.com>
+ * Makefile.am: Remove we32k support.
+ * archures.c: Likewise.
+ * coffcode.h: Likewise.
+ * config.bfd: Likewise.
+ * configure.ac: Likewise.
+ * targets.c: Likewise.
+ * coff-we32k.c: Delete.
+ * cpu-we32k.c: Delete.
+ * Makefile.in: Regenerate.
+ * bfd-in2.h: Regenerate.
+ * configure: Regenerate.
+ * po/SRC-POTFILES.in: Regenerate.
+
+2018-04-16 Alan Modra <amodra@gmail.com>
+
* Makefile.am: Remove m88k support.
* aoutx.h: Likewise.
* archures.c: Likewise.
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index b9dfa98..9a097b1 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -165,7 +165,6 @@ ALL_MACHINES = \
cpu-visium.lo \
cpu-w65.lo \
cpu-wasm32.lo \
- cpu-we32k.lo \
cpu-xc16x.lo \
cpu-xgate.lo \
cpu-xstormy16.lo \
@@ -250,7 +249,6 @@ ALL_MACHINES_CFILES = \
cpu-visium.c \
cpu-wasm32.c \
cpu-w65.c \
- cpu-we32k.c \
cpu-xc16x.c \
cpu-xgate.c \
cpu-xstormy16.c \
@@ -289,7 +287,6 @@ BFD32_BACKENDS = \
coff-tic80.lo \
coff-u68k.lo \
coff-w65.lo \
- coff-we32k.lo \
coff-z80.lo \
coff-z8k.lo \
coffgen.lo \
@@ -466,7 +463,6 @@ BFD32_BACKENDS_CFILES = \
coff-tic80.c \
coff-u68k.c \
coff-w65.c \
- coff-we32k.c \
coff-z80.c \
coff-z8k.c \
coffgen.c \
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 05ee2aa..fe87949 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -498,7 +498,6 @@ ALL_MACHINES = \
cpu-visium.lo \
cpu-w65.lo \
cpu-wasm32.lo \
- cpu-we32k.lo \
cpu-xc16x.lo \
cpu-xgate.lo \
cpu-xstormy16.lo \
@@ -583,7 +582,6 @@ ALL_MACHINES_CFILES = \
cpu-visium.c \
cpu-wasm32.c \
cpu-w65.c \
- cpu-we32k.c \
cpu-xc16x.c \
cpu-xgate.c \
cpu-xstormy16.c \
@@ -623,7 +621,6 @@ BFD32_BACKENDS = \
coff-tic80.lo \
coff-u68k.lo \
coff-w65.lo \
- coff-we32k.lo \
coff-z80.lo \
coff-z8k.lo \
coffgen.lo \
@@ -800,7 +797,6 @@ BFD32_BACKENDS_CFILES = \
coff-tic80.c \
coff-u68k.c \
coff-w65.c \
- coff-we32k.c \
coff-z80.c \
coff-z8k.c \
coffgen.c \
@@ -1308,7 +1304,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-tic80.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-u68k.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-w65.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-we32k.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-x86_64.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-z80.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-z8k.Plo@am__quote@
@@ -1393,7 +1388,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-visium.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-w65.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-wasm32.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-we32k.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-xc16x.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-xgate.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-xstormy16.Plo@am__quote@
diff --git a/bfd/archures.c b/bfd/archures.c
index 083d684..1c5bfdf 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -217,7 +217,6 @@ DESCRIPTION
.#define bfd_mach_iamcu (1 << 8)
.#define bfd_mach_i386_iamcu (bfd_mach_i386_i386 | bfd_mach_iamcu)
.#define bfd_mach_i386_iamcu_intel_syntax (bfd_mach_i386_iamcu | bfd_mach_i386_intel_syntax)
-. bfd_arch_we32k, {* AT&T WE32xxx. *}
. bfd_arch_romp, {* IBM ROMP PC/RT. *}
. bfd_arch_convex, {* Convex. *}
. bfd_arch_m98k, {* Motorola 98xxx. *}
@@ -635,7 +634,6 @@ extern const bfd_arch_info_type bfd_vax_arch;
extern const bfd_arch_info_type bfd_visium_arch;
extern const bfd_arch_info_type bfd_wasm32_arch;
extern const bfd_arch_info_type bfd_w65_arch;
-extern const bfd_arch_info_type bfd_we32k_arch;
extern const bfd_arch_info_type bfd_xstormy16_arch;
extern const bfd_arch_info_type bfd_xtensa_arch;
extern const bfd_arch_info_type bfd_xc16x_arch;
@@ -722,7 +720,6 @@ static const bfd_arch_info_type * const bfd_archures_list[] =
&bfd_visium_arch,
&bfd_w65_arch,
&bfd_wasm32_arch,
- &bfd_we32k_arch,
&bfd_xstormy16_arch,
&bfd_xtensa_arch,
&bfd_xc16x_arch,
@@ -1208,10 +1205,6 @@ bfd_default_scan (const bfd_arch_info_type *info, const char *string)
number = bfd_mach_mcf_isa_aplus_emac;
break;
- case 32000:
- arch = bfd_arch_we32k;
- break;
-
case 3000:
arch = bfd_arch_mips;
number = bfd_mach_mips3000;
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index aa804d7..9ebe628 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -2092,7 +2092,6 @@ enum bfd_architecture
#define bfd_mach_iamcu (1 << 8)
#define bfd_mach_i386_iamcu (bfd_mach_i386_i386 | bfd_mach_iamcu)
#define bfd_mach_i386_iamcu_intel_syntax (bfd_mach_i386_iamcu | bfd_mach_i386_intel_syntax)
- bfd_arch_we32k, /* AT&T WE32xxx. */
bfd_arch_romp, /* IBM ROMP PC/RT. */
bfd_arch_convex, /* Convex. */
bfd_arch_m98k, /* Motorola 98xxx. */
diff --git a/bfd/coff-we32k.c b/bfd/coff-we32k.c
deleted file mode 100644
index a71e0ad..0000000
--- a/bfd/coff-we32k.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* BFD back-end for we32k COFF files.
- Copyright (C) 1992-2018 Free Software Foundation, Inc.
- Contributed by Brendan Kehoe (brendan@cs.widener.edu).
-
- This file is part of BFD, the Binary File Descriptor library.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
- MA 02110-1301, USA. */
-
-#include "sysdep.h"
-#include "bfd.h"
-#include "libbfd.h"
-#include "coff/we32k.h"
-#include "coff/internal.h"
-#include "libcoff.h"
-
-#define COFF_DEFAULT_SECTION_ALIGNMENT_POWER (3)
-
-static reloc_howto_type howto_table[] =
-{
- EMPTY_HOWTO (0),
- EMPTY_HOWTO (1),
- EMPTY_HOWTO (2),
- EMPTY_HOWTO (3),
- EMPTY_HOWTO (4),
- EMPTY_HOWTO (5),
- HOWTO(R_DIR32, 0, 2, 32, FALSE, 0,complain_overflow_bitfield, 0, "dir32", TRUE, 0xffffffff,0xffffffff, FALSE),
- EMPTY_HOWTO (7),
- EMPTY_HOWTO (010),
- EMPTY_HOWTO (011),
- EMPTY_HOWTO (012),
- EMPTY_HOWTO (013),
- EMPTY_HOWTO (014),
- EMPTY_HOWTO (015),
- EMPTY_HOWTO (016),
- HOWTO(R_RELBYTE, 0, 0, 8, FALSE, 0, complain_overflow_bitfield, 0, "8", TRUE, 0x000000ff,0x000000ff, FALSE),
- HOWTO(R_RELWORD, 0, 1, 16, FALSE, 0, complain_overflow_bitfield, 0, "16", TRUE, 0x0000ffff,0x0000ffff, FALSE),
- HOWTO(R_RELLONG, 0, 2, 32, FALSE, 0, complain_overflow_bitfield, 0, "32", TRUE, 0xffffffff,0xffffffff, FALSE),
- HOWTO(R_PCRBYTE, 0, 0, 8, TRUE, 0, complain_overflow_signed, 0, "DISP8", TRUE, 0x000000ff,0x000000ff, FALSE),
- HOWTO(R_PCRWORD, 0, 1, 16, TRUE, 0, complain_overflow_signed, 0, "DISP16", TRUE, 0x0000ffff,0x0000ffff, FALSE),
- HOWTO(R_PCRLONG, 0, 2, 32, TRUE, 0, complain_overflow_signed, 0, "DISP32", TRUE, 0xffffffff,0xffffffff, FALSE),
-};
-
-#define NUM_HOWTOS (sizeof (howto_table) / sizeof (howto_table[0]))
-
-/* Turn a howto into a reloc nunmber */
-
-#define SELECT_RELOC(x,howto) { x.r_type = howto->type; }
-#define BADMAG(x) WE32KBADMAG(x)
-#define WE32K 1
-
-#define RTYPE2HOWTO(cache_ptr, dst) \
- ((cache_ptr)->howto = \
- ((dst)->r_type < NUM_HOWTOS \
- ? howto_table + (dst)->r_type \
- : NULL))
-
-#ifndef bfd_pe_print_pdata
-#define bfd_pe_print_pdata NULL
-#endif
-
-#include "coffcode.h"
-
-#define coff_write_armap bsd_write_armap
-
-CREATE_BIG_COFF_TARGET_VEC (we32k_coff_vec, "coff-we32k", 0, 0, 0, NULL, COFF_SWAP_TABLE)
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 7ec9567..12c84c4 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -2271,12 +2271,6 @@ coff_set_arch_mach_hook (bfd *abfd, void * filehdr)
break;
#endif
-#ifdef WE32KMAGIC
- case WE32KMAGIC:
- arch = bfd_arch_we32k;
- break;
-#endif
-
#ifdef SH_ARCH_MAGIC_BIG
case SH_ARCH_MAGIC_BIG:
case SH_ARCH_MAGIC_LITTLE:
@@ -2852,12 +2846,6 @@ coff_set_flags (bfd * abfd,
return TRUE;
#endif
-#ifdef WE32KMAGIC
- case bfd_arch_we32k:
- *magicp = WE32KMAGIC;
- return TRUE;
-#endif
-
#ifdef RS6000COFF_C
case bfd_arch_rs6000:
#ifndef PPCMAGIC
@@ -3899,7 +3887,7 @@ coff_write_object_contents (bfd * abfd)
internal_a.magic = APOLLO_COFF_VERSION_NUMBER;
#endif
-#if defined(M68) || defined(WE32K) || defined(M68K)
+#if defined(M68) || defined(M68K)
#define __A_MAGIC_SET__
#if defined(LYNXOS)
internal_a.magic = LYNXCOFFMAGIC;
@@ -3914,7 +3902,7 @@ coff_write_object_contents (bfd * abfd)
#endif
#endif /* TARG_AUX */
#endif /* LYNXOS */
-#endif /* M68 || WE32K || M68K */
+#endif /* M68 || M68K */
#if defined(ARM)
#define __A_MAGIC_SET__
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 5ff00a2..a0c1c10 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -104,7 +104,6 @@ case $targ in
sparc64-*-aout* | \
sparc*-*-coff* | \
vax-*-bsd* | vax-*-ultrix* | \
- we32k-*-* | \
w65-*-* | \
sh5*-*-* | sh64*-*-* | \
null)
@@ -144,6 +143,7 @@ case $targ in
sparc-*-lynxos* | \
tahoe-*-* | \
vax-*-vms* | \
+ we32k-*-* | \
null)
echo "*** Configuration $targ is obsolete." >&2
echo "*** Support has been REMOVED." >&2
@@ -1723,10 +1723,6 @@ case "${targ}" in
targ_selvecs="wasm_vec"
;;
- we32k-*-*)
- targ_defvec=we32k_coff_vec
- ;;
-
w65-*-*)
targ_defvec=w65_coff_vec
;;
diff --git a/bfd/configure b/bfd/configure
index 8b40c1d..c8d6b21 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -14628,7 +14628,6 @@ do
w65_coff_vec) tb="$tb coff-w65.lo reloc16.lo $coffgen" ;;
wasm_vec) tb="$tb wasm-module.lo" ;;
wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
- we32k_coff_vec) tb="$tb coff-we32k.lo $coffgen" ;;
x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
x86_64_elf32_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
x86_64_elf32_nacl_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
diff --git a/bfd/configure.ac b/bfd/configure.ac
index de836c9..5b5bfc1 100644
--- a/bfd/configure.ac
+++ b/bfd/configure.ac
@@ -705,7 +705,6 @@ do
w65_coff_vec) tb="$tb coff-w65.lo reloc16.lo $coffgen" ;;
wasm_vec) tb="$tb wasm-module.lo" ;;
wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
- we32k_coff_vec) tb="$tb coff-we32k.lo $coffgen" ;;
x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
x86_64_elf32_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
x86_64_elf32_nacl_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
diff --git a/bfd/cpu-we32k.c b/bfd/cpu-we32k.c
deleted file mode 100644
index e64b9d0..0000000
--- a/bfd/cpu-we32k.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/* bfd back-end for we32k support
- Copyright (C) 1992-2018 Free Software Foundation, Inc.
- Contributed by Brendan Kehoe (brendan@cs.widener.edu).
-
- This file is part of BFD, the Binary File Descriptor library.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
- MA 02110-1301, USA. */
-
-#include "sysdep.h"
-#include "bfd.h"
-#include "libbfd.h"
-
-const bfd_arch_info_type bfd_we32k_arch =
- {
- 32, /* 32 bits in a word */
- 32, /* 32 bits in an address */
- 8, /* 8 bits in a byte */
- bfd_arch_we32k,
- 32000, /* only 1 machine */
- "we32k",
- "we32k:32000",
- 3,
- TRUE, /* the one and only */
- bfd_default_compatible,
- bfd_default_scan ,
- bfd_arch_default_fill,
- 0,
- };
diff --git a/bfd/po/SRC-POTFILES.in b/bfd/po/SRC-POTFILES.in
index 89c519d..b6007b5 100644
--- a/bfd/po/SRC-POTFILES.in
+++ b/bfd/po/SRC-POTFILES.in
@@ -43,7 +43,6 @@ coff-tic54x.c
coff-tic80.c
coff-u68k.c
coff-w65.c
-coff-we32k.c
coff-x86_64.c
coff-z80.c
coff-z8k.c
@@ -130,7 +129,6 @@ cpu-vax.c
cpu-visium.c
cpu-w65.c
cpu-wasm32.c
-cpu-we32k.c
cpu-xc16x.c
cpu-xgate.c
cpu-xstormy16.c
diff --git a/bfd/targets.c b/bfd/targets.c
index 549ef89..4ba9652 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -886,7 +886,6 @@ extern const bfd_target visium_elf32_vec;
extern const bfd_target w65_coff_vec;
extern const bfd_target wasm_vec;
extern const bfd_target wasm32_elf32_vec;
-extern const bfd_target we32k_coff_vec;
extern const bfd_target x86_64_coff_vec;
extern const bfd_target x86_64_elf32_vec;
extern const bfd_target x86_64_elf32_nacl_vec;
@@ -1388,8 +1387,6 @@ static const bfd_target * const _bfd_target_vector[] =
&wasm_vec,
&wasm32_elf32_vec,
- &we32k_coff_vec,
-
#ifdef BFD64
&x86_64_coff_vec,
&x86_64_elf32_vec,