This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/59364] C++11 extern thread_local breaks linking: undefined reference to TLS init function
- From: "conradsand.arma at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 10 Dec 2013 06:45:39 +0000
- Subject: [Bug c++/59364] C++11 extern thread_local breaks linking: undefined reference to TLS init function
- Auto-submitted: auto-generated
- References: <bug-59364-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59364
--- Comment #2 from Conrad <conradsand.arma at gmail dot com> ---
I wouldn't call the method presented in the comments to bug #55800 as a
workaround.
Quote:
"at least adding .globl _ZTWN3xyz3blaE _ZTWN3xyz3blaE = __tls_init manually at
the end of the assembly seems to make the code do what it is supposed to"
Editing the assembly is not a workaround -- it's a one off hack.