From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 93F093853D7D; Wed, 23 Nov 2022 14:44:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 93F093853D7D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669214656; bh=m4OccJ48oLTlK+3SqB+FGdEJPyyjooy4Pk91YdVpWRs=; h=From:To:Subject:Date:From; b=TQVi2C5nQXKEEubC23dqsiFvKCyKBGpeKW0S4hQuWYfNMKyZA9O0k9AdOC3+zsL8q IKeD2pcqfbTf/yTEr81FZwJgTtB/ixth3NICdaJ5hYN+wFc9VyMZQjDUBpp6Egm0r1 DiL8Ahu21RzXa6iyDf1psWfLmAScnIJEWKnNrA1E= 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: elf: Adjust Elf64_auxv_t for capabilities X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: 88e0b1d81b7a980b9bd4b570e3c50e2f630cb291 X-Git-Newrev: 4b0cb26b3b2faa0247c8d5dc3348808ffae1e94a Message-Id: <20221123144416.93F093853D7D@sourceware.org> Date: Wed, 23 Nov 2022 14:44:16 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4b0cb26b3b2faa0247c8d5dc3348808ffae1e94a commit 4b0cb26b3b2faa0247c8d5dc3348808ffae1e94a Author: Szabolcs Nagy Date: Thu Jun 10 13:50:17 2021 +0100 cheri: elf: Adjust Elf64_auxv_t for capabilities The Elf64_auxv_t needs to be adjusted for the new capability size. Diff: --- elf/elf.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/elf/elf.h b/elf/elf.h index 5b80879d74..3cae516775 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -1159,6 +1159,14 @@ typedef struct typedef struct { +#if defined __CHERI_PURE_CAPABILITY__ + uint64_t a_type; + uint64_t __pad; + union + { + __uintcap_t a_val; + } a_un; +#else uint64_t a_type; /* Entry type */ union { @@ -1167,6 +1175,7 @@ typedef struct though, since it does not work when using 32-bit definitions on 64-bit platforms and vice versa. */ } a_un; +#endif } Elf64_auxv_t; /* Legal values for a_type (entry type). */