diff options
Diffstat (limited to 'bfd/ecoff.c')
-rw-r--r-- | bfd/ecoff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/ecoff.c b/bfd/ecoff.c index f4f45a4..504d6b9 100644 --- a/bfd/ecoff.c +++ b/bfd/ecoff.c @@ -3999,7 +3999,7 @@ ecoff_reloc_link_order (bfd *output_bfd, size = bfd_get_reloc_size (rel.howto); buf = (bfd_byte *) bfd_zmalloc (size); - if (buf == NULL) + if (buf == NULL && size != 0) return FALSE; rstat = _bfd_relocate_contents (rel.howto, output_bfd, (bfd_vma) addend, buf); |