aboutsummaryrefslogtreecommitdiff
path: root/bfd/ecoff.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-02-11 21:18:16 +0000
committerStan Shebs <shebs@codesourcery.com>1994-02-11 21:18:16 +0000
commit9a793780e5007e6037b14c88d9ba96a2c2d98dfe (patch)
treeb15080bc9736e63018d30d01af1656ce9d544d82 /bfd/ecoff.c
parent1158ee8b002771e405452fe34a5694e6adb3b841 (diff)
downloadgdb-9a793780e5007e6037b14c88d9ba96a2c2d98dfe.zip
gdb-9a793780e5007e6037b14c88d9ba96a2c2d98dfe.tar.gz
gdb-9a793780e5007e6037b14c88d9ba96a2c2d98dfe.tar.bz2
Fri Feb 11 13:10:42 1994 Stan Shebs (shebs@andros.cygnus.com)
* archive.c: Change all references to '\n' in archive magic to '\012', for greater portability. * ecoff.c (ecoff_write_armap): Ditto.
Diffstat (limited to 'bfd/ecoff.c')
-rw-r--r--bfd/ecoff.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index b00d8df..3ff6084 100644
--- a/bfd/ecoff.c
+++ b/bfd/ecoff.c
@@ -3142,7 +3142,7 @@ ecoff_write_armap (abfd, elength, map, orl_count, stridx)
sprintf (hdr.ar_size, "%-10d", (int) mapsize);
hdr.ar_fmag[0] = '`';
- hdr.ar_fmag[1] = '\n';
+ hdr.ar_fmag[1] = '\012';
/* Turn all null bytes in the header into spaces. */
for (i = 0; i < sizeof (struct ar_hdr); i++)
@@ -3331,7 +3331,12 @@ ecoff_bfd_link_hash_table_create (abfd)
struct ecoff_link_hash_table *ret;
ret = ((struct ecoff_link_hash_table *)
- bfd_xmalloc (sizeof (struct ecoff_link_hash_table)));
+ malloc (sizeof (struct ecoff_link_hash_table)));
+ if (!ret)
+ {
+ bfd_error = no_memory;
+ return NULL;
+ }
if (! _bfd_link_hash_table_init (&ret->root, abfd,
ecoff_link_hash_newfunc))
{