summaryrefslogtreecommitdiff
path: root/src/ldso/powerpc64
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2016-04-30 19:18:17 -0500
committerRich Felker <dalias@aerifal.cx>2016-05-08 22:57:40 -0400
commitc0ede9e4046a0882d83ae4b45c7dfac86fb7c15d (patch)
tree02956e3cc93a50bcc9c946fbc2bbffb883e72f2f /src/ldso/powerpc64
parent6bc7d9c411c3a32cfa9d239b73fffb2ba66dd9ff (diff)
downloadmusl-c0ede9e4046a0882d83ae4b45c7dfac86fb7c15d.tar.gz
musl-c0ede9e4046a0882d83ae4b45c7dfac86fb7c15d.tar.bz2
musl-c0ede9e4046a0882d83ae4b45c7dfac86fb7c15d.tar.xz
musl-c0ede9e4046a0882d83ae4b45c7dfac86fb7c15d.zip
add powerpc64 port
Diffstat (limited to 'src/ldso/powerpc64')
-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