mirror of
https://github.com/fluencelabs/musl
synced 2025-04-24 23:02:14 +00:00
lr must be saved because init/fini-section code from the compiler clobbers it. this was not a problem when i tested without gcc's crtbegin/crtend files present, but with them, musl on arm fails to work (infinite loop in _init).
10 lines
95 B
ArmAsm
10 lines
95 B
ArmAsm
.section .init
|
|
.global _init
|
|
_init:
|
|
push {lr}
|
|
|
|
.section .fini
|
|
.global _fini
|
|
_fini:
|
|
push {lr}
|