aboutsummaryrefslogtreecommitdiff
path: root/bfd/syms.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/syms.c')
-rw-r--r--bfd/syms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/syms.c b/bfd/syms.c
index b334c11..03c41a5 100644
--- a/bfd/syms.c
+++ b/bfd/syms.c
@@ -715,6 +715,8 @@ _bfd_generic_read_minisymbols (abfd, dynamic, minisymsp, sizep)
storage = bfd_get_symtab_upper_bound (abfd);
if (storage < 0)
goto error_return;
+ if (storage == 0)
+ return 0;
syms = (asymbol **) bfd_malloc ((bfd_size_type) storage);
if (syms == NULL)