diff options
author | Szabolcs Nagy <nsz@port70.net> | 2015-03-10 21:18:41 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-03-11 20:12:35 -0400 |
commit | 01ef3dd9c5fa7a56aa370f244dd08e05c73010f5 (patch) | |
tree | 8fe90d994a43124ff309d3af4c185e28b2b1d6ff /src/ldso/aarch64/start.s | |
parent | f4e4632abfa8297db1485e132bb15b9ef6c32a1b (diff) | |
download | musl-01ef3dd9c5fa7a56aa370f244dd08e05c73010f5.tar.gz musl-01ef3dd9c5fa7a56aa370f244dd08e05c73010f5.tar.xz musl-01ef3dd9c5fa7a56aa370f244dd08e05c73010f5.zip |
add aarch64 port
This adds complete aarch64 target support including bigendian subarch. Some of the long double math functions are known to be broken otherwise interfaces should be fully functional, but at this point consider this port experimental. Initial work on this port was done by Sireesh Tripurari and Kevin Bortis.
Diffstat (limited to 'src/ldso/aarch64/start.s')
-rw-r--r-- | src/ldso/aarch64/start.s | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ldso/aarch64/start.s b/src/ldso/aarch64/start.s new file mode 100644 index 00000000..41d1d1e2 --- /dev/null +++ b/src/ldso/aarch64/start.s @@ -0,0 +1,18 @@ +.global _dlstart +_dlstart: + ldr x0,[sp] + add x1,sp,#8 + bl __dynlink + mov x1,sp + ldr x2,[x1],#8 +1: sub x2,x2,1 + ldr x3,[x1],#8 + cmn x3,#1 + b.eq 1b + add x2,x2,1 + str x3,[x1,#-8]! + str x2,[x1,#-8]! + mov sp,x1 + mov x1,x0 + mov x0,#0 + blr x1 |