|
|
Message-ID: <20251212010942.547800-1-alex@alexrp.com>
Date: Fri, 12 Dec 2025 02:09:42 +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 b to __dlsym
To avoid errors like this:
ld.lld: error: /home/ci/.cache/act/2c84ccdd36a924eb/hostexecutor/zig-global-cache/o/9e32a733e976f6f0194dc11bcf100f7a/libc.a(/home/ci/.cache/act/2c84ccdd36a924eb/hostexecutor/zig-global-cache/o/19fa681ef1630f481aadf66ec88d2634/dlsym.o):(function dlsym: .text+0xc): call to save___dlsym lacks nop, can't restore toc
---
src/ldso/powerpc64/dlsym.s | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/ldso/powerpc64/dlsym.s b/src/ldso/powerpc64/dlsym.s
index a14715fd..73e70db9 100644
--- a/src/ldso/powerpc64/dlsym.s
+++ b/src/ldso/powerpc64/dlsym.s
@@ -8,4 +8,5 @@ dlsym:
.localentry dlsym,.-dlsym
mflr 5 # The return address is arg3.
b __dlsym
+ nop
.size dlsym, .-dlsym
--
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.