http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46972
Mikael Pettersson <mikpe at it dot uu.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpe at it dot uu.se --- Comment #2 from Mikael Pettersson <mikpe at it dot uu.se> 2010-12-16 09:14:33 UTC --- The test case works for me on armv5tel-linux-gnueabi with gcc 4.4, 4.5, and 4.6. Comparing your assemby code with mine I see that your calls __emutls_get_address while mine calls __aeabi_read_tp, and the section allocation for .LANCHOR0 is different (your is in .bss, mine is in .section .tdata,"awT",%progbits). So I suspect the issue is dependent on emutls or uclibc.