bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/22064] x86_64-linux fails pr19579 test


From: hjl.tools at gmail dot com
Subject: [Bug ld/22064] x86_64-linux fails pr19579 test
Date: Sat, 02 Sep 2017 00:59:40 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22064

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
I am testing this:


diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 63aff4630f..26ab715daf 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -5330,7 +5330,7 @@ elf_x86_64_finish_dynamic_symbol (bfd *output_bfd,
       else if (bfd_link_pic (info)
          && SYMBOL_REFERENCES_LOCAL (info, h))
   {
-    if (!h->def_regular)
+    if (!(h->def_regular || ELF_COMMON_DEF_P (h)))
       return FALSE;
     BFD_ASSERT((h->got.offset & 1) != 0);
     rela.r_info = htab->r_info (0, R_X86_64_RELATIVE);

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