about summary refs log tree commit diff
path: root/src/ldso/x86_64/dlsym.s
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-08-16 00:42:13 -0400
committerRich Felker <dalias@aerifal.cx>2011-08-16 00:42:13 -0400
commit623753ad64a3625b010c10c00c45262d2eec2495 (patch)
tree822d9f37067f4bbd51f83116696cfb835438b138 /src/ldso/x86_64/dlsym.s
parent2719cc86285d85df42f13ba0ae5b07b262c39686 (diff)
downloadmusl-623753ad64a3625b010c10c00c45262d2eec2495.tar.gz
musl-623753ad64a3625b010c10c00c45262d2eec2495.tar.xz
musl-623753ad64a3625b010c10c00c45262d2eec2495.zip
RTLD_NEXT support
the asm wrapper is needed to get the return address without
compiler-specific extensions.
Diffstat (limited to 'src/ldso/x86_64/dlsym.s')
-rw-r--r--src/ldso/x86_64/dlsym.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ldso/x86_64/dlsym.s b/src/ldso/x86_64/dlsym.s
new file mode 100644
index 00000000..4261145c
--- /dev/null
+++ b/src/ldso/x86_64/dlsym.s
@@ -0,0 +1,6 @@
+.text
+.global dlsym
+.type dlsym,@function
+dlsym:
+	mov (%rsp),%edx
+	jmp __dlsym