mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
aarch64 crti.o: fix alignment of _init/_fini
without explicit alignment directives, whether they end up at the necessary alignment depends on linker/linking conditions. initially reported as mold issue 1255.
This commit is contained in:
parent
84015cee17
commit
cbf59dd662
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
.section .init
|
.section .init
|
||||||
.global _init
|
.global _init
|
||||||
.type _init,%function
|
.type _init,%function
|
||||||
|
.align 2
|
||||||
_init:
|
_init:
|
||||||
stp x29,x30,[sp,-16]!
|
stp x29,x30,[sp,-16]!
|
||||||
mov x29,sp
|
mov x29,sp
|
||||||
|
@ -8,6 +9,7 @@ _init:
|
||||||
.section .fini
|
.section .fini
|
||||||
.global _fini
|
.global _fini
|
||||||
.type _fini,%function
|
.type _fini,%function
|
||||||
|
.align 2
|
||||||
_fini:
|
_fini:
|
||||||
stp x29,x30,[sp,-16]!
|
stp x29,x30,[sp,-16]!
|
||||||
mov x29,sp
|
mov x29,sp
|
||||||
|
|
Loading…
Add table
Reference in a new issue