bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/13962] Misleading error message when linking a library wit


From: hjl.tools at gmail dot com
Subject: [Bug binutils/13962] Misleading error message when linking a library with an empty library
Date: Sun, 13 May 2012 23:40:27 +0000

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]