summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-27 12:34:57 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-27 12:34:57 +0900
commitcb09d1ef60dae3b3c44f1370fd2f726c7044bc17 (patch)
tree1755bb502db6b7720190be504d1c9b466d74e73f
parent38d779a3e68bb0ed78135c868e5bd435e1d91fb5 (diff)
mesa: Use the appropriate relocation.
I don't fully understand this, but this matches the assembly code gcc generates glapi.c and fixes following error on x86-64 with assembly: relocation R_X86_64_PC32 against `_gl_DispatchTSD' can not be used when making a shared object
-rw-r--r--src/mesa/x86-64/glapi_x86-64.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/x86-64/glapi_x86-64.S b/src/mesa/x86-64/glapi_x86-64.S
index cb34061b36..f8337ff93e 100644
--- a/src/mesa/x86-64/glapi_x86-64.S
+++ b/src/mesa/x86-64/glapi_x86-64.S
@@ -73,7 +73,7 @@ _x86_64_get_dispatch:
.p2align 4,,15
_x86_64_get_dispatch:
- movq _gl_DispatchTSD(%rip), %rdi
+ movq _gl_DispatchTSD@GOTPCREL(%rip), %rdi
jmp pthread_getspecific@PLT
#elif defined(THREADS)