From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 27A323844003; Wed, 26 Oct 2022 15:21:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 27A323844003 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666797677; bh=6wRccmQ2jkTtQaUujGb49/uDw01qqFIYurHZZjzFDCo=; h=From:To:Subject:Date:From; b=wLIboLOhjAIWZ8CpkyESZtjrG95QahbT1+ni6flmFftZpWBI7eQ1yLbZ9zxvBmjJ2 Bg5JuvQTS8Zqq4MuK163+gO6vxPGAe7jcilcejTr4Wca6xgR9erZRLjrUHNEiCu4c3 G2wpyUfE20dLm2reFGDY+3xS+lBAWJ2729mEu0vo= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] cheri: Fix sigevent ABI X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: 03b5c19d67bab9abb0223601a4f0928936fb9ab0 X-Git-Newrev: 3384f13b9de0b4bae43997cee1ad43bae569cd1d Message-Id: <20221026152117.27A323844003@sourceware.org> Date: Wed, 26 Oct 2022 15:21:10 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3384f13b9de0b4bae43997cee1ad43bae569cd1d commit 3384f13b9de0b4bae43997cee1ad43bae569cd1d Author: Szabolcs Nagy Date: Thu Jun 16 15:37:31 2022 +0100 cheri: Fix sigevent ABI Adjust padding to accommodate pointer size and alignment increase. Diff: --- sysdeps/unix/sysv/linux/bits/types/sigevent_t.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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