summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/ldso/powerpc64/dlsym.s
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/ldso/powerpc64/dlsym.s')
-rw-r--r--libc-top-half/musl/src/ldso/powerpc64/dlsym.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/ldso/powerpc64/dlsym.s b/libc-top-half/musl/src/ldso/powerpc64/dlsym.s
new file mode 100644
index 0000000..a14715f
--- /dev/null
+++ b/libc-top-half/musl/src/ldso/powerpc64/dlsym.s
@@ -0,0 +1,11 @@
+ .text
+ .global dlsym
+ .hidden __dlsym
+ .type dlsym,@function
+dlsym:
+ addis 2, 12, .TOC.-dlsym@ha
+ addi 2, 2, .TOC.-dlsym@l
+ .localentry dlsym,.-dlsym
+ mflr 5 # The return address is arg3.
+ b __dlsym
+ .size dlsym, .-dlsym