Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251211180017.41319-1-alex@alexrp.com>
Date: Thu, 11 Dec 2025 19:00:17 +0100
From: Alex Rønne Petersen <alex@...xrp.com>
To: musl@...ts.openwall.com
Cc: Alex Rønne Petersen <alex@...xrp.com>
Subject: [PATCH] powerpc64: add nop after bl to start_c

To avoid errors like this:

    error: ld.lld: /home/ci/.cache/zig/o/ac8c1808c4a1f20ad8a0b179b5207ee7/crt1.o:(.text+0x24): call to save__start_c lacks nop, can't restore toc
---
 arch/powerpc64/crt_arch.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc64/crt_arch.h b/arch/powerpc64/crt_arch.h
index 168669a9..c3817def 100644
--- a/arch/powerpc64/crt_arch.h
+++ b/arch/powerpc64/crt_arch.h
@@ -13,6 +13,7 @@ START ": \n"
 "	stdu   0, -32(1) \n"
 "	mtlr   0 \n"
 "	bl " START "_c \n"
+"	nop \n"
 ".weak   _DYNAMIC \n"
 ".hidden _DYNAMIC \n"
 "1:	.long _DYNAMIC-" START "\n"
-- 
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.