https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116043
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> --- [hjl@gnu-tgl-3 pr116043]$ cat foo.s .text leaq __libc_tsd_CTYPE_B@gottpoff(%rip), %rax vmovq (%rax), %xmm0 [hjl@gnu-tgl-3 pr116043]$ gcc -c foo.s [hjl@gnu-tgl-3 pr116043]$ ld foo.o ld: warning: cannot find entry symbol _start; defaulting to 0000000000401000 ld: foo.o:(.text+0x3): undefined reference to `__libc_tsd_CTYPE_B' ld: foo.o: TLS transition from R_X86_64_GOTTPOFF to R_X86_64_TPOFF32 against `__libc_tsd_CTYPE_B' at 0x3 in section `.text' failed ld: final link failed: bad value [hjl@gnu-tgl-3 pr116043]$