Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20260127060724.1513201-1-bill.roberts@arm.com>
Date: Tue, 27 Jan 2026 00:07:24 -0600
From: Bill Roberts <bill.roberts@....com>
To: musl@...ts.openwall.com
Cc: dalias@...c.org,
	dalias@...ifal.cx,
	Bill Roberts <bill.roberts@....com>
Subject: [PATCH] aarch64: drop crt(i|n).s since NO_LEGACY_INITFINI

These stubs define legacy .init/.fini sections that are not used when
NO_LEGACY_INITFINI is set. Initialization and finalization are handled
exclusively via .init_array/.fini_array on these targets.

Signed-off-by: Bill Roberts <bill.roberts@....com>
---
 crt/aarch64/crti.s | 15 ---------------
 crt/aarch64/crtn.s |  7 -------
 2 files changed, 22 deletions(-)
 delete mode 100644 crt/aarch64/crti.s
 delete mode 100644 crt/aarch64/crtn.s

diff --git a/crt/aarch64/crti.s b/crt/aarch64/crti.s
deleted file mode 100644
index 3776fa64..00000000
--- a/crt/aarch64/crti.s
+++ /dev/null
@@ -1,15 +0,0 @@
-.section .init
-.global _init
-.type _init,%function
-.align 2
-_init:
-	stp x29,x30,[sp,-16]!
-	mov x29,sp
-
-.section .fini
-.global _fini
-.type _fini,%function
-.align 2
-_fini:
-	stp x29,x30,[sp,-16]!
-	mov x29,sp
diff --git a/crt/aarch64/crtn.s b/crt/aarch64/crtn.s
deleted file mode 100644
index 73cab692..00000000
--- a/crt/aarch64/crtn.s
+++ /dev/null
@@ -1,7 +0,0 @@
-.section .init
-	ldp x29,x30,[sp],#16
-	ret
-
-.section .fini
-	ldp x29,x30,[sp],#16
-	ret
-- 
2.51.0

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.