aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-08-06 16:39:44 +0000
committerIan Lance Taylor <ian@airs.com>1993-08-06 16:39:44 +0000
commit8c11363a29e068373b3511a6c989a53b4dcb2133 (patch)
treebb1509604f16175736e059c3030ea1aa4bff4581 /bfd
parent924211221397ad3f92e378ea2cee3a03194d0994 (diff)
downloadgdb-8c11363a29e068373b3511a6c989a53b4dcb2133.zip
gdb-8c11363a29e068373b3511a6c989a53b4dcb2133.tar.gz
gdb-8c11363a29e068373b3511a6c989a53b4dcb2133.tar.bz2
* ecoff.c (ecoff_slurp_armap): From Arne Henrik Juul
<arnej@kari.fm.unit.no>: Handle a COFF style armap.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/ecoff.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b76ceba..e891a5d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+Fri Aug 6 12:28:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
+
+ * ecoff.c (ecoff_slurp_armap): From Arne Henrik Juul
+ <arnej@kari.fm.unit.no>: Handle a COFF style armap.
+
Fri Aug 6 09:59:45 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* hpux-core.c: Cast return value from bfd_zalloc.
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index f6450f5..685ab4e 100644
--- a/bfd/ecoff.c
+++ b/bfd/ecoff.c
@@ -3947,6 +3947,14 @@ ecoff_slurp_armap (abfd)
bfd_seek (abfd, (file_ptr) -16, SEEK_CUR);
+ /* Irix 4.0.5F apparently can use either an ECOFF armap or a
+ standard COFF armap. We could move the ECOFF armap stuff into
+ bfd_slurp_armap, but that seems inappropriate since no other
+ target uses this format. Instead, we check directly for a COFF
+ armap. */
+ if (strncmp (nextname, "/ ", 16) == 0)
+ return bfd_slurp_armap (abfd);
+
/* See if the first element is an armap. */
if (strncmp (nextname, ecoff_backend (abfd)->armap_start,
ARMAP_START_LENGTH) != 0