From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 450D43858C5F for ; Wed, 17 May 2023 21:43:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 450D43858C5F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.99,283,1677571200"; d="scan'208";a="6377878" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 17 May 2023 13:43:41 -0800 IronPort-SDR: fcIbxw2ymhNbOh/69HnrzZtd62gKYgDAcy5RRJ2Awxwb+023tT+6iBcjWdWtYEGMclUMflY++c +ktT4xCFjvreJgEM3U6yqqwq9JaAHr+yOccKZob+2G0FqNnX3NgcnvYW3MUY6Zfjbqv/dRX2Wa NX5ThJxSlRzdWYMmwj8sbAMbUn2yNnmox7AJw1do2bfkViI+wn3HBGuN4DQj3nhC9wTBSVicQU LevF/fqXbTxp6BeHzh4ODeYd1fFL3XGGgW0y3zKGy/tD6fU+A7aT+CV/Me5MluM5CPSRaiBuE7 1vQ= Date: Wed, 17 May 2023 21:43:36 +0000 From: Joseph Myers To: Subject: Add AT_RSEQ_* from Linux 6.3 to elf.h Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-14.mgc.mentorg.com (139.181.222.14) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3112.7 required=5.0 tests=BAYES_00,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Linux 6.3 adds constants AT_RSEQ_FEATURE_SIZE and AT_RSEQ_ALIGN; add them to glibc's elf.h. (Recall that, although elf.h is a system-independent header, so far we've put AT_* constants there even if Linux-specific, as discussed in bug 15794. So rather than making any attempt to fix that issue, the new constants are just added there alongside the existing ones.) Tested for x86_64. diff --git a/elf/elf.h b/elf/elf.h index 94ca23c1bb..c0803a610e 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -1224,6 +1224,9 @@ typedef struct #define AT_HWCAP2 26 /* More machine-dependent hints about processor capabilities. */ +#define AT_RSEQ_FEATURE_SIZE 27 /* rseq supported feature size. */ +#define AT_RSEQ_ALIGN 28 /* rseq allocation alignment. */ + #define AT_EXECFN 31 /* Filename of executable. */ /* Pointer to the global system page used for system calls and other -- Joseph S. Myers joseph@codesourcery.com