mirror of
git://git.musl-libc.org/musl
synced 2024-12-26 16:52:11 +00:00
ad5d8a2bf3
for fdpic support is is essential that the got pointer be saved at a known, ABI-dictated offset from the frame pointer, since there is no way to recover it once it's lost.
22 lines
299 B
ArmAsm
22 lines
299 B
ArmAsm
.section .init
|
|
.global _init
|
|
.type _init, @function
|
|
_init:
|
|
add #-4, r15
|
|
mov.l r12, @-r15
|
|
mov.l r14, @-r15
|
|
sts.l pr, @-r15
|
|
mov r15, r14
|
|
nop
|
|
|
|
.section .fini
|
|
.global _fini
|
|
.type _fini, @function
|
|
_fini:
|
|
add #-4, r15
|
|
mov.l r12, @-r15
|
|
mov.l r14, @-r15
|
|
sts.l pr, @-r15
|
|
mov r15, r14
|
|
nop
|