https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99530
--- Comment #6 from Thiago Macieira <thiago at kde dot org> --- (In reply to H.J. Lu from comment #3) > Created attachment 50366 [details] > A patch > > I am testing this. This has now changed to: $ ~/dev/gcc/bin/gcc -fPIC -fno-plt -S -o - -O2 test.c | grep call call f@GOTPCREL(%rip) call *f@GOTPCREL(%rip) The * is missing for indirect calls in AT&T syntax. Intel syntax looks correct: $ ~/dev/gcc/bin/gcc -masm=intel -fPIC -fno-plt -S -o - -O2 test.c | grep call call [QWORD PTR f@GOTPCREL[rip]] call [QWORD PTR f@GOTPCREL[rip]]