summaryrefslogtreecommitdiff
path: root/src/ldso/powerpc64/dlsym.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldso/powerpc64/dlsym.s')
-rw-r--r--src/ldso/powerpc64/dlsym.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ldso/powerpc64/dlsym.s b/src/ldso/powerpc64/dlsym.s
new file mode 100644
index 00000000..7eb691d9
--- /dev/null
+++ b/src/ldso/powerpc64/dlsym.s
@@ -0,0 +1,12 @@
+ .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
+ .end dlsym
+ .size dlsym, .-dlsym