mirror of
git://git.musl-libc.org/musl
synced 2025-01-18 12:50:58 +00:00
dynamic linker entry point for arm
mildly tested, seems to work
This commit is contained in:
parent
74cc7c69f9
commit
fcaf706569
14
src/ldso/arm/start.s
Normal file
14
src/ldso/arm/start.s
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user