glapi: add @GOTPCREL relocation type
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=33440
This replaces commit 731ec60da3
NOTE: This is a candidate for the 7.9 and 7.10 branches
Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:

committed by
Brian Paul

parent
6dc0a0e71f
commit
cfb9aae3ec
@@ -166,7 +166,8 @@ class PrintGenericStubs(gl_XML.gl_print_base):
|
|||||||
print ''
|
print ''
|
||||||
print '\t.p2align\t4,,15'
|
print '\t.p2align\t4,,15'
|
||||||
print '_x86_64_get_dispatch:'
|
print '_x86_64_get_dispatch:'
|
||||||
print '\tmovq\t_gl_DispatchTSD(%rip), %rdi'
|
print '\tmovq\t_gl_DispatchTSD@GOTPCREL(%rip), %rax'
|
||||||
|
print '\tmovl\t(%rax), %edi'
|
||||||
print '\tjmp\tpthread_getspecific@PLT'
|
print '\tjmp\tpthread_getspecific@PLT'
|
||||||
print ''
|
print ''
|
||||||
print '#elif defined(THREADS)'
|
print '#elif defined(THREADS)'
|
||||||
|
@@ -73,7 +73,8 @@ _x86_64_get_dispatch:
|
|||||||
|
|
||||||
.p2align 4,,15
|
.p2align 4,,15
|
||||||
_x86_64_get_dispatch:
|
_x86_64_get_dispatch:
|
||||||
movq _gl_DispatchTSD(%rip), %rdi
|
movq _gl_DispatchTSD@GOTPCREL(%rip), %rax
|
||||||
|
movl (%rax), %edi
|
||||||
jmp pthread_getspecific@PLT
|
jmp pthread_getspecific@PLT
|
||||||
|
|
||||||
#elif defined(THREADS)
|
#elif defined(THREADS)
|
||||||
|
Reference in New Issue
Block a user