http://sourceware.org/bugzilla/show_bug.cgi?id=13962
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-05-13 23:40:27 UTC --- This works for me: diff --git a/bfd/elflink.c b/bfd/elflink.c index 03f07a9..604c984 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -3692,6 +3692,8 @@ error_free_dyn: hdr = &elf_tdata (abfd)->dynsymtab_hdr; symcount = hdr->sh_size / bed->s->sizeof_sym; + if (symcount == 0) + return TRUE; /* The sh_info field of the symtab header tells us where the external symbols start. We don't care about the local symbols at -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils