1
0
mirror of git://git.musl-libc.org/musl synced 2024-12-22 22:53:49 +00:00
musl/crt/x86_64/crti.s
Rich Felker a6d272127b align stack properly for calling global ctors/dtors on x86[_64]
failure to do so was causing crashes on x86_64 when ctors used SSE,
which was first observed when ctors called variadic functions due to
the SSE prologue code inserted into every variadic function.
2013-06-03 17:32:42 -04:00

10 lines
95 B
ArmAsm

.section .init
.global _init
_init:
push %rax
.section .fini
.global _fini
_fini:
push %rax