aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-04-25 04:22:55 +0000
committerJohn Gilmore <gnu@cygnus>1991-04-25 04:22:55 +0000
commitd6a554ae83d74bcdfbf7b41c262eae4043194df6 (patch)
tree7a611b2aa59d4eee0e40d4cd543eadfab68ece78 /bfd/archive.c
parentbad3df6720febc5e2e5e4a2af6acbb3bdd66b048 (diff)
downloadgdb-d6a554ae83d74bcdfbf7b41c262eae4043194df6.zip
gdb-d6a554ae83d74bcdfbf7b41c262eae4043194df6.tar.gz
gdb-d6a554ae83d74bcdfbf7b41c262eae4043194df6.tar.bz2
Minor changes to accomodate merging of three include file directories.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r--bfd/archive.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/archive.c b/bfd/archive.c
index 530b0aa..1313540 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -417,6 +417,8 @@ bfd_slurp_bsd_armap (abfd)
/* The archive has at least 16 bytes in it */
bfd_seek (abfd, -16L, SEEK_CUR);
+ /* This should be using RANLIBMAG, but at least it can be grepped for
+ in this comment. */
if (strncmp (nextname, "__.SYMDEF ", 16)) {
bfd_has_map (abfd) = false;
return true;
@@ -1107,7 +1109,7 @@ bsd_write_armap (arch, elength, map, orl_count, stridx)
stat (arch->filename, &statbuf);
memset ((char *)(&hdr), 0, sizeof (struct ar_hdr));
- sprintf (hdr.ar_name, "__.SYMDEF");
+ sprintf (hdr.ar_name, RANLIBMAG);
sprintf (hdr.ar_size, "%-10d", (int) mapsize);
sprintf (hdr.ar_date, "%ld", statbuf.st_mtime);
hdr.ar_fmag[0] = '`'; hdr.ar_fmag[1] = '\n';