mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH] arm64/sigcontext: Synchronize the type of the __reserved field with the linux kernel.
@ 2021-08-18 22:52 Olivier Galibert
  2021-08-19  0:49 ` Rich Felker
  0 siblings, 1 reply; 6+ messages in thread
From: Olivier Galibert @ 2021-08-18 22:52 UTC (permalink / raw)
  To: musl; +Cc: Olivier Galibert

clang's compiler-rt sanitizer_linux.cpp expects the __reserved field
to be convertible to u8 *.  So let's.
---
 arch/aarch64/bits/signal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/aarch64/bits/signal.h b/arch/aarch64/bits/signal.h
index 5098c734..a46997e3 100644
--- a/arch/aarch64/bits/signal.h
+++ b/arch/aarch64/bits/signal.h
@@ -19,7 +19,7 @@ typedef struct sigcontext {
 	unsigned long fault_address;
 	unsigned long regs[31];
 	unsigned long sp, pc, pstate;
-	long double __reserved[256];
+	unsigned char __reserved[4096] __attribute__((__aligned__(16)));
 } mcontext_t;
 
 #define FPSIMD_MAGIC 0x46508001
-- 
2.33.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-11-07  7:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-18 22:52 [musl] [PATCH] arm64/sigcontext: Synchronize the type of the __reserved field with the linux kernel Olivier Galibert
2021-08-19  0:49 ` Rich Felker
2021-08-19  5:54   ` Florian Weimer
2021-08-19 13:38     ` Rich Felker
2021-08-20  6:46       ` Szabolcs Nagy
2021-11-07  7:07         ` Fangrui Song

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).