fix RTLD_NEXT on x86_64
authorRich Felker <dalias@aerifal.cx>
Sat, 3 Sep 2011 20:10:30 +0000 (16:10 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 3 Sep 2011 20:10:30 +0000 (16:10 -0400)
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

index 4261145..3c16616 100644 (file)
@@ -2,5 +2,5 @@
 .global dlsym
 .type dlsym,@function
 dlsym:
 .global dlsym
 .type dlsym,@function
 dlsym:
-       mov (%rsp),%edx
+       mov (%rsp),%rdx
        jmp __dlsym
        jmp __dlsym