aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog16
-rw-r--r--bfd/Makefile.am4
-rw-r--r--bfd/Makefile.in6
-rw-r--r--bfd/archures.c3
-rw-r--r--bfd/bfd-in2.h1
-rw-r--r--bfd/coff-tic80.c711
-rw-r--r--bfd/coffcode.h23
-rw-r--r--bfd/coffswap.h6
-rw-r--r--bfd/config.bfd5
-rwxr-xr-xbfd/configure1
-rw-r--r--bfd/configure.ac1
-rw-r--r--bfd/cpu-tic80.c42
-rw-r--r--bfd/po/SRC-POTFILES.in2
-rw-r--r--bfd/targets.c2
14 files changed, 18 insertions, 805 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f1a707d..61ef89f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,19 @@
+2019-12-17 Alan Modra <amodra@gmail.com>
+
+ * coff-tic80.c: Delete file.
+ * cpu-tic80.c: Delete file.
+ * archures.c: Remove tic80 support.
+ * coffcode.h: Likewise.
+ * coffswap.h: Likewise.
+ * targets.c: Likewise.
+ * config.bfd: Likewise.
+ * configure.ac: Likewise.
+ * Makefile.am: Likewise.
+ * Makefile.in: Regenerate.
+ * bfd-in2.h: Regenerate.
+ * configure: Regenerate.
+ * po/SRC-POTFILES.in: Regenerate.
+
2019-12-13 Alan Modra <amodra@gmail.com>
PR 25237
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index e5bd28f..92c3b36 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -160,7 +160,6 @@ ALL_MACHINES = \
cpu-tic4x.lo \
cpu-tic54x.lo \
cpu-tic6x.lo \
- cpu-tic80.lo \
cpu-tilegx.lo \
cpu-tilepro.lo \
cpu-v850.lo \
@@ -246,7 +245,6 @@ ALL_MACHINES_CFILES = \
cpu-tic4x.c \
cpu-tic54x.c \
cpu-tic6x.c \
- cpu-tic80.c \
cpu-tilegx.c \
cpu-tilepro.c \
cpu-v850.c \
@@ -278,7 +276,6 @@ BFD32_BACKENDS = \
coff-tic30.lo \
coff-tic4x.lo \
coff-tic54x.lo \
- coff-tic80.lo \
coff-z80.lo \
coff-z8k.lo \
coffgen.lo \
@@ -414,7 +411,6 @@ BFD32_BACKENDS_CFILES = \
coff-tic30.c \
coff-tic4x.c \
coff-tic54x.c \
- coff-tic80.c \
coff-z80.c \
coff-z8k.c \
coffgen.c \
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 15334f1..1e17260 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -584,7 +584,6 @@ ALL_MACHINES = \
cpu-tic4x.lo \
cpu-tic54x.lo \
cpu-tic6x.lo \
- cpu-tic80.lo \
cpu-tilegx.lo \
cpu-tilepro.lo \
cpu-v850.lo \
@@ -670,7 +669,6 @@ ALL_MACHINES_CFILES = \
cpu-tic4x.c \
cpu-tic54x.c \
cpu-tic6x.c \
- cpu-tic80.c \
cpu-tilegx.c \
cpu-tilepro.c \
cpu-v850.c \
@@ -703,7 +701,6 @@ BFD32_BACKENDS = \
coff-tic30.lo \
coff-tic4x.lo \
coff-tic54x.lo \
- coff-tic80.lo \
coff-z80.lo \
coff-z8k.lo \
coffgen.lo \
@@ -839,7 +836,6 @@ BFD32_BACKENDS_CFILES = \
coff-tic30.c \
coff-tic4x.c \
coff-tic54x.c \
- coff-tic80.c \
coff-z80.c \
coff-z8k.c \
coffgen.c \
@@ -1323,7 +1319,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-tic30.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-tic4x.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-tic54x.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/coff-tic80.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@
@@ -1402,7 +1397,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-tic4x.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-tic54x.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-tic6x.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-tic80.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-tilegx.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-tilepro.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cpu-v850.Plo@am__quote@
diff --git a/bfd/archures.c b/bfd/archures.c
index 7866c60..e8873d4 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -355,7 +355,6 @@ DESCRIPTION
.#define bfd_mach_tic4x 40
. bfd_arch_tic54x, {* Texas Instruments TMS320C54X. *}
. bfd_arch_tic6x, {* Texas Instruments TMS320C6X. *}
-. bfd_arch_tic80, {* TI TMS320c80 (MVP). *}
. bfd_arch_v850, {* NEC V850. *}
. bfd_arch_v850_rh850,{* NEC V850 (using RH850 ABI). *}
.#define bfd_mach_v850 1
@@ -668,7 +667,6 @@ extern const bfd_arch_info_type bfd_tic30_arch;
extern const bfd_arch_info_type bfd_tic4x_arch;
extern const bfd_arch_info_type bfd_tic54x_arch;
extern const bfd_arch_info_type bfd_tic6x_arch;
-extern const bfd_arch_info_type bfd_tic80_arch;
extern const bfd_arch_info_type bfd_tilegx_arch;
extern const bfd_arch_info_type bfd_tilepro_arch;
extern const bfd_arch_info_type bfd_v850_arch;
@@ -756,7 +754,6 @@ static const bfd_arch_info_type * const bfd_archures_list[] =
&bfd_tic4x_arch,
&bfd_tic54x_arch,
&bfd_tic6x_arch,
- &bfd_tic80_arch,
&bfd_tilegx_arch,
&bfd_tilepro_arch,
&bfd_v850_arch,
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index ed91ed2..c6a5801 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1738,7 +1738,6 @@ enum bfd_architecture
#define bfd_mach_tic4x 40
bfd_arch_tic54x, /* Texas Instruments TMS320C54X. */
bfd_arch_tic6x, /* Texas Instruments TMS320C6X. */
- bfd_arch_tic80, /* TI TMS320c80 (MVP). */
bfd_arch_v850, /* NEC V850. */
bfd_arch_v850_rh850,/* NEC V850 (using RH850 ABI). */
#define bfd_mach_v850 1
diff --git a/bfd/coff-tic80.c b/bfd/coff-tic80.c
deleted file mode 100644
index 9e49a16..0000000
--- a/bfd/coff-tic80.c
+++ /dev/null
@@ -1,711 +0,0 @@
-/* BFD back-end for Texas Instruments TMS320C80 Multimedia Video Processor (MVP).
- Copyright (C) 1996-2019 Free Software Foundation, Inc.
-
- Written by Fred Fish (fnf@cygnus.com)
-
- There is nothing new under the sun. This file draws a lot on other
- coff files.
-
- 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, 51 Franklin Street - Fifth Floor,
- Boston, MA 02110-1301, USA. */
-
-#include "sysdep.h"
-#include "bfd.h"
-#include "bfdlink.h"
-#include "libbfd.h"
-#ifdef _CONST
-/* Newlib-based hosts define _CONST as a STDC-safe alias for const,
- but to the tic80 toolchain it means something altogether different.
- Since sysdep.h will have pulled in stdio.h and hence _ansi.h which
- contains this definition, we must undef it before including the
- tic80-specific definition. */
-#undef _CONST
-#endif /* _CONST */
-#include "coff/tic80.h"
-#include "coff/internal.h"
-#include "libcoff.h"
-
-#define COFF_DEFAULT_SECTION_ALIGNMENT_POWER (2)
-#define COFF_ALIGN_IN_SECTION_HEADER 1
-#define COFF_ALIGN_IN_SFLAGS 1
-#define COFF_ENCODE_ALIGNMENT(S,X) ((S).s_flags |= (((unsigned)(X) & 0xf) << 8))
-#define COFF_DECODE_ALIGNMENT(X) (((X) >> 8) & 0xf)
-
-#define GET_SCNHDR_FLAGS H_GET_16
-#define PUT_SCNHDR_FLAGS H_PUT_16
-
-static bfd_reloc_status_type ppbase_reloc
- (bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
-static bfd_reloc_status_type glob15_reloc
- (bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
-static bfd_reloc_status_type glob16_reloc
- (bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
-static bfd_reloc_status_type local16_reloc
- (bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
-
-
-static reloc_howto_type tic80_howto_table[] =
-{
-
- HOWTO (R_RELLONG, /* type */
- 0, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 32, /* bitsize */
- FALSE, /* pc_relative */
- 0, /* bitpos */
- complain_overflow_bitfield, /* complain_on_overflow */
- NULL, /* special_function */
- "RELLONG", /* name */
- TRUE, /* partial_inplace */
- 0xffffffff, /* src_mask */
- 0xffffffff, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_MPPCR, /* type */
- 2, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 32, /* bitsize */
- TRUE, /* pc_relative */
- 0, /* bitpos */
- complain_overflow_signed, /* complain_on_overflow */
- NULL, /* special_function */
- "MPPCR", /* name */
- TRUE, /* partial_inplace */
- 0xffffffff, /* src_mask */
- 0xffffffff, /* dst_mask */
- TRUE), /* pcrel_offset */
-
- HOWTO (R_ABS, /* type */
- 0, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 32, /* bitsize */
- FALSE, /* pc_relative */
- 0, /* bitpos */
- complain_overflow_bitfield, /* complain_on_overflow */
- NULL, /* special_function */
- "ABS", /* name */
- TRUE, /* partial_inplace */
- 0xffffffff, /* src_mask */
- 0xffffffff, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PPBASE, /* type */
- 0, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 32, /* bitsize */
- FALSE, /* pc_relative */
- 0, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- ppbase_reloc, /* special_function */
- "PPBASE", /* name */
- TRUE, /* partial_inplace */
- 0xffffffff, /* src_mask */
- 0xffffffff, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PPLBASE, /* type */
- 0, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 32, /* bitsize */
- FALSE, /* pc_relative */
- 0, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- ppbase_reloc, /* special_function */
- "PPLBASE", /* name */
- TRUE, /* partial_inplace */
- 0xffffffff, /* src_mask */
- 0xffffffff, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PP15, /* type */
- 0, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 15, /* bitsize */
- FALSE, /* pc_relative */
- 6, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- glob15_reloc, /* special_function */
- "PP15", /* name */
- TRUE, /* partial_inplace */
- 0x1ffc0, /* src_mask */
- 0x1ffc0, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PP15W, /* type */
- 2, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 15, /* bitsize */
- FALSE, /* pc_relative */
- 6, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- glob15_reloc, /* special_function */
- "PP15W", /* name */
- TRUE, /* partial_inplace */
- 0x1ffc0, /* src_mask */
- 0x1ffc0, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PP15H, /* type */
- 1, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 15, /* bitsize */
- FALSE, /* pc_relative */
- 6, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- glob15_reloc, /* special_function */
- "PP15H", /* name */
- TRUE, /* partial_inplace */
- 0x1ffc0, /* src_mask */
- 0x1ffc0, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PP16B, /* type */
- 0, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 16, /* bitsize */
- FALSE, /* pc_relative */
- 6, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- glob16_reloc, /* special_function */
- "PP16B", /* name */
- TRUE, /* partial_inplace */
- 0x3ffc0, /* src_mask */
- 0x3ffc0, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PPL15, /* type */
- 0, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 15, /* bitsize */
- FALSE, /* pc_relative */
- 0, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- NULL, /* special_function */
- "PPL15", /* name */
- TRUE, /* partial_inplace */
- 0x7fff, /* src_mask */
- 0x7fff, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PPL15W, /* type */
- 2, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 15, /* bitsize */
- FALSE, /* pc_relative */
- 0, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- NULL, /* special_function */
- "PPL15W", /* name */
- TRUE, /* partial_inplace */
- 0x7fff, /* src_mask */
- 0x7fff, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PPL15H, /* type */
- 1, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 15, /* bitsize */
- FALSE, /* pc_relative */
- 0, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- NULL, /* special_function */
- "PPL15H", /* name */
- TRUE, /* partial_inplace */
- 0x7fff, /* src_mask */
- 0x7fff, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PPL16B, /* type */
- 0, /* rightshift */
- 2, /* size (0 = byte, 1 = short, 2 = long) */
- 16, /* bitsize */
- FALSE, /* pc_relative */
- 0, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- local16_reloc, /* special_function */
- "PPL16B", /* name */
- TRUE, /* partial_inplace */
- 0xffff, /* src_mask */
- 0xffff, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PPN15, /* type */
- 0, /* rightshift */
- -2, /* size (0 = byte, 1 = short, 2 = long) */
- 15, /* bitsize */
- FALSE, /* pc_relative */
- 6, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- glob15_reloc, /* special_function */
- "PPN15", /* name */
- TRUE, /* partial_inplace */
- 0x1ffc0, /* src_mask */
- 0x1ffc0, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PPN15W, /* type */
- 2, /* rightshift */
- -2, /* size (0 = byte, 1 = short, 2 = long) */
- 15, /* bitsize */
- FALSE, /* pc_relative */
- 6, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- glob15_reloc, /* special_function */
- "PPN15W", /* name */
- TRUE, /* partial_inplace */
- 0x1ffc0, /* src_mask */
- 0x1ffc0, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PPN15H, /* type */
- 1, /* rightshift */
- -2, /* size (0 = byte, 1 = short, 2 = long) */
- 15, /* bitsize */
- FALSE, /* pc_relative */
- 6, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- glob15_reloc, /* special_function */
- "PPN15H", /* name */
- TRUE, /* partial_inplace */
- 0x1ffc0, /* src_mask */
- 0x1ffc0, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PPN16B, /* type */
- 0, /* rightshift */
- -2, /* size (0 = byte, 1 = short, 2 = long) */
- 16, /* bitsize */
- FALSE, /* pc_relative */
- 6, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- glob16_reloc, /* special_function */
- "PPN16B", /* name */
- TRUE, /* partial_inplace */
- 0x3ffc0, /* src_mask */
- 0x3ffc0, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PPLN15, /* type */
- 0, /* rightshift */
- -2, /* size (0 = byte, 1 = short, 2 = long) */
- 15, /* bitsize */
- FALSE, /* pc_relative */
- 0, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- NULL, /* special_function */
- "PPLN15", /* name */
- TRUE, /* partial_inplace */
- 0x7fff, /* src_mask */
- 0x7fff, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PPLN15W, /* type */
- 2, /* rightshift */
- -2, /* size (0 = byte, 1 = short, 2 = long) */
- 15, /* bitsize */
- FALSE, /* pc_relative */
- 0, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- NULL, /* special_function */
- "PPLN15W", /* name */
- TRUE, /* partial_inplace */
- 0x7fff, /* src_mask */
- 0x7fff, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PPLN15H, /* type */
- 1, /* rightshift */
- -2, /* size (0 = byte, 1 = short, 2 = long) */
- 15, /* bitsize */
- FALSE, /* pc_relative */
- 0, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- NULL, /* special_function */
- "PPLN15H", /* name */
- TRUE, /* partial_inplace */
- 0x7fff, /* src_mask */
- 0x7fff, /* dst_mask */
- FALSE), /* pcrel_offset */
-
- HOWTO (R_PPLN16B, /* type */
- 0, /* rightshift */
- -2, /* size (0 = byte, 1 = short, 2 = long) */
- 15, /* bitsize */
- FALSE, /* pc_relative */
- 0, /* bitpos */
- complain_overflow_dont, /* complain_on_overflow */
- local16_reloc, /* special_function */
- "PPLN16B", /* name */
- TRUE, /* partial_inplace */
- 0xffff, /* src_mask */
- 0xffff, /* dst_mask */
- FALSE) /* pcrel_offset */
-};
-
-/* Special relocation functions, used when the output file is not
- itself a COFF TIc80 file. */
-
-/* This special function is used for the base address type
- relocations. */
-
-static bfd_reloc_status_type
-ppbase_reloc (bfd *abfd ATTRIBUTE_UNUSED,
- arelent *reloc_entry ATTRIBUTE_UNUSED,
- asymbol *symbol_in ATTRIBUTE_UNUSED,
- void * data ATTRIBUTE_UNUSED,
- asection *input_section ATTRIBUTE_UNUSED,
- bfd *output_bfd ATTRIBUTE_UNUSED,
- char **error_message ATTRIBUTE_UNUSED)
-{
- /* FIXME. */
- abort ();
-}
-
-/* This special function is used for the global 15 bit relocations. */
-
-static bfd_reloc_status_type
-glob15_reloc (bfd *abfd ATTRIBUTE_UNUSED,
- arelent *reloc_entry ATTRIBUTE_UNUSED,
- asymbol *symbol_in ATTRIBUTE_UNUSED,
- void * data ATTRIBUTE_UNUSED,
- asection *input_section ATTRIBUTE_UNUSED,
- bfd *output_bfd ATTRIBUTE_UNUSED,
- char **error_message ATTRIBUTE_UNUSED)
-{
- /* FIXME. */
- abort ();
-}
-
-/* This special function is used for the global 16 bit relocations. */
-
-static bfd_reloc_status_type
-glob16_reloc (bfd *abfd ATTRIBUTE_UNUSED,
- arelent *reloc_entry ATTRIBUTE_UNUSED,
- asymbol *symbol_in ATTRIBUTE_UNUSED,
- void * data ATTRIBUTE_UNUSED,
- asection *input_section ATTRIBUTE_UNUSED,
- bfd *output_bfd ATTRIBUTE_UNUSED,
- char **error_message ATTRIBUTE_UNUSED)
-{
- /* FIXME. */
- abort ();
-}
-
-/* This special function is used for the local 16 bit relocations. */
-
-static bfd_reloc_status_type
-local16_reloc (bfd *abfd ATTRIBUTE_UNUSED,
- arelent *reloc_entry ATTRIBUTE_UNUSED,
- asymbol *symbol_in ATTRIBUTE_UNUSED,
- void * data ATTRIBUTE_UNUSED,
- asection *input_section ATTRIBUTE_UNUSED,
- bfd *output_bfd ATTRIBUTE_UNUSED,
- char **error_message ATTRIBUTE_UNUSED)
-{
- /* FIXME. */
- abort ();
-}
-
-/* Code to turn an external r_type into a pointer to an entry in the howto_table.
- If passed an r_type we don't recognize the abort rather than silently failing
- to generate an output file. */
-
-static void
-rtype2howto (arelent *cache_ptr, struct internal_reloc *dst)
-{
- unsigned int i;
-
- for (i = 0; i < sizeof tic80_howto_table / sizeof tic80_howto_table[0]; i++)
- {
- if (tic80_howto_table[i].type == dst->r_type)
- {
- cache_ptr->howto = tic80_howto_table + i;
- return;
- }
- }
-
- _bfd_error_handler (_("unsupported relocation type %#x"),
- (unsigned int) dst->r_type);
- cache_ptr->howto = tic80_howto_table + 0;
-}
-
-#define RTYPE2HOWTO(cache_ptr, dst) rtype2howto (cache_ptr, dst)
-#define coff_rtype_to_howto coff_tic80_rtype_to_howto
-
-static reloc_howto_type *
-coff_tic80_rtype_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
- asection *sec,
- struct internal_reloc *rel,
- struct coff_link_hash_entry *h ATTRIBUTE_UNUSED,
- struct internal_syment *sym ATTRIBUTE_UNUSED,
- bfd_vma *addendp)
-{
- arelent genrel;
-
- if (rel -> r_symndx == -1 && addendp != NULL)
- {
- /* This is a TI "internal relocation", which means that the relocation
- amount is the amount by which the current section is being relocated
- in the output section. */
- *addendp = (sec -> output_section -> vma + sec -> output_offset) - sec -> vma;
- }
- RTYPE2HOWTO (&genrel, rel);
- return genrel.howto;
-}
-
-#ifndef BADMAG
-#define BADMAG(x) TIC80BADMAG(x)
-#endif
-
-#define coff_relocate_section coff_tic80_relocate_section
-
-/* We need a special relocation routine to handle the PP relocs. Most
- of this is a copy of _bfd_coff_generic_relocate_section. */
-
-static bfd_boolean
-coff_tic80_relocate_section (bfd *output_bfd,
- struct bfd_link_info *info,
- bfd *input_bfd,
- asection *input_section,
- bfd_byte *contents,
- struct internal_reloc *relocs,
- struct internal_syment *syms,
- asection **sections)
-{
- struct internal_reloc *rel;
- struct internal_reloc *relend;
-
- rel = relocs;
- relend = rel + input_section->reloc_count;
- for (; rel < relend; rel++)
- {
- long symndx;
- struct coff_link_hash_entry *h;
- struct internal_syment *sym;
- bfd_vma addend;
- bfd_vma val;
- reloc_howto_type *howto;
- bfd_reloc_status_type rstat;
- bfd_vma addr;
-
- symndx = rel->r_symndx;
-
- if (symndx == -1)
- {
- h = NULL;
- sym = NULL;
- }
- else
- {
- h = obj_coff_sym_hashes (input_bfd)[symndx];
- sym = syms + symndx;
- }
-
- /* COFF treats common symbols in one of two ways. Either the
- size of the symbol is included in the section contents, or it
- is not. We assume that the size is not included, and force
- the rtype_to_howto function to adjust the addend as needed. */
-
- if (sym != NULL && sym->n_scnum != 0)
- addend = - sym->n_value;
- else
- addend = 0;
-
- howto = bfd_coff_rtype_to_howto (input_bfd, input_section, rel, h,
- sym, &addend);
- if (howto == NULL)
- return FALSE;
-
- val = 0;
-
- if (h == NULL)
- {
- asection *sec;
-
- if (symndx == -1)
- {
- sec = bfd_abs_section_ptr;
- val = 0;
- }
- else
- {
- sec = sections[symndx];
- val = (sec->output_section->vma
- + sec->output_offset
- + sym->n_value);
- if (! obj_pe (output_bfd))
- val -= sec->vma;
- }
- }
- else
- {
- if (h->root.type == bfd_link_hash_defined
- || h->root.type == bfd_link_hash_defweak)
- {
- asection *sec;
-
- sec = h->root.u.def.section;
- val = (h->root.u.def.value
- + sec->output_section->vma
- + sec->output_offset);
- }
-
- else if (! bfd_link_relocatable (info))
- (*info->callbacks->undefined_symbol)
- (info, h->root.root.string, input_bfd, input_section,
- rel->r_vaddr - input_section->vma, TRUE);
- }
-
- addr = rel->r_vaddr - input_section->vma;
-
- /* FIXME: This code assumes little endian, but the PP can
- apparently be bi-endian. I don't know if the bi-endianness
- applies to the instruction set or just to the data. */
- switch (howto->type)
- {
- default:
- case R_ABS:
- case R_RELLONGX:
- case R_PPL15:
- case R_PPL15W:
- case R_PPL15H:
- case R_PPLN15:
- case R_PPLN15W:
- case R_PPLN15H:
- rstat = _bfd_final_link_relocate (howto, input_bfd, input_section,
- contents, addr, val, addend);
- break;
-
- case R_PP15:
- case R_PP15W:
- case R_PP15H:
- case R_PPN15:
- case R_PPN15W:
- case R_PPN15H:
- /* Offset the address so that we can use 4 byte relocations. */
- rstat = _bfd_final_link_relocate (howto, input_bfd, input_section,
- contents + 2, addr, val, addend);
- break;
-
- case R_PP16B:
- case R_PPN16B:
- {
- /* The most significant bit is stored in bit 6. */
- bfd_byte hold;
-
- hold = contents[addr + 4];
- contents[addr + 4] &=~ 0x20;
- contents[addr + 4] |= (contents[addr] >> 1) & 0x20;
- rstat = _bfd_final_link_relocate (howto, input_bfd, input_section,
- contents + 2, addr,
- val, addend);
- contents[addr] &=~ 0x40;
- contents[addr] |= (contents[addr + 4] << 1) & 0x40;
- contents[addr + 4] &=~ 0x20;
- contents[addr + 4] |= hold & 0x20;
- break;
- }
-
- case R_PPL16B:
- case R_PPLN16B:
- {
- /* The most significant bit is stored in bit 28. */
- bfd_byte hold;
-
- hold = contents[addr + 1];
- contents[addr + 1] &=~ 0x80;
- contents[addr + 1] |= (contents[addr + 3] << 3) & 0x80;
- rstat = _bfd_final_link_relocate (howto, input_bfd, input_section,
- contents, addr,
- val, addend);
- contents[addr + 3] &= ~0x10;
- contents[addr + 3] |= (contents[addr + 1] >> 3) & 0x10;
- contents[addr + 1] &=~ 0x80;
- contents[addr + 1] |= hold & 0x80;
- break;
- }
-
- case R_PPBASE:
- /* Parameter RAM is from 0x1000000 to 0x1000800. */
- contents[addr] &=~ 0x3;
- if (val >= 0x1000000 && val < 0x1000800)
- contents[addr] |= 0x3;
- else
- contents[addr] |= 0x2;
- rstat = bfd_reloc_ok;
- break;
-
- case R_PPLBASE:
- /* Parameter RAM is from 0x1000000 to 0x1000800. */
- contents[addr + 2] &= ~0xc0;
- if (val >= 0x1000000 && val < 0x1000800)
- contents[addr + 2] |= 0xc0;
- else
- contents[addr + 2] |= 0x80;
- rstat = bfd_reloc_ok;
- break;
- }
-
- switch (rstat)
- {
- default:
- abort ();
- case bfd_reloc_ok:
- break;
- case bfd_reloc_outofrange:
- _bfd_error_handler
- /* xgettext: c-format */
- (_("%pB: bad reloc address %#" PRIx64 " in section `%pA'"),
- input_bfd, (uint64_t) rel->r_vaddr, input_section);
- return FALSE;
- case bfd_reloc_overflow:
- {
- const char *name;
- char buf[SYMNMLEN + 1];
-
- if (symndx == -1)
- name = "*ABS*";
- else if (h != NULL)
- name = NULL;
- else
- {
- name = _bfd_coff_internal_syment_name (input_bfd, sym, buf);
- if (name == NULL)
- return FALSE;
- }
-
- (*info->callbacks->reloc_overflow)
- (info, (h ? &h->root : NULL), name, howto->name,
- (bfd_vma) 0, input_bfd, input_section,
- rel->r_vaddr - input_section->vma);
- }
- }
- }
- return TRUE;
-}
-
-#define TIC80COFF 1 /* Customize coffcode.h */
-#undef C_AUTOARG /* Clashes with TIc80's C_UEXT */
-#undef C_LASTENT /* Clashes with TIc80's C_STATLAB */
-
-#ifndef bfd_pe_print_pdata
-#define bfd_pe_print_pdata NULL
-#endif
-
-#include "coffcode.h"
-
-CREATE_LITTLE_COFF_TARGET_VEC (tic80_coff_vec, "coff-tic80", D_PAGED, 0, '_', NULL, COFF_SWAP_TABLE)
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 948bb70..ac5312f 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -2330,12 +2330,6 @@ coff_set_arch_mach_hook (bfd *abfd, void * filehdr)
break;
#endif
-#ifdef TIC80_ARCH_MAGIC
- case TIC80_ARCH_MAGIC:
- arch = bfd_arch_tic80;
- break;
-#endif
-
#ifdef MCOREMAGIC
case MCOREMAGIC:
arch = bfd_arch_mcore;
@@ -2715,12 +2709,6 @@ coff_set_flags (bfd * abfd,
return TRUE;
#endif
-#ifdef TIC80_ARCH_MAGIC
- case bfd_arch_tic80:
- *magicp = TIC80_ARCH_MAGIC;
- return TRUE;
-#endif
-
#ifdef ARMMAGIC
case bfd_arch_arm:
#ifdef ARM_WINCE
@@ -2883,7 +2871,7 @@ sort_by_secaddr (const void * arg1, const void * arg2)
/* Calculate the file position for each section. */
#define ALIGN_SECTIONS_IN_FILE
-#if defined(TIC80COFF) || defined(TICOFF)
+#ifdef TICOFF
#undef ALIGN_SECTIONS_IN_FILE
#endif
@@ -3811,9 +3799,6 @@ coff_write_object_contents (bfd * abfd)
but it doesn't hurt to set it internally. */
internal_f.f_target_id = TI_TARGET_ID;
#endif
-#ifdef TIC80_TARGET_ID
- internal_f.f_target_id = TIC80_TARGET_ID;
-#endif
/* FIXME, should do something about the other byte orders and
architectures. */
@@ -3841,10 +3826,6 @@ coff_write_object_contents (bfd * abfd)
internal_a.magic = TICOFF_AOUT_MAGIC;
#define __A_MAGIC_SET__
#endif
-#ifdef TIC80COFF
- internal_a.magic = TIC80_ARCH_MAGIC;
-#define __A_MAGIC_SET__
-#endif /* TIC80 */
#if defined(ARM)
#define __A_MAGIC_SET__
@@ -4775,7 +4756,7 @@ coff_slurp_symbol_table (bfd * abfd)
case C_ALIAS: /* Duplicate tag. */
#endif
/* New storage classes for TI COFF. */
-#if defined(TIC80COFF) || defined(TICOFF)
+#ifdef TICOFF
case C_UEXT: /* Tentative external definition. */
#endif
case C_EXTLAB: /* External load time label. */
diff --git a/bfd/coffswap.h b/bfd/coffswap.h
index 60a04d4..a94f817 100644
--- a/bfd/coffswap.h
+++ b/bfd/coffswap.h
@@ -264,9 +264,6 @@ coff_swap_filehdr_in (bfd * abfd, void * src, void * dst)
filehdr_dst->f_nsyms = H_GET_32 (abfd, filehdr_src->f_nsyms);
filehdr_dst->f_opthdr = H_GET_16 (abfd, filehdr_src->f_opthdr);
filehdr_dst->f_flags = H_GET_16 (abfd, filehdr_src->f_flags);
-#ifdef TIC80_TARGET_ID
- filehdr_dst->f_target_id = H_GET_16 (abfd, filehdr_src->f_target_id);
-#endif
#ifdef COFF_ADJUST_FILEHDR_IN_POST
COFF_ADJUST_FILEHDR_IN_POST (abfd, src, dst);
@@ -289,9 +286,6 @@ coff_swap_filehdr_out (bfd *abfd, void * in, void * out)
H_PUT_32 (abfd, filehdr_in->f_nsyms, filehdr_out->f_nsyms);
H_PUT_16 (abfd, filehdr_in->f_opthdr, filehdr_out->f_opthdr);
H_PUT_16 (abfd, filehdr_in->f_flags, filehdr_out->f_flags);
-#ifdef TIC80_TARGET_ID
- H_PUT_16 (abfd, filehdr_in->f_target_id, filehdr_out->f_target_id);
-#endif
#ifdef COFF_ADJUST_FILEHDR_OUT_POST
COFF_ADJUST_FILEHDR_OUT_POST (abfd, in, out);
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 0a96927..a0ab37e 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -1333,11 +1333,6 @@ case "${targ}" in
targ_selvecs="tic6x_elf32_linux_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec"
;;
- tic80*-*-*)
- targ_defvec=tic80_coff_vec
- targ_underscore=yes
- ;;
-
#ifdef BFD64
tilegx-*-*)
targ_defvec=tilegx_elf64_le_vec
diff --git a/bfd/configure b/bfd/configure
index abd7b2a..bf95857 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -14923,7 +14923,6 @@ do
tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
- tic80_coff_vec) tb="$tb coff-tic80.lo $coff" ;;
tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
diff --git a/bfd/configure.ac b/bfd/configure.ac
index 7eee83a..c673a29 100644
--- a/bfd/configure.ac
+++ b/bfd/configure.ac
@@ -659,7 +659,6 @@ do
tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
- tic80_coff_vec) tb="$tb coff-tic80.lo $coff" ;;
tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
diff --git a/bfd/cpu-tic80.c b/bfd/cpu-tic80.c
deleted file mode 100644
index 2fcbd9d..0000000
--- a/bfd/cpu-tic80.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* bfd back-end for TI TMS320C80 (MVP) support
- Copyright (C) 1996-2019 Free Software Foundation, Inc.
- Written by Fred Fish at Cygnus support (fnf@cygnus.com)
-
- 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_tic80_arch =
-{
- 32, /* Bits in a word. */
- 32, /* Bits in an address. */
- 8, /* Bits in a byte. */
- bfd_arch_tic80, /* Architecture number. */
- 0, /* Only 1 machine. */
- "tic80", /* Architecture name. */
- "tic80", /* Printable name. */
- 2, /* Section alignment power. */
- TRUE, /* Default machine. */
- bfd_default_compatible,
- bfd_default_scan,
- bfd_arch_default_fill,
- NULL, /* Pointer to next in chain. */
- 0 /* Maximum offset of a reloc from the start of an insn. */
-};
diff --git a/bfd/po/SRC-POTFILES.in b/bfd/po/SRC-POTFILES.in
index 04c4c07..a84908b 100644
--- a/bfd/po/SRC-POTFILES.in
+++ b/bfd/po/SRC-POTFILES.in
@@ -32,7 +32,6 @@ coff-stgo32.c
coff-tic30.c
coff-tic4x.c
coff-tic54x.c
-coff-tic80.c
coff-x86_64.c
coff-z80.c
coff-z8k.c
@@ -117,7 +116,6 @@ cpu-tic30.c
cpu-tic4x.c
cpu-tic54x.c
cpu-tic6x.c
-cpu-tic80.c
cpu-tilegx.c
cpu-tilepro.c
cpu-v850.c
diff --git a/bfd/targets.c b/bfd/targets.c
index fb0c669..0c84a72 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -899,7 +899,6 @@ extern const bfd_target tic6x_elf32_c6000_be_vec;
extern const bfd_target tic6x_elf32_c6000_le_vec;
extern const bfd_target tic6x_elf32_linux_be_vec;
extern const bfd_target tic6x_elf32_linux_le_vec;
-extern const bfd_target tic80_coff_vec;
extern const bfd_target tilegx_elf32_be_vec;
extern const bfd_target tilegx_elf32_le_vec;
extern const bfd_target tilegx_elf64_be_vec;
@@ -1306,7 +1305,6 @@ static const bfd_target * const _bfd_target_vector[] =
&tic54x_coff2_vec,
&tic6x_elf32_be_vec,
&tic6x_elf32_le_vec,
- &tic80_coff_vec,
&tilegx_elf32_be_vec,
&tilegx_elf32_le_vec,