https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78311
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Requires -fpie to reproduce. Your testcase is compiled to f: .LFB0: .cfi_startproc pushl %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 call __x86.get_pc_thunk.ax addl $_GLOBAL_OFFSET_TABLE_, %eax movl A@GOT(%eax), %eax #APP # 4 "t.c" 1 movd (%eax) (, %edx, 4), %mm0 # 0 "" 2 #NO_APP and appearantly your GCC distributor chose to enable -fpie by default.