about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-06-16 15:37:31 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-27 14:46:55 +0100
commit82187c0633092f7b4f55ec93ab651dec84fe1413 (patch)
tree1f064009944c9cc4273209b1122ea2eea52009db
parent52d4224dd26a601b13e41467703c784e1b14ad9d (diff)
downloadglibc-82187c0633092f7b4f55ec93ab651dec84fe1413.tar.gz
glibc-82187c0633092f7b4f55ec93ab651dec84fe1413.tar.xz
glibc-82187c0633092f7b4f55ec93ab651dec84fe1413.zip
cheri: Fix sigevent ABI
Adjust padding to accommodate pointer size and alignment increase.
-rw-r--r--sysdeps/unix/sysv/linux/bits/types/sigevent_t.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/types/sigevent_t.h b/sysdeps/unix/sysv/linux/bits/types/sigevent_t.h
index e8b28de7e3..ab0a6c0690 100644
--- a/sysdeps/unix/sysv/linux/bits/types/sigevent_t.h
+++ b/sysdeps/unix/sysv/linux/bits/types/sigevent_t.h
@@ -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