https://sourceware.org/bugzilla/show_bug.cgi?id=20805
Cary Coutant <ccoutant at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2016-11-15
Ever confirmed|0 |1
--- Comment #4 from Cary Coutant <ccoutant at gmail dot com> ---
Your testcase is not using the initial-exec model:
e4a: 66 48 8d 3d 00 00 00 data16 lea 0x0(%rip),%rdi # e52
<_ZN6__tsan10InitializeEPNS_11ThreadStateE+0x32>
e51: 00
e4e: R_X86_64_TLSGD
_ZN6__tsan22cur_thread_placeholderE-0x4
e52: 66 66 48 e8 00 00 00 data16 data16 callq e5a
<_ZN6__tsan10InitializeEPNS_11ThreadStateE+0x3a>
e59: 00
e56: R_X86_64_PLT32 __tls_get_addr-0x4
Gold does not optimize any TLS references when building a shared library.
In this case, where cur_thread_placeholder has hidden visibility, I think we
should be able to optimize it down to IE, as ld.bfd does.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils