glapi: add @GOTPCREL relocation type
[mesa.git] / src / mapi / glapi / glapi_x86-64.S
index 1f4463d31c3a89bd11054df813e330f184e247d6..c42646f0165d116275d440f75f3776d0fde153fc 100644 (file)
@@ -73,7 +73,8 @@ _x86_64_get_dispatch:
 
        .p2align        4,,15
 _x86_64_get_dispatch:
-       movq    _gl_DispatchTSD@GOTPCREL(%rip), %rdi
+       movq    _gl_DispatchTSD@GOTPCREL(%rip), %rax
+       movl    (%rax), %edi
        jmp     pthread_getspecific@PLT
 
 #elif defined(THREADS)