From: Ben Elliston Date: Thu, 24 Feb 2005 20:16:56 +0000 (+0000) Subject: * coffcode.h (coff_sym_filepos): Remove GNU960 conditional code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=10adf131a598d8a101af9e0f8eadcb3a935eb943;p=binutils-gdb.git * coffcode.h (coff_sym_filepos): Remove GNU960 conditional code. * format.c (bfd_check_format_matches): Likewise. * archive.c (BFD_GNU960_ARMAG): Likewise. (bfd_generic_archive_p): Likewise. (_bfd_write_archive_contents): Likewise. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3dbf2cf5fc4..94fd6f08f14 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,11 @@ +2005-02-24 Ben Elliston + + * coffcode.h (coff_sym_filepos): Remove GNU960 conditional code. + * format.c (bfd_check_format_matches): Likewise. + * archive.c (BFD_GNU960_ARMAG): Likewise. + (bfd_generic_archive_p): Likewise. + (_bfd_write_archive_contents): Likewise. + 2005-02-24 H.J. Lu * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.95. diff --git a/bfd/archive.c b/bfd/archive.c index da25f607868..4473975f2d4 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -138,10 +138,6 @@ DESCRIPTION extern int errno; #endif -#ifdef GNU960 -#define BFD_GNU960_ARMAG(abfd) (BFD_COFF_FILE_P((abfd)) ? ARMAG : ARMAGB) -#endif - /* We keep a cache of archive filepointers to archive elements to speed up searching the archive by filepos. We only add an entry to the cache when we actually read one. We also don't sort the cache; @@ -581,14 +577,9 @@ bfd_generic_archive_p (bfd *abfd) return NULL; } -#ifdef GNU960 - if (strncmp (armag, BFD_GNU960_ARMAG (abfd), SARMAG) != 0) - return 0; -#else if (strncmp (armag, ARMAG, SARMAG) != 0 && strncmp (armag, ARMAGB, SARMAG) != 0) return 0; -#endif tdata_hold = bfd_ardata (abfd); @@ -1652,11 +1643,7 @@ _bfd_write_archive_contents (bfd *arch) if (bfd_seek (arch, (file_ptr) 0, SEEK_SET) != 0) return FALSE; -#ifdef GNU960 - wrote = bfd_bwrite (BFD_GNU960_ARMAG (arch), SARMAG, arch); -#else wrote = bfd_bwrite (ARMAG, SARMAG, arch); -#endif if (wrote != SARMAG) return FALSE; diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 0548b103ee0..1652a2ff8a9 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -5130,15 +5130,6 @@ coff_canonicalize_reloc (abfd, section, relptr, symbols) return section->reloc_count; } -#ifdef GNU960 -file_ptr -coff_sym_filepos (abfd) - bfd *abfd; -{ - return obj_sym_filepos (abfd); -} -#endif - #ifndef coff_reloc16_estimate #define coff_reloc16_estimate dummy_reloc16_estimate diff --git a/bfd/format.c b/bfd/format.c index 9d9ee86bac4..5b82996453c 100644 --- a/bfd/format.c +++ b/bfd/format.c @@ -245,16 +245,6 @@ bfd_check_format_matches (bfd *abfd, bfd_format format, char ***matching) matching_vector[match_count] = temp; match_count++; - -#ifdef GNU960 - /* Big- and little-endian b.out archives look the same, but it - doesn't matter: there is no difference in their headers, and - member file byte orders will (I hope) be handled appropriately - by bfd. Ditto for big and little coff archives. And the 4 - coff/b.out object formats are unambiguous. So accept the - first match we find. */ - break; -#endif } else if ((err = bfd_get_error ()) == bfd_error_wrong_object_format || err == bfd_error_file_ambiguously_recognized)