summaryrefslogtreecommitdiff
path: root/src/ldso
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-10-01 01:33:31 -0400
committerRich Felker <dalias@aerifal.cx>2011-10-01 01:33:31 -0400
commitfcaf7065698bce12a444803587421ae88446f6c0 (patch)
tree84750fc7a6057ff30e68dd91863872f064fbeff0 /src/ldso
parent74cc7c69f951ad90d1b56b3dde3fddb3fa9516fe (diff)
downloadmusl-fcaf7065698bce12a444803587421ae88446f6c0.tar.gz
musl-fcaf7065698bce12a444803587421ae88446f6c0.tar.bz2
musl-fcaf7065698bce12a444803587421ae88446f6c0.tar.xz
musl-fcaf7065698bce12a444803587421ae88446f6c0.zip
dynamic linker entry point for arm
mildly tested, seems to work
Diffstat (limited to 'src/ldso')
-rw-r--r--src/ldso/arm/start.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ldso/arm/start.s b/src/ldso/arm/start.s
new file mode 100644
index 00000000..359711e1
--- /dev/null
+++ b/src/ldso/arm/start.s
@@ -0,0 +1,14 @@
+.text
+.global _start
+_start:
+ ldr r0,[sp]
+ add r1,sp,#4
+ ldr r2,2f
+ add r2,pc,r2
+1: bl __dynlink
+ mov r1,r0
+ mov r0,#0
+ tst r1,#1
+ moveq pc,r1
+ bx r1
+2: .word _GLOBAL_OFFSET_TABLE_ - 1b - 4