------- 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