From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 66AB63846446; Wed, 26 Oct 2022 15:15:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 66AB63846446 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666797342; bh=oN1TYFNJyKWXaoPThNvImMzPAJ5Bx/483Caif0GyeLc=; h=From:To:Subject:Date:From; b=LC/EQxNaXTENZJnJ3rJygU4GVXQMdnDl6lZhrqZ8oRA4JxDT82AQXW5Cow91Gw6rB nGl0czgSDZKyH+FLJ2lmwURbaKGl1JL+aGtlhTlQmqQESICZimGTH3SngzqnE5/GI1 2nfJhEGeTh0meUIYnndfsWm8oZKrtWrM3CWdtu3Y= 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: 6e4a4f1f1820e333dc6da37c2541c789d897a0db X-Git-Newrev: eec9eba52840d17f8775c60b4c22558ca8158e8e Message-Id: <20221026151542.66AB63846446@sourceware.org> Date: Wed, 26 Oct 2022 15:15:42 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=eec9eba52840d17f8775c60b4c22558ca8158e8e commit eec9eba52840d17f8775c60b4c22558ca8158e8e 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 878dc9bf83..5f0b90f4c4 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). */