bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/10911] ld -s -static breaks IRELATIVE relocations


From: hjl dot tools at gmail dot com
Subject: [Bug ld/10911] ld -s -static breaks IRELATIVE relocations
Date: 8 Nov 2009 23:03:00 -0000

------- Additional Comments From hjl dot tools at gmail dot com  2009-11-08 
23:03 -------
This patch should work:

diff --git a/bfd/elflink.c b/bfd/elflink.c
index cd016b7..0153411 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -8639,9 +8639,11 @@ elf_link_output_extsym (struct elf_link_hash_entry *h,
void *data)
     strip = FALSE;

   /* If we're stripping it, and it's not a dynamic symbol, there's
-     nothing else to do unless it is a forced local symbol.  */
+     nothing else to do unless it is a forced local symbol or a
+     STT_GNU_IFUNC symbol.  */
   if (strip
       && h->dynindx == -1
+      && h->type != STT_GNU_IFUNC
       && !h->forced_local)
     return TRUE;


I will submit one with a testcase.

-- 


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

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