Revert "glapi: adding missing @GOTPCREL qualifer in glapi_x86-64.S"
authorBrian Paul <brianp@vmware.com>
Tue, 25 Jan 2011 19:12:34 +0000 (12:12 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 25 Jan 2011 19:12:34 +0000 (12:12 -0700)
This reverts commit 731ec60da3ccb92f5bfb4d6f1bc3c8e712751376.

This change causes crashes in the x86-64 dispatch code.

src/mapi/glapi/gen/gl_x86-64_asm.py
src/mapi/glapi/glapi_x86-64.S

index 2f65fae43fbe5aa0392d75089ed2da9613dc2443..2fa140dc308c3de7b6517226db6c9be4bfad806e 100644 (file)
@@ -166,7 +166,7 @@ class PrintGenericStubs(gl_XML.gl_print_base):
                print ''
                print '\t.p2align\t4,,15'
                print '_x86_64_get_dispatch:'
-               print '\tmovq\t_gl_DispatchTSD@GOTPCREL(%rip), %rdi'
+               print '\tmovq\t_gl_DispatchTSD(%rip), %rdi'
                print '\tjmp\tpthread_getspecific@PLT'
                print ''
                print '#elif defined(THREADS)'
index 1f4463d31c3a89bd11054df813e330f184e247d6..469fac31ae6be26a19da3c7ab28f4d9bdeab6c16 100644 (file)
@@ -73,7 +73,7 @@ _x86_64_get_dispatch:
 
        .p2align        4,,15
 _x86_64_get_dispatch:
-       movq    _gl_DispatchTSD@GOTPCREL(%rip), %rdi
+       movq    _gl_DispatchTSD(%rip), %rdi
        jmp     pthread_getspecific@PLT
 
 #elif defined(THREADS)