|
|
Message-Id: <20241010205046.2087319-1-alex@alexrp.com>
Date: Thu, 10 Oct 2024 22:50:46 +0200
From: Alex Rønne Petersen <alex@...xrp.com>
To: musl@...ts.openwall.com
Cc: Alex Rønne Petersen <alex@...xrp.com>
Subject: [PATCH] arm: Fix _init/_fini alignment in crti.o.
This is just cbf59dd6 applied to arm. It manifested when compiling for thumb2
with zig cc (clang) + lld at -O1 or above, but not at -O0.
---
crt/arm/crti.s | 2 ++
1 file changed, 2 insertions(+)
diff --git a/crt/arm/crti.s b/crt/arm/crti.s
index 18dc1e41..cccda3ea 100644
--- a/crt/arm/crti.s
+++ b/crt/arm/crti.s
@@ -3,11 +3,13 @@
.section .init
.global _init
.type _init,%function
+.align 2
_init:
push {r0,lr}
.section .fini
.global _fini
.type _fini,%function
+.align 2
_fini:
push {r0,lr}
--
2.40.1
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.