]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 7 Sep 2005 05:01:16 +0000 (05:01 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 7 Sep 2005 05:01:16 +0000 (05:01 +0000)
PR ld/1301
* elflink.c (_bfd_elf_merge_symbol): Don't check undefined
symbol introduced by "ld -u" for TLS.

bfd/ChangeLog
bfd/elflink.c

index 43668d553ef026ddfb2d600d29419b14b49ea40c..4f4ae5a25704f428aa5439985440f603c06cbeee 100644 (file)
@@ -1,3 +1,9 @@
+2005-09-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/1301
+       * elflink.c (_bfd_elf_merge_symbol): Don't check undefined
+       symbol introduced by "ld -u" for TLS.
+
 2005-09-02  Paul Brook  <paul@codesourcery.com>
 
        * libbdf.h: Regenerate.
index 4414f0df61b4a2ddbe4cbc7a60f076b6d1e0135a..b74851698c7ac55460c33766240d36ebf3034629 100644 (file)
@@ -902,9 +902,11 @@ _bfd_elf_merge_symbol (bfd *abfd,
   else
     olddef = TRUE;
 
-  /* Check TLS symbol.  */
+  /* Check TLS symbol.  We don't check undefined symbol introduced by
+     "ld -u".  */
   if ((ELF_ST_TYPE (sym->st_info) == STT_TLS || h->type == STT_TLS)
-      && ELF_ST_TYPE (sym->st_info) != h->type)
+      && ELF_ST_TYPE (sym->st_info) != h->type
+      && oldbfd != NULL)
     {
       bfd *ntbfd, *tbfd;
       bfd_boolean ntdef, tdef;