about summary refs log tree commit diff
path: root/crt
diff options
context:
space:
mode:
authormojyack <mojyack@gmail.com>2024-05-12 12:13:06 -0400
committerRich Felker <dalias@aerifal.cx>2024-05-12 12:17:13 -0400
commitcbf59dd662cea8786c2f3a5ea21f8da64f002b30 (patch)
treedb4a523a9a81a44bf84be1bdc983bf4ba71650ef /crt
parent84015cee177e835db5e65bd34b60635f2a5a5056 (diff)
downloadmusl-cbf59dd662cea8786c2f3a5ea21f8da64f002b30.tar.gz
musl-cbf59dd662cea8786c2f3a5ea21f8da64f002b30.tar.xz
musl-cbf59dd662cea8786c2f3a5ea21f8da64f002b30.zip
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.
Diffstat (limited to 'crt')
-rw-r--r--crt/aarch64/crti.s2
1 files changed, 2 insertions, 0 deletions
diff --git a/crt/aarch64/crti.s b/crt/aarch64/crti.s
index 775df0ac..3776fa64 100644
--- a/crt/aarch64/crti.s
+++ b/crt/aarch64/crti.s
@@ -1,6 +1,7 @@
 .section .init
 .global _init
 .type _init,%function
+.align 2
 _init:
 	stp x29,x30,[sp,-16]!
 	mov x29,sp
@@ -8,6 +9,7 @@ _init:
 .section .fini
 .global _fini
 .type _fini,%function
+.align 2
 _fini:
 	stp x29,x30,[sp,-16]!
 	mov x29,sp