bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/10144] mips/ld: non-dynamic relocations refer to dynamic symbol


From: aurelien at aurel32 dot net
Subject: [Bug ld/10144] mips/ld: non-dynamic relocations refer to dynamic symbol
Date: 14 Sep 2010 23:01:30 -0000

------- Additional Comments From aurelien at aurel32 dot net  2010-09-14 23:01 
-------
Thanks for working on that. I have also spend some time trying to understand 
the problem. I have also written a patch by analysing the difference with other 
architecture, so I am not really sure it is correct:

--- a/elfxx-mips.c
+++ b/elfxx-mips.c
@@ -8341,6 +8339,11 @@ _bfd_mips_elf_adjust_dynamic_symbol (str
   if (h->def_regular)
     return TRUE;

+  /* If there are no references to this symbol that do not use the
+     GOT, we don't need to generate a copy reloc.  */
+  if (!h->non_got_ref)
+    return TRUE;
+
   /* There's also nothing more to do if we'll convert all relocations
      against this symbol into dynamic relocations.  */
   if (!hmips->has_static_relocs)

At least it fixes the issue.

-- 


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

------- 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]