diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-03-18 17:58:48 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-03-18 17:58:48 +0000 |
commit | 939b216956668489c979bdc55cfaadc25e28e025 (patch) | |
tree | a9e585310729820497bcea5fe209063186ce5592 /bfd/xcofflink.c | |
parent | 724a4c0d4631905ea3196cf19dbd89f811f66d59 (diff) | |
download | gdb-939b216956668489c979bdc55cfaadc25e28e025.zip gdb-939b216956668489c979bdc55cfaadc25e28e025.tar.gz gdb-939b216956668489c979bdc55cfaadc25e28e025.tar.bz2 |
* xcofflink.c (_bfd_xcoff_bfd_final_link): Call bfd_malloc rather
than malloc.
Diffstat (limited to 'bfd/xcofflink.c')
-rw-r--r-- | bfd/xcofflink.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c index 92c7056..0a5c5fc 100644 --- a/bfd/xcofflink.c +++ b/bfd/xcofflink.c @@ -4185,12 +4185,9 @@ _bfd_xcoff_bfd_final_link (abfd, info) /* Now that we have written out all the global symbols, we know the symbol indices to use for relocs against them, and we can finally write out the relocs. */ - external_relocs = (bfd_byte *) malloc (max_output_reloc_count * relsz); + external_relocs = (bfd_byte *) bfd_malloc (max_output_reloc_count * relsz); if (external_relocs == NULL && max_output_reloc_count != 0) - { - bfd_set_error (bfd_error_no_memory); - goto error_return; - } + goto error_return; for (o = abfd->sections; o != NULL; o = o->next) { |