mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-13 00:34:11 +03:00
![Rich Felker](/assets/img/avatar_default.png)
this is mainly in hopes of supporting c++ (not yet possible for other reasons) but will also help applications/libraries which use (and more often, abuse) the gcc __attribute__((__constructor__)) feature in "C" code. x86_64 and arm versions of the new startup asm are untested and may have minor problems.
10 lines
93 B
ArmAsm
10 lines
93 B
ArmAsm
.section .init
|
|
tst lr,#1
|
|
moveq pc,lr
|
|
bx lr
|
|
|
|
.section .fini
|
|
tst lr,#1
|
|
moveq pc,lr
|
|
bx lr
|