aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/Makefile.am4
-rw-r--r--bfd/Makefile.in8
-rw-r--r--bfd/aix386-core.c282
-rw-r--r--bfd/bfd-in2.h6
-rw-r--r--bfd/bfd.c3
-rw-r--r--bfd/config.bfd9
-rwxr-xr-xbfd/configure37
-rw-r--r--bfd/configure.ac47
-rw-r--r--bfd/doc/bfdint.texi4
-rw-r--r--bfd/doc/local.mk2
-rw-r--r--bfd/hosts/i386sco.h38
-rw-r--r--bfd/hosts/symmetry.h39
-rw-r--r--bfd/hosts/vaxult.h27
-rw-r--r--bfd/hosts/vaxult2.h27
-rw-r--r--bfd/po/SRC-POTFILES.in2
-rw-r--r--bfd/sco5-core.c401
-rw-r--r--bfd/targets.c14
-rwxr-xr-xbinutils/configure9
-rw-r--r--binutils/configure.ac9
-rw-r--r--binutils/testsuite/binutils-all/nm.exp14
-rw-r--r--binutils/testsuite/binutils-all/objcopy.exp6
-rw-r--r--binutils/testsuite/lib/binutils-common.exp4
-rw-r--r--gas/Makefile.am1
-rw-r--r--gas/Makefile.in1
-rw-r--r--gas/config/te-svr4.h23
-rwxr-xr-xgas/configure3
-rw-r--r--gas/configure.ac3
-rw-r--r--gas/configure.tgt1
-rw-r--r--gas/po/POTFILES.in1
-rw-r--r--gas/testsuite/gas/aarch64/litpool.d2
-rw-r--r--gas/testsuite/gas/aarch64/mapmisc.d2
-rw-r--r--gas/testsuite/gas/aarch64/mapping3.d2
-rw-r--r--gas/testsuite/gas/aarch64/mapping4.d2
-rw-r--r--gas/testsuite/gas/all/gas.exp8
-rw-r--r--gas/testsuite/gas/cfi/cfi.exp2
-rw-r--r--ld/configure.tgt15
-rw-r--r--ld/testsuite/ld-elf/merge.d2
-rw-r--r--ld/testsuite/ld-elfvers/vers.exp2
-rw-r--r--ld/testsuite/ld-elfweak/elfweak.exp2
-rw-r--r--ld/testsuite/ld-scripts/expr2.d2
-rw-r--r--ld/testsuite/ld-scripts/fill.d3
-rw-r--r--ld/testsuite/ld-scripts/fill16.d6
-rw-r--r--ld/testsuite/ld-scripts/phdrs2.exp1
-rw-r--r--ld/testsuite/ld-scripts/segment-start.d2
-rw-r--r--ld/testsuite/ld-shared/shared.exp2
45 files changed, 32 insertions, 1048 deletions
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index e1692e7..75d21db 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -633,7 +633,6 @@ BFD64_BACKENDS_CFILES = \
vms-alpha.c
OPTIONAL_BACKENDS = \
- aix386-core.lo \
cisco-core.lo \
hpux-core.lo \
irix-core.lo \
@@ -641,11 +640,9 @@ OPTIONAL_BACKENDS = \
netbsd-core.lo \
osf-core.lo \
rs6000-core.lo \
- sco5-core.lo \
trad-core.lo
OPTIONAL_BACKENDS_CFILES = \
- aix386-core.c \
cisco-core.c \
hpux-core.c \
irix-core.c \
@@ -653,7 +650,6 @@ OPTIONAL_BACKENDS_CFILES = \
netbsd-core.c \
osf-core.c \
rs6000-core.c \
- sco5-core.c \
trad-core.c
# Reconfigure if config.bfd or configure.host changes.
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 80aed65..0b0bb1a 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -1103,7 +1103,6 @@ BFD64_BACKENDS_CFILES = \
vms-alpha.c
OPTIONAL_BACKENDS = \
- aix386-core.lo \
cisco-core.lo \
hpux-core.lo \
irix-core.lo \
@@ -1111,11 +1110,9 @@ OPTIONAL_BACKENDS = \
netbsd-core.lo \
osf-core.lo \
rs6000-core.lo \
- sco5-core.lo \
trad-core.lo
OPTIONAL_BACKENDS_CFILES = \
- aix386-core.c \
cisco-core.c \
hpux-core.c \
irix-core.c \
@@ -1123,7 +1120,6 @@ OPTIONAL_BACKENDS_CFILES = \
netbsd-core.c \
osf-core.c \
rs6000-core.c \
- sco5-core.c \
trad-core.c
@@ -1305,7 +1301,7 @@ SRCPROT = $(srcdir)/archive.c $(srcdir)/archures.c \
SRCIPROT = $(srcdir)/cache.c $(srcdir)/libbfd.c \
$(srcdir)/bfdio.c $(srcdir)/bfdwin.c \
$(srcdir)/reloc.c $(srcdir)/cpu-h8300.c \
- $(srcdir)/cpu-i960.c $(srcdir)/archures.c \
+ $(srcdir)/archures.c \
$(srcdir)/init.c
TEXIDIR = $(srcdir)/../texinfo/fsf
@@ -1451,7 +1447,6 @@ mostlyclean-compile:
distclean-compile:
-rm -f *.tab.c
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aix386-core.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aix5ppc-core.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aout-cris.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aout-ns32k.Plo@am__quote@
@@ -1733,7 +1728,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/reloc.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/reloc16.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rs6000-core.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sco5-core.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/section.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/som.Plo@am__quote@
diff --git a/bfd/aix386-core.c b/bfd/aix386-core.c
deleted file mode 100644
index 977a6bd..0000000
--- a/bfd/aix386-core.c
+++ /dev/null
@@ -1,282 +0,0 @@
-/* BFD back-end for AIX on PS/2 core files.
- This was based on trad-core.c, which was written by John Gilmore of
- Cygnus Support.
- Copyright (C) 1988-2022 Free Software Foundation, Inc.
- Written by Minh Tran-Le <TRANLE@INTELLICORP.COM>.
- Converted to back end form by Ian Lance Taylor <ian@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"
-#include "coff/i386.h"
-#include "coff/internal.h"
-#include "libcoff.h"
-
-#include <signal.h>
-
-#if defined (_AIX) && defined (_I386)
-#define NOCHECKS /* This is for coredump.h. */
-#define _h_USER /* Avoid including user.h from coredump.h. */
-#include <uinfo.h>
-#include <sys/i386/coredump.h>
-#endif /* _AIX && _I386 */
-
-/* Maybe this could work on some other i386 but I have not tried it
- * mtranle@paris - Tue Sep 24 12:49:35 1991
- */
-
-#ifndef COR_MAGIC
-# define COR_MAGIC "core"
-#endif
-
-/* Need this cast because ptr is really void *. */
-#define core_hdr(bfd) \
- (((bfd->tdata.trad_core_data))->hdr)
-#define core_section(bfd,n) \
- (((bfd)->tdata.trad_core_data)->sections[n])
-#define core_regsec(bfd) \
- (((bfd)->tdata.trad_core_data)->reg_section)
-#define core_reg2sec(bfd) \
- (((bfd)->tdata.trad_core_data)->reg2_section)
-
-/* These are stored in the bfd's tdata. */
-struct trad_core_struct
-{
- struct corehdr *hdr; /* core file header */
- asection *reg_section;
- asection *reg2_section;
- asection *sections[MAX_CORE_SEGS];
-};
-
-static bfd_cleanup
-aix386_core_file_p (bfd *abfd)
-{
- int i, n;
- unsigned char longbuf[4]; /* Raw bytes of various header fields */
- bfd_size_type core_size = sizeof (struct corehdr);
- size_t amt;
- struct corehdr *core;
- struct mergem
- {
- struct trad_core_struct coredata;
- struct corehdr internal_core;
- } *mergem;
- flagword flags;
-
- amt = sizeof (longbuf);
- if (bfd_bread (longbuf, amt, abfd) != amt)
- {
- if (bfd_get_error () != bfd_error_system_call)
- bfd_set_error (bfd_error_wrong_format);
- return 0;
- }
-
- if (strncmp (longbuf, COR_MAGIC, 4))
- return 0;
-
- if (bfd_seek (abfd, (file_ptr) 0, 0) != 0)
- return 0;
-
- amt = sizeof (struct mergem);
- mergem = (struct mergem *) bfd_zalloc (abfd, amt);
- if (mergem == NULL)
- return 0;
-
- core = &mergem->internal_core;
-
- if ((bfd_bread (core, core_size, abfd)) != core_size)
- {
- if (bfd_get_error () != bfd_error_system_call)
- bfd_set_error (bfd_error_wrong_format);
- loser:
- bfd_release (abfd, (char *) mergem);
- abfd->tdata.any = NULL;
- bfd_section_list_clear (abfd);
- return 0;
- }
-
- set_tdata (abfd, &mergem->coredata);
- core_hdr (abfd) = core;
-
- /* Create the sections. */
- flags = SEC_HAS_CONTENTS;
- core_regsec (abfd) = bfd_make_section_anyway_with_flags (abfd, ".reg",
- flags);
- if (core_regsec (abfd) == NULL)
- goto loser;
-
- core_regsec (abfd)->size = sizeof (core->cd_regs);
- core_regsec (abfd)->vma = (bfd_vma) -1;
-
- /* We'll access the regs afresh in the core file, like any section. */
- core_regsec (abfd)->filepos =
- (file_ptr) offsetof (struct corehdr, cd_regs[0]);
-
- flags = SEC_HAS_CONTENTS;
- core_reg2sec (abfd) = bfd_make_section_anyway_with_flags (abfd, ".reg2",
- flags);
- if (core_reg2sec (abfd) == NULL)
- /* bfd_release frees everything allocated after it's arg. */
- goto loser;
-
- core_reg2sec (abfd)->size = sizeof (core->cd_fpregs);
- core_reg2sec (abfd)->vma = (bfd_vma) -1;
- core_reg2sec (abfd)->filepos =
- (file_ptr) offsetof (struct corehdr, cd_fpregs);
-
- for (i = 0, n = 0; (i < MAX_CORE_SEGS) && (core->cd_segs[i].cs_type); i++)
- {
- const char *sname;
- flagword flags;
-
- if (core->cd_segs[i].cs_offset == 0)
- continue;
-
- switch (core->cd_segs[i].cs_type)
- {
- case COR_TYPE_DATA:
- sname = ".data";
- flags = SEC_ALLOC + SEC_LOAD + SEC_HAS_CONTENTS;
- break;
- case COR_TYPE_STACK:
- sname = ".stack";
- flags = SEC_ALLOC + SEC_LOAD + SEC_HAS_CONTENTS;
- break;
- case COR_TYPE_LIBDATA:
- sname = ".libdata";
- flags = SEC_ALLOC + SEC_HAS_CONTENTS;
- break;
- case COR_TYPE_WRITE:
- sname = ".writeable";
- flags = SEC_ALLOC + SEC_HAS_CONTENTS;
- break;
- case COR_TYPE_MSC:
- sname = ".misc";
- flags = SEC_ALLOC + SEC_HAS_CONTENTS;
- break;
- default:
- sname = ".unknown";
- flags = SEC_ALLOC + SEC_HAS_CONTENTS;
- break;
- }
- core_section (abfd, n) = bfd_make_section_anyway_with_flags (abfd,
- sname,
- flags);
- if (core_section (abfd, n) == NULL)
- goto loser;
-
- core_section (abfd, n)->size = core->cd_segs[i].cs_len;
- core_section (abfd, n)->vma = core->cd_segs[i].cs_address;
- core_section (abfd, n)->filepos = core->cd_segs[i].cs_offset;
- core_section (abfd, n)->alignment_power = 2;
- n++;
- }
-
- return _bfd_no_cleanup;
-}
-
-static char *
-aix386_core_file_failing_command (bfd *abfd)
-{
- return core_hdr (abfd)->cd_comm;
-}
-
-static int
-aix386_core_file_failing_signal (bfd *abfd)
-{
- return core_hdr (abfd)->cd_cursig;
-}
-
-#define aix386_core_file_matches_executable_p generic_core_file_matches_executable_p
-
-#define aix386_core_file_pid _bfd_nocore_core_file_pid
-
-/* If somebody calls any byte-swapping routines, shoot them. */
-
-static void
-swap_abort (void)
-{
- /* This way doesn't require any declaration for ANSI to fuck up. */
- abort ();
-}
-
-#define NO_GET ((bfd_vma (*) (const void *)) swap_abort)
-#define NO_PUT ((void (*) (bfd_vma, void *)) swap_abort)
-#define NO_GETS ((bfd_signed_vma (*) (const void *)) swap_abort)
-#define NO_GET64 ((uint64_t (*) (const void *)) swap_abort)
-#define NO_PUT64 ((void (*) (uint64_t, void *)) swap_abort)
-#define NO_GETS64 ((int64_t (*) (const void *)) swap_abort)
-
-const bfd_target core_aix386_vec =
-{
- "aix386-core",
- bfd_target_unknown_flavour,
- BFD_ENDIAN_BIG, /* target byte order */
- BFD_ENDIAN_BIG, /* target headers byte order */
- (HAS_RELOC | EXEC_P | /* object flags */
- HAS_LINENO | HAS_DEBUG |
- HAS_SYMS | HAS_LOCALS | WP_TEXT),
-
- (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */
- 0, /* leading underscore */
- ' ', /* ar_pad_char */
- 16, /* ar_max_namelen */
- 0, /* match priority. */
- TARGET_KEEP_UNUSED_SECTION_SYMBOLS, /* keep unused section symbols. */
- NO_GET64, NO_GETS64, NO_PUT64,
- NO_GET, NO_GETS, NO_PUT,
- NO_GET, NO_GETS, NO_PUT, /* data */
- NO_GET64, NO_GETS64, NO_PUT64,
- NO_GET, NO_GETS, NO_PUT,
- NO_GET, NO_GETS, NO_PUT, /* hdrs */
-
- { /* bfd_check_format */
- _bfd_dummy_target,
- _bfd_dummy_target,
- _bfd_dummy_target,
- aix386_core_file_p
- },
- { /* bfd_create_object */
- _bfd_bool_bfd_false_error,
- _bfd_bool_bfd_false_error,
- _bfd_bool_bfd_false_error,
- _bfd_bool_bfd_false_error
- },
- { /* bfd_write_contents */
- _bfd_bool_bfd_false_error,
- _bfd_bool_bfd_false_error,
- _bfd_bool_bfd_false_error,
- _bfd_bool_bfd_false_error
- },
-
- BFD_JUMP_TABLE_GENERIC (_bfd_generic),
- BFD_JUMP_TABLE_COPY (_bfd_generic),
- BFD_JUMP_TABLE_CORE (aix386),
- BFD_JUMP_TABLE_ARCHIVE (_bfd_noarchive),
- BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols),
- BFD_JUMP_TABLE_RELOCS (_bfd_norelocs),
- BFD_JUMP_TABLE_WRITE (_bfd_generic),
- BFD_JUMP_TABLE_LINK (_bfd_nolink),
- BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic),
-
- NULL,
-
- NULL
-};
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index eddfb31..aeb8d5d 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -6790,8 +6790,6 @@ struct bfd
struct tekhex_data_struct *tekhex_data;
struct elf_obj_tdata *elf_obj_data;
struct mmo_data_struct *mmo_data;
- struct sun_core_struct *sun_core_data;
- struct sco5_core_struct *sco5_core_data;
struct trad_core_struct *trad_core_data;
struct som_data_struct *som_data;
struct hpux_core_struct *hpux_core_data;
@@ -6800,7 +6798,6 @@ struct bfd
struct lynx_core_struct *lynx_core_data;
struct osf_core_struct *osf_core_data;
struct cisco_core_struct *cisco_core_data;
- struct versados_data_struct *versados_data;
struct netbsd_core_struct *netbsd_core_data;
struct mach_o_data_struct *mach_o_data;
struct mach_o_fat_data_struct *mach_o_fat_data;
@@ -7328,10 +7325,7 @@ enum bfd_flavour
bfd_target_verilog_flavour,
bfd_target_ihex_flavour,
bfd_target_som_flavour,
- bfd_target_os9k_flavour,
- bfd_target_versados_flavour,
bfd_target_msdos_flavour,
- bfd_target_ovax_flavour,
bfd_target_evax_flavour,
bfd_target_mmo_flavour,
bfd_target_mach_o_flavour,
diff --git a/bfd/bfd.c b/bfd/bfd.c
index 0f07bef..9cbb674 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -346,8 +346,6 @@ CODE_FRAGMENT
. struct tekhex_data_struct *tekhex_data;
. struct elf_obj_tdata *elf_obj_data;
. struct mmo_data_struct *mmo_data;
-. struct sun_core_struct *sun_core_data;
-. struct sco5_core_struct *sco5_core_data;
. struct trad_core_struct *trad_core_data;
. struct som_data_struct *som_data;
. struct hpux_core_struct *hpux_core_data;
@@ -356,7 +354,6 @@ CODE_FRAGMENT
. struct lynx_core_struct *lynx_core_data;
. struct osf_core_struct *osf_core_data;
. struct cisco_core_struct *cisco_core_data;
-. struct versados_data_struct *versados_data;
. struct netbsd_core_struct *netbsd_core_data;
. struct mach_o_data_struct *mach_o_data;
. struct mach_o_fat_data_struct *mach_o_fat_data;
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 1b0111f..3672b6a 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -135,9 +135,7 @@ case $targ in
m68*-*-vxworks* | \
m68*-apollo-* | \
m68*-apple-aux* | \
- m68*-bull-sysv* | \
m68*-ericsson-* | \
- m68*-motorola-sysv* | \
m68*-netx-* | \
m88*-*-* | \
maxq-*-coff | \
@@ -1181,16 +1179,11 @@ case "${targ}" in
powerpc-*-macos*)
targ_defvec=powerpc_xcoff_vec
;;
- powerpc-*-lynxos*)
- targ_defvec=powerpc_elf32_vec
- targ_selvecs="rs6000_xcoff_vec"
- targ_cflags=-DSMALL_ARCHIVE
- ;;
powerpc-*-nto*)
targ_defvec=powerpc_elf32_vec
targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
;;
- powerpc-*-vxworks* | powerpc-*-windiss*)
+ powerpc-*-vxworks*)
targ_defvec=powerpc_elf32_vxworks_vec
targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
diff --git a/bfd/configure b/bfd/configure
index f997a25..5af8af2 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -14035,7 +14035,6 @@ if test "${target}" = "${host}"; then
arm*-*-netbsd* | arm-*-openbsd*)
COREFILE=netbsd-core.lo
;;
- arm-*-riscix) COREFILE=trad-core.lo ;;
hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
@@ -14045,19 +14044,10 @@ if test "${target}" = "${host}"; then
COREFILE=netbsd-core.lo
;;
- i[3-7]86-sequent-bsd*)
- COREFILE=trad-core.lo
- TRAD_HEADER='"hosts/symmetry.h"'
- ;;
- i[3-7]86-sequent-sysv4*) ;;
- i[3-7]86-sequent-sysv*)
- COREFILE=trad-core.lo
- TRAD_HEADER='"hosts/symmetry.h"'
- ;;
i[3-7]86-*-bsdi)
COREFILE=
;;
- i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
+ i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.*)
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/i386bsd.h"'
;;
@@ -14072,13 +14062,6 @@ if test "${target}" = "${host}"; then
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/esix.h"'
;;
- i[3-7]86-*-sco3.2v5*)
- COREFILE=sco5-core.lo
- ;;
- i[3-7]86-*-sco* | i[3-7]86-*-isc*)
- COREFILE=trad-core.lo
- TRAD_HEADER='"hosts/i386sco.h"'
- ;;
i[3-7]86-*-mach3*)
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/i386mach3.h"'
@@ -14091,14 +14074,12 @@ if test "${target}" = "${host}"; then
CORE_HEADER='"hosts/x86-64linux.h"'
esac
;;
- i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
- i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
mips*-*-netbsd* | mips*-*-openbsd*)
COREFILE=netbsd-core.lo
;;
- mips-sgi-irix4*) COREFILE=irix-core.lo ;;
- mips-sgi-irix5*) COREFILE=irix-core.lo ;;
- mips-sgi-irix6*) COREFILE=irix-core.lo ;;
+ mips-*-irix*)
+ COREFILE=irix-core.lo
+ ;;
m68*-*-linux-*)
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/m68klinux.h"'
@@ -14170,14 +14151,6 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
vax-*-netbsd* | vax-*-openbsd*)
COREFILE=netbsd-core.lo
;;
- vax-*-ultrix2*)
- COREFILE=trad-core.lo
- TRAD_HEADER='"hosts/vaxult2.h"'
- ;;
- vax-*-ultrix*)
- COREFILE=trad-core.lo
- TRAD_HEADER='"hosts/vaxult2.h"'
- ;;
vax-*-linux-*)
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/vaxlinux.h"'
@@ -14195,7 +14168,6 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
esac
case "$COREFILE" in
- aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
irix-core.lo) COREFLAG=-DIRIX_CORE ;;
@@ -14204,7 +14176,6 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
osf-core.lo) COREFLAG=-DOSF_CORE ;;
ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
- sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
esac
diff --git a/bfd/configure.ac b/bfd/configure.ac
index 015fd01..82a3d1f 100644
--- a/bfd/configure.ac
+++ b/bfd/configure.ac
@@ -812,7 +812,6 @@ if test "${target}" = "${host}"; then
arm*-*-netbsd* | arm-*-openbsd*)
COREFILE=netbsd-core.lo
;;
- arm-*-riscix) COREFILE=trad-core.lo ;;
hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
@@ -823,25 +822,12 @@ if test "${target}" = "${host}"; then
;;
changequote(,)dnl
- i[3-7]86-sequent-bsd*)
-changequote([,])dnl
- COREFILE=trad-core.lo
- TRAD_HEADER='"hosts/symmetry.h"'
- ;;
-changequote(,)dnl
- i[3-7]86-sequent-sysv4*) ;;
- i[3-7]86-sequent-sysv*)
-changequote([,])dnl
- COREFILE=trad-core.lo
- TRAD_HEADER='"hosts/symmetry.h"'
- ;;
-changequote(,)dnl
i[3-7]86-*-bsdi)
changequote([,])dnl
COREFILE=
;;
changequote(,)dnl
- i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
+ i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.*)
changequote([,])dnl
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/i386bsd.h"'
@@ -864,17 +850,6 @@ changequote([,])dnl
TRAD_HEADER='"hosts/esix.h"'
;;
changequote(,)dnl
- i[3-7]86-*-sco3.2v5*)
-changequote([,])dnl
- COREFILE=sco5-core.lo
- ;;
-changequote(,)dnl
- i[3-7]86-*-sco* | i[3-7]86-*-isc*)
-changequote([,])dnl
- COREFILE=trad-core.lo
- TRAD_HEADER='"hosts/i386sco.h"'
- ;;
-changequote(,)dnl
i[3-7]86-*-mach3*)
changequote([,])dnl
COREFILE=trad-core.lo
@@ -890,16 +865,12 @@ changequote([,])dnl
CORE_HEADER='"hosts/x86-64linux.h"'
esac
;;
-changequote(,)dnl
- i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
- i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
-changequote([,])dnl
mips*-*-netbsd* | mips*-*-openbsd*)
COREFILE=netbsd-core.lo
;;
- mips-sgi-irix4*) COREFILE=irix-core.lo ;;
- mips-sgi-irix5*) COREFILE=irix-core.lo ;;
- mips-sgi-irix6*) COREFILE=irix-core.lo ;;
+ mips-*-irix*)
+ COREFILE=irix-core.lo
+ ;;
m68*-*-linux-*)
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/m68klinux.h"'
@@ -955,14 +926,6 @@ changequote([,])dnl
vax-*-netbsd* | vax-*-openbsd*)
COREFILE=netbsd-core.lo
;;
- vax-*-ultrix2*)
- COREFILE=trad-core.lo
- TRAD_HEADER='"hosts/vaxult2.h"'
- ;;
- vax-*-ultrix*)
- COREFILE=trad-core.lo
- TRAD_HEADER='"hosts/vaxult2.h"'
- ;;
vax-*-linux-*)
COREFILE=trad-core.lo
TRAD_HEADER='"hosts/vaxlinux.h"'
@@ -980,7 +943,6 @@ changequote([,])dnl
esac
case "$COREFILE" in
- aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
irix-core.lo) COREFLAG=-DIRIX_CORE ;;
@@ -989,7 +951,6 @@ changequote([,])dnl
osf-core.lo) COREFLAG=-DOSF_CORE ;;
ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
- sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
esac
diff --git a/bfd/doc/bfdint.texi b/bfd/doc/bfdint.texi
index 538ceb6..cb251b1 100644
--- a/bfd/doc/bfdint.texi
+++ b/bfd/doc/bfdint.texi
@@ -346,10 +346,6 @@ Intel hex format.
SOM (used on HP/UX).
@item bfd_target_verilog_flavour
Verilog memory hex dump format.
-@item bfd_target_os9k_flavour
-os9000.
-@item bfd_target_versados_flavour
-VERSAdos.
@item bfd_target_msdos_flavour
MS-DOS.
@item bfd_target_evax_flavour
diff --git a/bfd/doc/local.mk b/bfd/doc/local.mk
index 33030ee..cf2b479 100644
--- a/bfd/doc/local.mk
+++ b/bfd/doc/local.mk
@@ -69,7 +69,7 @@ SRCPROT = $(srcdir)/archive.c $(srcdir)/archures.c \
SRCIPROT = $(srcdir)/cache.c $(srcdir)/libbfd.c \
$(srcdir)/bfdio.c $(srcdir)/bfdwin.c \
$(srcdir)/reloc.c $(srcdir)/cpu-h8300.c \
- $(srcdir)/cpu-i960.c $(srcdir)/archures.c \
+ $(srcdir)/archures.c \
$(srcdir)/init.c
TEXIDIR = $(srcdir)/../texinfo/fsf
diff --git a/bfd/hosts/i386sco.h b/bfd/hosts/i386sco.h
deleted file mode 100644
index fec6953..0000000
--- a/bfd/hosts/i386sco.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Copyright (C) 2007-2022 Free Software Foundation, Inc.
-
- 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. */
-
-/* Core file stuff. At least some, perhaps all, of the following
- defines work on many more systems than just SCO. */
-
-#define NBPG NBPC
-#define UPAGES USIZE
-#define HOST_DATA_START_ADDR u.u_exdata.ux_datorg
-#define HOST_STACK_START_ADDR u.u_sub
-#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(abfd) \
- ((core_upage(abfd)->u_sysabort != 0) \
- ? core_upage(abfd)->u_sysabort \
- : -1)
-
-/* According to the manpage, a version 2 SCO corefile can contain
- various additional sections (it is cleverly arranged so the u area,
- data, and stack are first where we can find them). So without
- writing lots of code to parse all their headers and stuff, we can't
- know whether a corefile is bigger than it should be. */
-
-#define TRAD_CORE_ALLOW_ANY_EXTRA_SIZE 1
diff --git a/bfd/hosts/symmetry.h b/bfd/hosts/symmetry.h
deleted file mode 100644
index 9904924..0000000
--- a/bfd/hosts/symmetry.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Copyright (C) 2007-2022 Free Software Foundation, Inc.
-
- 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. */
-
-/* Symmetry running either dynix 3.1 (bsd) or ptx (sysv). */
-
-#define NBPG 4096
-#define UPAGES 1
-
-#ifdef _SEQUENT_
-/* ptx */
-#define HOST_TEXT_START_ADDR 0
-#define HOST_STACK_END_ADDR 0x3fffe000
-#define TRAD_CORE_USER_OFFSET ((UPAGES * NBPG) - sizeof (struct user))
-#else
-/* dynix */
-#define HOST_TEXT_START_ADDR 0x1000
-#define HOST_DATA_START_ADDR (NBPG * u.u_tsize)
-#define HOST_STACK_END_ADDR 0x3ffff000
-#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \
- ((core_bfd)->tdata.trad_core_data->u.u_arg[0])
-#endif
-
-#define TRAD_CORE_DSIZE_INCLUDES_TSIZE
diff --git a/bfd/hosts/vaxult.h b/bfd/hosts/vaxult.h
deleted file mode 100644
index dbe757d..0000000
--- a/bfd/hosts/vaxult.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright (C) 2007-2022 Free Software Foundation, Inc.
-
- 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 <machine/param.h>
-#include <machine/vmparam.h>
-#define HOST_PAGE_SIZE (NBPG*CLSIZE)
-#define HOST_MACHINE_ARCH bfd_arch_vax
-
-#define HOST_TEXT_START_ADDR USRTEXT
-#define HOST_STACK_END_ADDR USRSTACK
-#undef HOST_BIG_ENDIAN_P
diff --git a/bfd/hosts/vaxult2.h b/bfd/hosts/vaxult2.h
deleted file mode 100644
index dbe757d..0000000
--- a/bfd/hosts/vaxult2.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright (C) 2007-2022 Free Software Foundation, Inc.
-
- 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 <machine/param.h>
-#include <machine/vmparam.h>
-#define HOST_PAGE_SIZE (NBPG*CLSIZE)
-#define HOST_MACHINE_ARCH bfd_arch_vax
-
-#define HOST_TEXT_START_ADDR USRTEXT
-#define HOST_STACK_END_ADDR USRSTACK
-#undef HOST_BIG_ENDIAN_P
diff --git a/bfd/po/SRC-POTFILES.in b/bfd/po/SRC-POTFILES.in
index 08e2901..26d5a2c 100644
--- a/bfd/po/SRC-POTFILES.in
+++ b/bfd/po/SRC-POTFILES.in
@@ -1,4 +1,3 @@
-aix386-core.c
aix5ppc-core.c
aout-cris.c
aout-ns32k.c
@@ -340,7 +339,6 @@ ppcboot.c
reloc.c
reloc16.c
rs6000-core.c
-sco5-core.c
section.c
simple.c
som.c
diff --git a/bfd/sco5-core.c b/bfd/sco5-core.c
deleted file mode 100644
index 7807ac8..0000000
--- a/bfd/sco5-core.c
+++ /dev/null
@@ -1,401 +0,0 @@
-/* BFD back end for SCO5 core files (U-area and raw sections)
- Copyright (C) 1998-2022 Free Software Foundation, Inc.
- Written by Jouke Numan <jnuman@hiscom.nl>
-
- 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 "libaout.h" /* BFD a.out internal data structures */
-
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/param.h>
-#include <sys/dir.h>
-#include <signal.h>
-
-#include <sys/user.h> /* After a.out.h */
-#ifdef SCO5_CORE
-#include <sys/paccess.h>
-#include <sys/region.h>
-#endif
-
-struct sco5_core_struct
-{
- struct user u;
-};
-
-/* forward declarations */
-
-#define sco5_core_file_matches_executable_p generic_core_file_matches_executable_p
-#define sco5_core_file_pid _bfd_nocore_core_file_pid
-
-static asection *
-make_bfd_asection (bfd *abfd,
- const char *name,
- flagword flags,
- bfd_size_type size,
- bfd_vma vma,
- file_ptr filepos)
-{
- asection *asect;
-
- asect = bfd_make_section_anyway_with_flags (abfd, name, flags);
- if (!asect)
- return NULL;
- asect->size = size;
- asect->vma = vma;
- asect->filepos = filepos;
- asect->alignment_power = 2;
-
- return asect;
-}
-
-static struct user *
-read_uarea (bfd *abfd, int filepos)
-{
- struct sco5_core_struct *rawptr;
- size_t amt = sizeof (struct sco5_core_struct);
-
- rawptr = (struct sco5_core_struct *) bfd_zmalloc (amt);
- if (rawptr == NULL)
- return NULL;
-
- abfd->tdata.sco5_core_data = rawptr;
-
- if (bfd_seek (abfd, (file_ptr) filepos, SEEK_SET) != 0
- || bfd_bread ((void *) &rawptr->u, (bfd_size_type) sizeof rawptr->u,
- abfd) != sizeof rawptr->u)
- {
- bfd_set_error (bfd_error_wrong_format);
- return NULL;
- }
-
- /* Sanity check perhaps??? */
- if (rawptr->u.u_dsize > 0x1000000) /* Remember, it's in pages... */
- {
- bfd_set_error (bfd_error_wrong_format);
- return NULL;
- }
- if (rawptr->u.u_ssize > 0x1000000)
- {
- bfd_set_error (bfd_error_wrong_format);
- return NULL;
- }
- return &rawptr->u;
-}
-
-bfd_cleanup
-sco5_core_file_p (bfd *abfd)
-{
- int coffset_siz, val, nsecs, cheadoffs;
- int coresize;
- struct user *u;
- struct coreoffsets coffsets;
- struct coresecthead chead;
- char *secname;
- flagword flags;
-
- /* Read coreoffsets region at end of core (see core(FP)). */
-
- {
- struct stat statbuf;
-
- if (bfd_stat (abfd, &statbuf) < 0)
- return NULL;
-
- coresize = statbuf.st_size;
- }
- /* Last long in core is sizeof struct coreoffsets, read it */
- if ((bfd_seek (abfd, (file_ptr) (coresize - sizeof coffset_siz),
- SEEK_SET) != 0)
- || bfd_bread ((void *) &coffset_siz, (bfd_size_type) sizeof coffset_siz,
- abfd) != sizeof coffset_siz)
- {
- bfd_set_error (bfd_error_wrong_format);
- return NULL;
- }
-
- /* Use it to seek start of coreoffsets region, read it and determine
- validity */
- if ((bfd_seek (abfd, (file_ptr) (coresize - coffset_siz), SEEK_SET) != 0)
- || (bfd_bread ((void *) &coffsets, (bfd_size_type) sizeof coffsets, abfd)
- != sizeof coffsets)
- || ((coffsets.u_info != 1) && (coffsets.u_info != C_VERSION)))
- {
- bfd_set_error (bfd_error_wrong_format);
- return NULL;
- }
-
- if (coffsets.u_info == 1)
- {
- /* Old version, no section heads, read info from user struct */
-
- u = read_uarea (abfd, coffsets.u_user);
- if (! u)
- goto fail;
-
- if (!make_bfd_asection (abfd, ".reg", SEC_HAS_CONTENTS,
- (bfd_size_type) coffsets.u_usize,
- 0 - (bfd_vma) u->u_ar0,
- (file_ptr) coffsets.u_user))
- goto fail;
-
- if (!make_bfd_asection (abfd, ".data",
- SEC_ALLOC + SEC_LOAD + SEC_HAS_CONTENTS,
- ((bfd_size_type) u->u_exdata.ux_dsize
- + u->u_exdata.ux_bsize),
- (bfd_vma) u->u_exdata.ux_datorg,
- (file_ptr) coffsets.u_data))
- goto fail;
-
- if (!make_bfd_asection (abfd, ".stack",
- SEC_ALLOC + SEC_LOAD + SEC_HAS_CONTENTS,
- (bfd_size_type) u->u_ssize * NBPC,
- (bfd_vma) u->u_sub,
- (file_ptr) coffsets.u_stack))
- goto fail;
-
- return _bfd_no_cleanup; /* Done for version 1 */
- }
-
- /* Immediately before coreoffsets region is a long with offset in core
- to first coresecthead (CORES_OFFSETS), the long before this is the
- number of section heads in the list. Read both longs and read the
- coresecthead and check its validity */
-
- if ((bfd_seek (abfd,
- (file_ptr) (coresize - coffset_siz - 2 * sizeof coffset_siz),
- SEEK_SET) != 0)
- || (bfd_bread ((void *) &nsecs, (bfd_size_type) sizeof nsecs, abfd)
- != sizeof nsecs)
- || (bfd_bread ((void *) &cheadoffs, (bfd_size_type) sizeof cheadoffs,
- abfd) != sizeof cheadoffs)
- || (bfd_seek (abfd, (file_ptr) cheadoffs, SEEK_SET) != 0)
- || (bfd_bread ((void *) &chead, (bfd_size_type) sizeof chead, abfd)
- != sizeof chead)
- || (chead.cs_stype != CORES_OFFSETS)
- || (chead.cs_x.csx_magic != COREMAGIC_NUMBER))
- {
- bfd_set_error (bfd_error_wrong_format);
- goto fail;
- }
-
- /* OK, we believe you. You're a core file (sure, sure). */
-
- /* Now loop over all regions and map them */
- nsecs--; /* We've seen CORES_OFFSETS already */
- for (; nsecs; nsecs--)
- {
- if ((bfd_seek (abfd, (file_ptr) chead.cs_hseek, SEEK_SET) != 0)
- || (bfd_bread ((void *) &chead, (bfd_size_type) sizeof chead, abfd)
- != sizeof chead))
- {
- bfd_set_error (bfd_error_wrong_format);
- goto fail;
- }
-
- switch (chead.cs_stype)
- {
- case CORES_MAGIC: /* Core header, check magic */
- if (chead.cs_x.csx_magic != COREMAGIC_NUMBER)
- {
- bfd_set_error (bfd_error_wrong_format);
- goto fail;
- }
- secname = NULL;
- nsecs++; /* MAGIC not in section cnt!*/
- break;
- case CORES_UAREA: /* U-area, read in tdata */
- u = read_uarea (abfd, chead.cs_sseek);
- if (! u)
- goto fail;
-
- /* This is tricky. As the "register section", we give them
- the entire upage and stack. u.u_ar0 points to where
- "register 0" is stored. There are two tricks with this,
- though. One is that the rest of the registers might be
- at positive or negative (or both) displacements from
- *u_ar0. The other is that u_ar0 is sometimes an absolute
- address in kernel memory, and on other systems it is an
- offset from the beginning of the `struct user'.
-
- As a practical matter, we don't know where the registers
- actually are, so we have to pass the whole area to GDB.
- We encode the value of u_ar0 by setting the .regs section
- up so that its virtual memory address 0 is at the place
- pointed to by u_ar0 (by setting the vma of the start of
- the section to -u_ar0). GDB uses this info to locate the
- regs, using minor trickery to get around the
- offset-or-absolute-addr problem. */
-
- chead.cs_vaddr = 0 - (bfd_vma) u->u_ar0;
-
- secname = ".reg";
- flags = SEC_HAS_CONTENTS;
-
- break;
- case CORES_PREGION: /* A program region, map it */
- switch (chead.cs_x.csx_preg.csxp_rtyp)
- {
- case PT_DATA:
- secname = ".data"; /* Data region. */
- break;
- case PT_STACK:
- secname = ".stack"; /* Stack region. */
- break;
- case PT_SHMEM:
- secname = ".shmem"; /* Shared memory */
- break;
- case PT_LIBDAT:
- secname = ".libdat"; /* Shared library data */
- break;
- case PT_V86:
- secname = ".virt86"; /* Virtual 8086 mode */
- break;
- case PT_SHFIL:
- secname = ".mmfile"; /* Memory mapped file */
- break;
- case PT_XDATA0:
- secname = ".Xdat0"; /* XENIX data region, virtual 0 */
- break;
- default:
- secname = "";
- }
- flags = SEC_ALLOC + SEC_LOAD + SEC_HAS_CONTENTS;
- break;
- case CORES_PROC: /* struct proc */
- case CORES_ITIMER: /* interval timers */
- case CORES_SCOUTSNAME: /* struct scoutsname */
- secname = NULL; /* Ignore these */
- break;
- default:
- _bfd_error_handler ("Unhandled SCO core file section type %d\n",
- chead.cs_stype);
- continue;
- }
-
- if (secname
- && !make_bfd_asection (abfd, secname, flags,
- (bfd_size_type) chead.cs_vsize,
- (bfd_vma) chead.cs_vaddr,
- (file_ptr) chead.cs_sseek))
- goto fail;
-
- }
-
- return _bfd_no_cleanup;
-
- fail:
- if (abfd->tdata.any)
- {
- bfd_release (abfd, abfd->tdata.any);
- abfd->tdata.any = NULL;
- }
- bfd_section_list_clear (abfd);
- return NULL;
-}
-
-char *
-sco5_core_file_failing_command (bfd *abfd)
-{
- char *com = abfd->tdata.sco5_core_data->u.u_comm;
- if (*com)
- return com;
- else
- return NULL;
-}
-
-int
-sco5_core_file_failing_signal (bfd *ignore_abfd)
-{
- return ((ignore_abfd->tdata.sco5_core_data->u.u_sysabort != 0)
- ? ignore_abfd->tdata.sco5_core_data->u.u_sysabort
- : -1);
-}
-
-/* If somebody calls any byte-swapping routines, shoot them. */
-static void
-swap_abort (void)
-{
- abort (); /* This way doesn't require any declaration for ANSI to fuck up */
-}
-
-#define NO_GET ((bfd_vma (*) (const void *)) swap_abort)
-#define NO_PUT ((void (*) (bfd_vma, void *)) swap_abort)
-#define NO_GETS ((bfd_signed_vma (*) (const void *)) swap_abort)
-#define NO_GET64 ((uint64_t (*) (const void *)) swap_abort)
-#define NO_PUT64 ((void (*) (uint64_t, void *)) swap_abort)
-#define NO_GETS64 ((int64_t (*) (const void *)) swap_abort)
-
-const bfd_target core_sco5_vec =
- {
- "sco5-core",
- bfd_target_unknown_flavour,
- BFD_ENDIAN_LITTLE, /* target byte order */
- BFD_ENDIAN_LITTLE, /* target headers byte order */
- (HAS_RELOC | EXEC_P | /* object flags */
- HAS_LINENO | HAS_DEBUG |
- HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
- (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */
- 0, /* symbol prefix */
- ' ', /* ar_pad_char */
- 16, /* ar_max_namelen */
- 0, /* match priority. */
- TARGET_KEEP_UNUSED_SECTION_SYMBOLS, /* keep unused section symbols. */
- NO_GET64, NO_GETS64, NO_PUT64, /* 64 bit data */
- NO_GET, NO_GETS, NO_PUT, /* 32 bit data */
- NO_GET, NO_GETS, NO_PUT, /* 16 bit data */
- NO_GET64, NO_GETS64, NO_PUT64, /* 64 bit hdrs */
- NO_GET, NO_GETS, NO_PUT, /* 32 bit hdrs */
- NO_GET, NO_GETS, NO_PUT, /* 16 bit hdrs */
-
- { /* bfd_check_format */
- _bfd_dummy_target, /* unknown format */
- _bfd_dummy_target, /* object file */
- _bfd_dummy_target, /* archive */
- sco5_core_file_p /* a core file */
- },
- { /* bfd_set_format */
- _bfd_bool_bfd_false_error,
- _bfd_bool_bfd_false_error,
- _bfd_bool_bfd_false_error,
- _bfd_bool_bfd_false_error
- },
- { /* bfd_write_contents */
- _bfd_bool_bfd_false_error,
- _bfd_bool_bfd_false_error,
- _bfd_bool_bfd_false_error,
- _bfd_bool_bfd_false_error
- },
-
- BFD_JUMP_TABLE_GENERIC (_bfd_generic),
- BFD_JUMP_TABLE_COPY (_bfd_generic),
- BFD_JUMP_TABLE_CORE (sco5),
- BFD_JUMP_TABLE_ARCHIVE (_bfd_noarchive),
- BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols),
- BFD_JUMP_TABLE_RELOCS (_bfd_norelocs),
- BFD_JUMP_TABLE_WRITE (_bfd_generic),
- BFD_JUMP_TABLE_LINK (_bfd_nolink),
- BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic),
-
- NULL,
-
- NULL /* backend_data */
- };
diff --git a/bfd/targets.c b/bfd/targets.c
index 41294ea..44fb5a3 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -162,10 +162,7 @@ DESCRIPTION
. bfd_target_verilog_flavour,
. bfd_target_ihex_flavour,
. bfd_target_som_flavour,
-. bfd_target_os9k_flavour,
-. bfd_target_versados_flavour,
. bfd_target_msdos_flavour,
-. bfd_target_ovax_flavour,
. bfd_target_evax_flavour,
. bfd_target_mmo_flavour,
. bfd_target_mach_o_flavour,
@@ -960,7 +957,6 @@ extern const bfd_target binary_vec;
extern const bfd_target ihex_vec;
/* All of the xvecs for core files. */
-extern const bfd_target core_aix386_vec;
extern const bfd_target core_cisco_be_vec;
extern const bfd_target core_cisco_le_vec;
extern const bfd_target core_hppabsd_vec;
@@ -969,7 +965,6 @@ extern const bfd_target core_irix_vec;
extern const bfd_target core_netbsd_vec;
extern const bfd_target core_osf_vec;
extern const bfd_target core_ptrace_vec;
-extern const bfd_target core_sco5_vec;
extern const bfd_target core_trad_vec;
static const bfd_target * const _bfd_target_vector[] =
@@ -1394,9 +1389,6 @@ static const bfd_target * const _bfd_target_vector[] =
/* Add any required traditional-core-file-handler. */
-#ifdef AIX386_CORE
- &core_aix386_vec,
-#endif
#if 0
/* We don't include cisco_core_*_vec. Although it has a magic number,
the magic number isn't at the beginning of the file, and thus
@@ -1422,9 +1414,6 @@ static const bfd_target * const _bfd_target_vector[] =
#ifdef PTRACE_CORE
&core_ptrace_vec,
#endif
-#ifdef SCO5_CORE
- &core_sco5_vec,
-#endif
#ifdef TRAD_CORE
&core_trad_vec,
#endif
@@ -1863,10 +1852,7 @@ bfd_flavour_name (enum bfd_flavour flavour)
case bfd_target_verilog_flavour: return "Verilog";
case bfd_target_ihex_flavour: return "Ihex";
case bfd_target_som_flavour: return "SOM";
- case bfd_target_os9k_flavour: return "OS9K";
- case bfd_target_versados_flavour: return "Versados";
case bfd_target_msdos_flavour: return "MSDOS";
- case bfd_target_ovax_flavour: return "Ovax";
case bfd_target_evax_flavour: return "Evax";
case bfd_target_mmo_flavour: return "mmo";
case bfd_target_mach_o_flavour: return "MACH_O";
diff --git a/binutils/configure b/binutils/configure
index 9770aa3..20fd420 100755
--- a/binutils/configure
+++ b/binutils/configure
@@ -14646,15 +14646,6 @@ do
spu-*-*)
BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
;;
- mips*-*-pe)
- BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
- if test -z "$DLLTOOL_DEFAULT"; then
- DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
- fi
- DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
- BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
- BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
- ;;
mcore-*-pe)
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
if test -z "$DLLTOOL_DEFAULT"; then
diff --git a/binutils/configure.ac b/binutils/configure.ac
index 053cbb4..a217c81 100644
--- a/binutils/configure.ac
+++ b/binutils/configure.ac
@@ -431,15 +431,6 @@ changequote([,])dnl
spu-*-*)
BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
;;
- mips*-*-pe)
- BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
- if test -z "$DLLTOOL_DEFAULT"; then
- DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
- fi
- DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
- BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
- BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
- ;;
mcore-*-pe)
BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
if test -z "$DLLTOOL_DEFAULT"; then
diff --git a/binutils/testsuite/binutils-all/nm.exp b/binutils/testsuite/binutils-all/nm.exp
index 0c956a9..d0f4c3e 100644
--- a/binutils/testsuite/binutils-all/nm.exp
+++ b/binutils/testsuite/binutils-all/nm.exp
@@ -44,9 +44,7 @@ if {![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.o]} then {
# This test does not work correctly on ECOFF targets, because ECOFF
# stores most symbols twice, which messes up the nm output.
- setup_xfail "alpha*-*-osf*"
- setup_xfail "mips*-*-ultrix*" "mips*-*-ecoff*" "mips*-*-irix4*"
- setup_xfail "mips*-*-riscos*" "mips*-*-sysv3*"
+ setup_xfail "alpha*-*-*ecoff" "alpha*-*-osf*"
# This test does not work correctly on XCOFF targets, because XCOFF
# does not enter static symbols in the symbol table.
@@ -104,9 +102,7 @@ if {![binutils_assemble $srcdir/$subdir/bintest.s tmpdir/bintest.o]} then {
# This test does not work correctly on ECOFF targets, because ECOFF
# stores most symbols twice, which messes up the nm output.
- setup_xfail "alpha*-*-osf*"
- setup_xfail "mips*-*-ultrix*" "mips*-*-ecoff*" "mips*-*-irix4*"
- setup_xfail "mips*-*-riscos*" "mips*-*-sysv3*"
+ setup_xfail "alpha*-*-*ecoff" "alpha*-*-osf*"
# This test does not work correctly on XCOFF targets, because XCOFF
# does not enter static symbols in the symbol table.
@@ -181,12 +177,6 @@ if {![binutils_assemble $srcdir/$subdir/$nm_1_src tmpdir/nm-1.o]} then {
set tempfile tmpdir/nm-1.o
}
- # This test does not work correctly on ECOFF targets, because ECOFF
- # stores most symbols twice, which messes up the nm output.
- setup_xfail "alpha*-*-osf*"
- setup_xfail "mips*-*-ultrix*" "mips*-*-ecoff*" "mips*-*-irix4*"
- setup_xfail "mips*-*-riscos*" "mips*-*-sysv3*"
-
set got [binutils_run $NM "$NMFLAGS --size-sort $tempfile"]
set want "0*4 T text_symbol3.*0*8 T text_symbol2.*0*c T text_symbol1"
diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp
index eec93da..77af5ba 100644
--- a/binutils/testsuite/binutils-all/objcopy.exp
+++ b/binutils/testsuite/binutils-all/objcopy.exp
@@ -130,7 +130,7 @@ setup_xfail "hppa*-*-*"
setup_xfail "sh-*-coff*"
setup_xfail "tic54x-*-*"
clear_xfail "hppa*64*-*-hpux*" "hppa*-*-linux*" "hppa*-*-lites*"
-clear_xfail "hppa*-*-*n*bsd*" "hppa*-*-rtems*" "hppa*-*-*elf*"
+clear_xfail "hppa*-*-*n*bsd*" "hppa*-*-*elf*"
objcopy_test "simple copy" bintest.s object "" ""
# Test verilog data width
@@ -1220,7 +1220,7 @@ if [is_elf_format] {
setup_xfail "sh-*-coff*"
setup_xfail "tic54x-*-*"
clear_xfail "hppa*64*-*-hpux*" "hppa*-*-linux*" "hppa*-*-lites*"
- clear_xfail "hppa*-*-*n*bsd*" "hppa*-*-rtems*" "hppa*-*-*elf*"
+ clear_xfail "hppa*-*-*n*bsd*" "hppa*-*-*elf*"
objcopy_test "ELF unknown section type" unknown.s object "" ""
objcopy_test_readelf "ELF group 1" group.s
@@ -1464,7 +1464,7 @@ setup_xfail "hppa*-*-*"
setup_xfail "sh-*-coff*"
setup_xfail "spu-*-*"
clear_xfail "hppa*64*-*-hpux*" "hppa*-*-linux*" "hppa*-*-lites*"
-clear_xfail "hppa*-*-*n*bsd*" "hppa*-*-rtems*" "hppa*-*-*elf*"
+clear_xfail "hppa*-*-*n*bsd*" "hppa*-*-*elf*"
if { [istarget pdp11-*-*] } {
set src "pr25662-pdp11.s"
} else {
diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp
index e46909b..b0190ac 100644
--- a/binutils/testsuite/lib/binutils-common.exp
+++ b/binutils/testsuite/lib/binutils-common.exp
@@ -50,7 +50,6 @@ proc is_elf_format {} {
&& ![istarget *-*-rtems*]
&& ![istarget *-*-solaris2*]
&& ![istarget *-*-sysv4*]
- && ![istarget *-*-unixware*]
&& ![istarget *-*-wasm32*]
&& ![istarget avr-*-*]
&& ![istarget hppa*64*-*-hpux*]
@@ -63,8 +62,7 @@ proc is_elf_format {} {
return 0
}
- if { [istarget *-*-linux*ecoff*]
- || [istarget *-*-rtemscoff*] } {
+ if { [istarget *-*-linux*ecoff*] } {
return 0
}
diff --git a/gas/Makefile.am b/gas/Makefile.am
index ba28965..03f51c7 100644
--- a/gas/Makefile.am
+++ b/gas/Makefile.am
@@ -341,7 +341,6 @@ TARG_ENV_HFILES = \
config/te-pc532mach.h \
config/te-pe.h \
config/te-solaris.h \
- config/te-svr4.h \
config/te-tmips.h \
config/te-vxworks.h \
config/te-wince-pe.h
diff --git a/gas/Makefile.in b/gas/Makefile.in
index 8319181..c86d333 100644
--- a/gas/Makefile.in
+++ b/gas/Makefile.in
@@ -828,7 +828,6 @@ TARG_ENV_HFILES = \
config/te-pc532mach.h \
config/te-pe.h \
config/te-solaris.h \
- config/te-svr4.h \
config/te-tmips.h \
config/te-vxworks.h \
config/te-wince-pe.h
diff --git a/gas/config/te-svr4.h b/gas/config/te-svr4.h
deleted file mode 100644
index 4fd7cb9..0000000
--- a/gas/config/te-svr4.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Copyright (C) 2007-2022 Free Software Foundation, Inc.
-
- This file is part of GAS, the GNU Assembler.
-
- GAS 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,
- or (at your option) any later version.
-
- GAS 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 GAS; see the file COPYING. If not, write to the Free
- Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
- 02110-1301, USA. */
-
-#define TE_SVR4
-#define LOCAL_LABELS_FB 1
-
-#include "obj-format.h"
diff --git a/gas/configure b/gas/configure
index bd9e7d3..b568369 100755
--- a/gas/configure
+++ b/gas/configure
@@ -12080,8 +12080,7 @@ _ACEOF
generic_target=${cpu_type}-${target_vendor}-${target_os}
case ${generic_target} in
i386-*-msdosdjgpp* \
- | i386-*-go32* \
- | i386-go32-rtems*)
+ | i386-*-go32*)
$as_echo "#define STRICTCOFF 1" >>confdefs.h
diff --git a/gas/configure.ac b/gas/configure.ac
index a471030..6a68fd7 100644
--- a/gas/configure.ac
+++ b/gas/configure.ac
@@ -246,8 +246,7 @@ for this_target in $target $canon_targets ; do
generic_target=${cpu_type}-${target_vendor}-${target_os}
case ${generic_target} in
i386-*-msdosdjgpp* \
- | i386-*-go32* \
- | i386-go32-rtems*)
+ | i386-*-go32*)
AC_DEFINE(STRICTCOFF, 1, [Using strict COFF?])
;;
diff --git a/gas/configure.tgt b/gas/configure.tgt
index 765ba73..c210845 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -291,7 +291,6 @@ case ${generic_target} in
m68hc12-*-* | m6812-*-*) fmt=elf ;;
m68k-*-elf*) fmt=elf ;;
- m68k-*-sysv4*) fmt=elf em=svr4 ;;
m68k-*-linux-*) fmt=elf em=linux ;;
m68k-*-uclinux*) fmt=elf em=uclinux ;;
m68k-*-gnu*) fmt=elf ;;
diff --git a/gas/po/POTFILES.in b/gas/po/POTFILES.in
index 8f2efdb..fda3de0 100644
--- a/gas/po/POTFILES.in
+++ b/gas/po/POTFILES.in
@@ -209,7 +209,6 @@ config/te-nbsd532.h
config/te-pc532mach.h
config/te-pe.h
config/te-solaris.h
-config/te-svr4.h
config/te-tmips.h
config/te-vms.c
config/te-vxworks.h
diff --git a/gas/testsuite/gas/aarch64/litpool.d b/gas/testsuite/gas/aarch64/litpool.d
index 5604424..e37e07df 100644
--- a/gas/testsuite/gas/aarch64/litpool.d
+++ b/gas/testsuite/gas/aarch64/litpool.d
@@ -1,7 +1,7 @@
#objdump: -d
#name: AArch64 Bignums in Literal Pool (PR 16688)
# This test is only valid on ELF based ports.
-#notarget: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
+#notarget: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd
.*: +file format.*aarch64.*
diff --git a/gas/testsuite/gas/aarch64/mapmisc.d b/gas/testsuite/gas/aarch64/mapmisc.d
index 1f2df6e..95dcd81 100644
--- a/gas/testsuite/gas/aarch64/mapmisc.d
+++ b/gas/testsuite/gas/aarch64/mapmisc.d
@@ -3,7 +3,7 @@
#name: AArch64 Mapping Symbols for miscellaneous directives
#source: mapmisc.s
# This test is only valid on ELF based ports.
-#notarget: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
+#notarget: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd
.*: +file format .*aarch64.*
diff --git a/gas/testsuite/gas/aarch64/mapping3.d b/gas/testsuite/gas/aarch64/mapping3.d
index ece7de1..e6e087c 100644
--- a/gas/testsuite/gas/aarch64/mapping3.d
+++ b/gas/testsuite/gas/aarch64/mapping3.d
@@ -2,7 +2,7 @@
#as: --generate-missing-build-notes=no
#name: AArch64 Mapping Symbols Test 3
# This test is only valid on ELF based ports.
-#notarget: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
+#notarget: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd
.*: +file format.*aarch64.*
diff --git a/gas/testsuite/gas/aarch64/mapping4.d b/gas/testsuite/gas/aarch64/mapping4.d
index d0495da..0012f4e 100644
--- a/gas/testsuite/gas/aarch64/mapping4.d
+++ b/gas/testsuite/gas/aarch64/mapping4.d
@@ -2,7 +2,7 @@
#as: --generate-missing-build-notes=no
#name: AArch64 Mapping Symbols Test 4
# This test is only valid on ELF based ports.
-#notarget: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
+#notarget: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd
.*: +file format.*aarch64.*
diff --git a/gas/testsuite/gas/all/gas.exp b/gas/testsuite/gas/all/gas.exp
index 81d1121..734634f 100644
--- a/gas/testsuite/gas/all/gas.exp
+++ b/gas/testsuite/gas/all/gas.exp
@@ -278,10 +278,8 @@ if { ![istarget *c30*-*-*]
&& ![istarget ft32-*-*]
&& ![istarget h8300*-*-*]
&& ![istarget hppa*-*-*] } then {
- # The vax fails because VMS can apparently actually handle this
- # case in relocs, so gas doesn't handle it itself.
# msp430, mn10[23]00 and riscv emit two relocs to handle the difference of two symbols.
- setup_xfail "am3*-*-*" "mn10200-*-*" "mn10300*-*-*" "msp430*-*-*" "riscv*-*-*" "vax*-*-vms*"
+ setup_xfail "am3*-*-*" "mn10200-*-*" "mn10300*-*-*" "msp430*-*-*" "riscv*-*-*"
do_930509a
}
@@ -323,11 +321,9 @@ switch -glob $target_triplet {
# We omit the ARM toolchains because they define locals to
# start with '.', which eliminates .eos, .text etc from the output.
# Omit c54x, since .tag and .def mean something different on that target
-if { ([istarget *-*-coff*] && ![istarget arm*-*-coff] && ![istarget *c4x*-*-coff] && ![istarget *c54x*-*-coff]) \
+if { ([istarget *-*-coff*] && ![istarget *c4x*-*-coff] && ![istarget *c54x*-*-coff]) \
||([istarget *-*-pe*] && ![istarget arm*-*-pe*]) \
|| [istarget i*86-*-aix*] \
- || [istarget i*86-*-sco*] \
- || [istarget i*86-*-isc*] \
|| [istarget i*86-*-go32*] \
|| [istarget i*86-*-cygwin*] \
|| [istarget x86_64-*-mingw*] \
diff --git a/gas/testsuite/gas/cfi/cfi.exp b/gas/testsuite/gas/cfi/cfi.exp
index c426466..fab64b9 100644
--- a/gas/testsuite/gas/cfi/cfi.exp
+++ b/gas/testsuite/gas/cfi/cfi.exp
@@ -94,7 +94,7 @@ if { [istarget "i*86-*-*"] || [istarget "x86_64-*-*"] } then {
}
} elseif [istarget "sh*-*"] then {
- if { [istarget "*-pe" ] || [istarget "*-rtemscoff*"] } then {
+ if { [istarget "*-pe" ] } then {
return
}
run_dump_test "cfi-sh-1"
diff --git a/ld/configure.tgt b/ld/configure.tgt
index de04a44..eeaad47 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -374,23 +374,14 @@ i[3-7]86-*-linux-*) targ_emul=elf_i386
i[3-7]86-*-redox*) targ_emul=elf_i386
targ_extra_emuls=elf_x86_64
;;
-i[3-7]86-*-sysv[45]*) targ_emul=elf_i386
- targ_extra_emuls=elf_iamcu
- ;;
i[3-7]86-*-solaris2*) targ_emul=elf_i386_sol2
targ_extra_emuls="elf_i386_ldso elf_i386 elf_iamcu elf_x86_64_sol2 elf_x86_64"
targ_extra_libpath=$targ_extra_emuls
;;
-i[3-7]86-*-unixware) targ_emul=elf_i386
- targ_extra_emuls=elf_iamcu
- ;;
i[3-7]86-*-solaris*) targ_emul=elf_i386_ldso
targ_extra_emuls="elf_i386"
targ_extra_libpath=$targ_extra_emuls
;;
-i[3-7]86-*-netbsdpe*) targ_emul=i386pe
- targ_extra_ofiles="deffilep.o pe-dll.o"
- ;;
i[3-7]86-*-netbsd* | \
i[3-7]86-*-netbsd*-gnu* | \
i[3-7]86-*-knetbsd*-gnu | \
@@ -869,12 +860,6 @@ sh*eb-*-linux*) targ_emul=shelf_linux
sh*-*-linux*) targ_emul=shlelf_linux
targ_extra_emuls="shlelf_fd"
;;
-sh*l*-*-netbsdaout*) targ_emul=shl
- targ_extra_emuls=sh
- ;;
-sh*-*-netbsdaout*) targ_emul=sh
- targ_extra_emuls=shl
- ;;
sh*l*-*-netbsd*) targ_emul=shlelf_nbsd
targ_extra_emuls=shelf_nbsd
;;
diff --git a/ld/testsuite/ld-elf/merge.d b/ld/testsuite/ld-elf/merge.d
index 9a1ddfc..a62711c 100644
--- a/ld/testsuite/ld-elf/merge.d
+++ b/ld/testsuite/ld-elf/merge.d
@@ -4,7 +4,7 @@
#xfail: bfin-*-* cr16-*-* cris*-*-* crx-*-* d10v-*-* d30v-*-* dlx-*-*
#xfail: fr30-*-* frv-*-* ft32-*-* h8300-*-* hppa*64*-*-* ip2k-*-* iq2000-*-*
#xfail: lm32-*-* m68hc11-*-* mcore-*-* mep-*-* metag-*-* mn102*-*-* moxie-*-*
-#xfail: mt-*-* nds32*-*-* nios2-*-* or32-*-* pj-*-* pru-*-* s12z-*-* score-*-*
+#xfail: mt-*-* nds32*-*-* nios2-*-* pj-*-* pru-*-* s12z-*-* score-*-*
#xfail: tic6x-*-* vax-*-* xgate-*-* xstormy16-*-* xtensa*-*-*
.*: file format .*elf.*
diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp
index 7f0fd08..236ebbc 100644
--- a/ld/testsuite/ld-elfvers/vers.exp
+++ b/ld/testsuite/ld-elfvers/vers.exp
@@ -37,8 +37,6 @@ if { ![check_shared_lib_support] } {
# This is similar to the test that is used in ld-shared, BTW.
if { ![istarget hppa*64*-*-hpux*]
&& ![istarget hppa*-*-linux*]
- && ![istarget i?86-*-sysv4*]
- && ![istarget i?86-*-unixware]
&& ![istarget i?86-*-elf*]
&& ![istarget i?86-*-linux*]
&& ![istarget i?86-*-gnu*]
diff --git a/ld/testsuite/ld-elfweak/elfweak.exp b/ld/testsuite/ld-elfweak/elfweak.exp
index 63ec38c..b5db770 100644
--- a/ld/testsuite/ld-elfweak/elfweak.exp
+++ b/ld/testsuite/ld-elfweak/elfweak.exp
@@ -39,8 +39,6 @@ if { ![istarget alpha*-*-linux*]
&& ![istarget arm*-*-linux*]
&& ![istarget hppa*64*-*-hpux*]
&& ![istarget hppa*-*-linux*]
- && ![istarget i?86-*-sysv4*]
- && ![istarget i?86-*-unixware]
&& ![istarget i?86-*-elf*]
&& ![istarget i?86-*-linux*]
&& ![istarget i?86-*-gnu*]
diff --git a/ld/testsuite/ld-scripts/expr2.d b/ld/testsuite/ld-scripts/expr2.d
index 94fb5d3..d1dac5d 100644
--- a/ld/testsuite/ld-scripts/expr2.d
+++ b/ld/testsuite/ld-scripts/expr2.d
@@ -1,6 +1,6 @@
# ld: -T expr2.t
#nm: -B
-#xfail: arm-*-*aout [is_xcoff_format]
+#xfail: [is_xcoff_format]
#...
.* D defined
diff --git a/ld/testsuite/ld-scripts/fill.d b/ld/testsuite/ld-scripts/fill.d
index cfe1e52..a341e78 100644
--- a/ld/testsuite/ld-scripts/fill.d
+++ b/ld/testsuite/ld-scripts/fill.d
@@ -7,7 +7,7 @@
#skip: ia64-*-* mips*-*-freebsd* mips*-*-gnu* mips*-*-irix* mips*-*-kfreebsd*
#skip: mips*-*-linux* mips*-*-netbsd* mips*-*-openbsd* mips*-*-sysv4* sh-*-pe
#skip: tilegx*-*-* tilepro-*-* x86_64-*-cygwin x86_64-*-mingw* x86_64-*-pe*
-#xfail: alpha*-*-*ecoff sparc*-*-coff
+#xfail: alpha*-*-*ecoff
#xfail: tic30-*-coff tic4x-*-* tic54x-*-* z8k-*-*
#
# See also fill16.d. We use `skip' for configurations unsupported
@@ -19,7 +19,6 @@
# ia64 aligns code to minimum 16 bytes.
# mips aligns to minimum 16 bytes (except for bare-metal ELF and VxWorks).
# sh-pe pads out code sections to 16 bytes
-# sparc-coff aligns to 8 bytes
# tic30-coff aligns to 2 bytes
# tic4x has 4 octet bytes
# tic54x doesn't support .p2align
diff --git a/ld/testsuite/ld-scripts/fill16.d b/ld/testsuite/ld-scripts/fill16.d
index e5819df..8df7c81 100644
--- a/ld/testsuite/ld-scripts/fill16.d
+++ b/ld/testsuite/ld-scripts/fill16.d
@@ -4,8 +4,8 @@
#ld: -T fill.t
#objdump: -s -j .text
#notarget: [is_aout_format]
-#skip: arm-*-coff i[3-7]86-*-coff [is_xcoff_format]
-#xfail: alpha*-*-*ecoff sparc*-*-coff
+#skip: [is_xcoff_format]
+#xfail: alpha*-*-*ecoff
#xfail: tic30-*-coff tic4x-*-* tic54x-*-* z8k-*-*
#xfail: z80-*-coff
#
@@ -17,8 +17,6 @@
# alpha-linuxecoff pads out code to 16 bytes.
# arm-coff always aligns code to 4 bytes.
# i386-coff always aligns code to 4 bytes.
-# sh-pe pads out code sections to 16 bytes
-# sparc-coff aligns to 8 bytes
# tic30-coff aligns to 2 bytes
# tic4x has 4 octet bytes
# tic54x doesn't support .p2align
diff --git a/ld/testsuite/ld-scripts/phdrs2.exp b/ld/testsuite/ld-scripts/phdrs2.exp
index ea93d47..504c927 100644
--- a/ld/testsuite/ld-scripts/phdrs2.exp
+++ b/ld/testsuite/ld-scripts/phdrs2.exp
@@ -20,7 +20,6 @@
# PHDRS2 is only meaningful for ELF.
if { !([istarget *-*-sysv4*]
- || [istarget *-*-unixware*]
|| [istarget *-*-elf*]
|| [istarget *-*-eabi*]
|| [istarget hppa*64*-*-hpux*]
diff --git a/ld/testsuite/ld-scripts/segment-start.d b/ld/testsuite/ld-scripts/segment-start.d
index b96b44c..c589597 100644
--- a/ld/testsuite/ld-scripts/segment-start.d
+++ b/ld/testsuite/ld-scripts/segment-start.d
@@ -3,7 +3,7 @@
#ld: -e 0 -u __executable_start -T segment-start.ld
#nm: -B
#xfail: mmix-*-* pdp11-*-*
-#xfail: tic30-*-*aout* c54x*-*-*coff* tic54x-*-*coff*
+#xfail: c54x*-*-*coff* tic54x-*-*coff*
# XFAIL targets that are not expected to handle SEGMENT_START correctly.
# Make sure `__executable_start' is regular:
diff --git a/ld/testsuite/ld-shared/shared.exp b/ld/testsuite/ld-shared/shared.exp
index 62ac1ee..f56e42f 100644
--- a/ld/testsuite/ld-shared/shared.exp
+++ b/ld/testsuite/ld-shared/shared.exp
@@ -39,8 +39,6 @@ if { ![check_shared_lib_support] } {
# Square bracket expressions seem to confuse istarget.
if { ![istarget hppa*64*-*-hpux*] \
&& ![istarget hppa*-*-linux*] \
- && ![istarget i?86-*-sysv4*] \
- && ![istarget i?86-*-unixware] \
&& ![istarget i?86-*-elf*] \
&& ![istarget i?86-*-linux*] \
&& ![istarget i?86-*-gnu*] \