bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/11138] ld: internal error when using -lstdc++ and version script


From: hjl dot tools at gmail dot com
Subject: [Bug ld/11138] ld: internal error when using -lstdc++ and version script before object files
Date: 7 Jan 2010 15:56:05 -0000

------- Additional Comments From hjl dot tools at gmail dot com  2010-01-07 
15:56 -------
This should fix it. I will submit a proper patch.

--
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 297d46b..b587ef6 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -8492,10 +8492,15 @@ elf_link_check_versioned_symbol (struct bfd_link_info *i
nfo,
 
          _bfd_elf_swap_versym_in (input, ever, &iver);
 
-         if ((iver.vs_vers & VERSYM_HIDDEN) == 0)
+         if ((iver.vs_vers & VERSYM_HIDDEN) == 0
+             && !(h->def_regular
+                  && h->forced_local
+                  && !h->dynamic_def))
            {
              /* If we have a non-hidden versioned sym, then it should
-                have provided a definition for the undefined sym.  */
+                have provided a definition for the undefined sym unless
+                it is defined in a non-shared object and forced local.
+              */
              abort ();
            }
 
--

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11138

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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