From ad70ba774fe4fda8379b59b2b353cbd451d693cc Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 3 Sep 2011 16:10:30 -0400 Subject: [PATCH] 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. --- src/ldso/x86_64/dlsym.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1