diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-06-16 15:37:31 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-11-22 14:31:25 +0000 |
commit | 040bc860fe46e7f7c1e99de92565398656b6b5e9 (patch) | |
tree | 4ff84816cc07d6d5fc343ca877e71c6c79b36380 /sysdeps | |
parent | abb1d6bb4114b95391d9e50de5bda4302bca950a (diff) | |
download | glibc-040bc860fe46e7f7c1e99de92565398656b6b5e9.tar.gz glibc-040bc860fe46e7f7c1e99de92565398656b6b5e9.tar.xz glibc-040bc860fe46e7f7c1e99de92565398656b6b5e9.zip |
cheri: Fix sigevent ABI
Adjust padding to accommodate pointer size and alignment increase.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/types/sigevent_t.h | 6 |
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 |