------- Comment #1 from pinskia at gcc dot gnu dot org 2009-09-20 22:01 ------- GCC outputs: movq my_asm_f...@gotpcrel(%rip), %rsi
Which looks correct but since my_asm_func is local to the object file only, the assembler/linker decides something different. If you do: static void my_asm_func(void); instead it works the way you want it to work. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41422