]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
cheri: Fix sigevent ABI
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 16 Jun 2022 14:37:31 +0000 (15:37 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 27 Oct 2022 13:46:55 +0000 (14:46 +0100)
Adjust padding to accommodate pointer size and alignment increase.

sysdeps/unix/sysv/linux/bits/types/sigevent_t.h

index e8b28de7e3ff6b8bf47661235edbebed511534d8..ab0a6c0690d7dd208b814e85748fa3ef2bc6c0ff 100644 (file)
@@ -7,7 +7,11 @@
 
 #define __SIGEV_MAX_SIZE       64
 #if __WORDSIZE == 64
-# define __SIGEV_PAD_SIZE      ((__SIGEV_MAX_SIZE / sizeof (int)) - 4)
+# ifdef __CHERI_PURE_CAPABILITY__
+#  define __SIGEV_PAD_SIZE     ((__SIGEV_MAX_SIZE / sizeof (int)) - 8)
+# else
+#  define __SIGEV_PAD_SIZE     ((__SIGEV_MAX_SIZE / sizeof (int)) - 4)
+# endif
 #else
 # define __SIGEV_PAD_SIZE      ((__SIGEV_MAX_SIZE / sizeof (int)) - 3)
 #endif