mirror of
git://git.musl-libc.org/musl
synced 2024-12-23 15:12:32 +00:00
32e7bd78ae
since .init and .fini are not .text, the toolchain does not seem to align them for code by default. this yields random breakage depending on the object sizes the linker is dealing with.
18 lines
205 B
ArmAsm
18 lines
205 B
ArmAsm
.set noreorder
|
|
|
|
.section .init
|
|
.global _init
|
|
.align 2
|
|
_init:
|
|
subu $sp,$sp,32
|
|
sw $gp,24($sp)
|
|
sw $ra,28($sp)
|
|
|
|
.section .fini
|
|
.global _fini
|
|
.align 2
|
|
_fini:
|
|
subu $sp,$sp,32
|
|
sw $gp,24($sp)
|
|
sw $ra,28($sp)
|