about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-09-03 16:10:30 -0400
committerRich Felker <dalias@aerifal.cx>2011-09-03 16:10:30 -0400
commitad70ba774fe4fda8379b59b2b353cbd451d693cc (patch)
tree01008e5e335aaf535b60813ce0ece976b59368fa
parentb158b32a44d56ef20407d4285b58180447ffff1f (diff)
downloadmusl-ad70ba774fe4fda8379b59b2b353cbd451d693cc.tar.gz
musl-ad70ba774fe4fda8379b59b2b353cbd451d693cc.tar.xz
musl-ad70ba774fe4fda8379b59b2b353cbd451d693cc.zip
fix RTLD_NEXT on x86_64
the return address was being truncated to 32 bits, preventing the
dlsym code from determining which module contains the calling code.
-rw-r--r--src/ldso/x86_64/dlsym.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldso/x86_64/dlsym.s b/src/ldso/x86_64/dlsym.s
index 4261145c..3c16616a 100644
--- a/src/ldso/x86_64/dlsym.s
+++ b/src/ldso/x86_64/dlsym.s
@@ -2,5 +2,5 @@
 .global dlsym
 .type dlsym,@function
 dlsym:
-	mov (%rsp),%edx
+	mov (%rsp),%rdx
 	jmp __dlsym