This website requires JavaScript.
Explore
Help
Sign In
RepoMirrors
/
musl
Watch
1
Star
0
Fork
0
You've already forked musl
mirror of
git://git.musl-libc.org/musl
synced
2024-12-25 08:02:28 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
79a5e73e51
musl
/
crt
/
arm
/
crti.s
10 lines
95 B
ArmAsm
Raw
Normal View
History
Unescape
Escape
add support for init/finit (constructors and destructors) 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.
2012-02-06 19:39:09 +00:00
.section
.init
.global
_init
_init
:
fix arm crti/crtn code 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).
2012-06-25 20:06:09 +00:00
push
{
l
r
}
add support for init/finit (constructors and destructors) 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.
2012-02-06 19:39:09 +00:00
.section
.fini
.global
_fini
_fini
:
fix arm crti/crtn code 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).
2012-06-25 20:06:09 +00:00
push
{
l
r
}
Reference in New Issue
Copy Permalink