]> Git Repo - binutils.git/blobdiff - bfd/ecoff.c
Fallout from recent bfd_reloc_outofrange changes
[binutils.git] / bfd / ecoff.c
index f4f45a4a82cd1895cf173ada49fff1f3630ed1cf..504d6b987f4637cbf290f827914f52d1b31d014e 100644 (file)
@@ -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);
This page took 0.024354 seconds and 4 git commands to generate.