This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/34475] TLS and PIE don't mix on x86-64
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2007 14:59:38 -0000
- Subject: [Bug middle-end/34475] TLS and PIE don't mix on x86-64
- References: <bug-34475-700@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jakub at gcc dot gnu dot org 2007-12-15 14:59 -------
Actually, thinking about it again, this might be a linker bug instead.
Because while code/data in PIEs is relocatable, the relative addresses of
TLS vars within TLS block should be constant, so ld should be able to insert
that (constant) offset into the instructions without needing a dynamic
relocation.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34475