浏览代码

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.
Rich Felker 13 年之前
父节点
当前提交
ad70ba774f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/ldso/x86_64/dlsym.s

+ 1 - 1
src/ldso/x86_64/dlsym.s

@@ -2,5 +2,5 @@
 .global dlsym
 .global dlsym
 .type dlsym,@function
 .type dlsym,@function
 dlsym:
 dlsym:
-	mov (%rsp),%edx
+	mov (%rsp),%rdx
 	jmp __dlsym
 	jmp __dlsym