This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/78294] [5/6/7 Regression] -fsanitize=thread broken by ignoring __attribute__((tls_model("initial-exec")))
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 Nov 2016 07:34:55 +0000
- Subject: [Bug middle-end/78294] [5/6/7 Regression] -fsanitize=thread broken by ignoring __attribute__((tls_model("initial-exec")))
- Auto-submitted: auto-generated
- References: <bug-78294-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78294
--- Comment #19 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
As for the ld.bfd optimization that makes linking with ld.bfd work, that is an
optimization if there are any IE relocations then other GD/LD relocations are
turned into them too, because once you have any IE relocations, all of the TLS
has to be static anyway, so the TLS GD/LD calls are just a waste of time.