[Bug middle-end/34475] TLS and PIE don't mix on x86-64

2007-12-15 Thread jakub 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 ins

[Bug middle-end/34475] TLS and PIE don't mix on x86-64

2007-12-15 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2007-12-15 13:40 --- --- gcc/varasm.c.jj101 2007-12-06 11:53:42.0 +0100 +++ gcc/varasm.c2007-12-15 14:33:36.0 +0100 @@ -5519,7 +5519,7 @@ decl_default_tls_model (const_tree decl) is_local = targetm.binds_local_p