From patchwork Tue May 12 10:14:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 1288346 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=J6ExO9tO; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=J6ExO9tO; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49LtwV02jrz9sRR for ; Tue, 12 May 2020 20:15:22 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5A0A7394B01E; Tue, 12 May 2020 10:15:10 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70083.outbound.protection.outlook.com [40.107.7.83]) by sourceware.org (Postfix) with ESMTPS id 4907B393C88D for ; Tue, 12 May 2020 10:15:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4907B393C88D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Szabolcs.Nagy@arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0iMYtXA25Ruk30C3cThZitJJerGPScZhj5soCKPRcwM=; b=J6ExO9tOlT1gjJszXFToeBCXQYrNrlq81BDcabWUF1lkwnvSME4wkvXS7SxC8cxd7xe+iqrA47L3/k7yULQHhwPTnMjuVqm1wlPWCREuydNqaPtar8MLe2cd2nVjkuGd4ITp2ecl4K2oYgi148RKDuym7QUiHnV8BdEU41ot6po= Received: from AM5PR0201CA0010.eurprd02.prod.outlook.com (2603:10a6:203:3d::20) by VI1PR08MB2941.eurprd08.prod.outlook.com (2603:10a6:802:1d::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.34; Tue, 12 May 2020 10:15:04 +0000 Received: from AM5EUR03FT021.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:3d:cafe::49) by AM5PR0201CA0010.outlook.office365.com (2603:10a6:203:3d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27 via Frontend Transport; Tue, 12 May 2020 10:15:04 +0000 Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; sourceware.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; sourceware.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT021.mail.protection.outlook.com (10.152.16.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27 via Frontend Transport; Tue, 12 May 2020 10:15:04 +0000 Received: ("Tessian outbound e88319d7ccd0:v54"); Tue, 12 May 2020 10:15:03 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: aeedeec9472ba74e X-CR-MTA-TID: 64aa7808 Received: from 9f99ebe2ecb9.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 35C7515A-7D3B-4DA0-82AC-5B4D77DA4210.1; Tue, 12 May 2020 10:14:58 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 9f99ebe2ecb9.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 12 May 2020 10:14:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UlgFO9YY+Dt/flPsj+9r1f5LMRr+njFWPXoe6UWUOdCPTOcTBCjxkze7Z2m3g/Am5rFcN+/u82v8eSqZpQHEDkuG3BRuIZlCJkzEfEMkGIqxIFtn9wceucDZsaIkEVemT26ILXNMfywGbBRU0llRNw3araN/lHPMuorMcyvYkHwvpj7CUQjXuvoXFdceDJoNc02dSU6xCazFz8rvU7SZWi4pSsNcTPOryFbJ6jwPQvf4QQUKix3KmxOowrZlV5jg9S8AxMzCadfjJP6fB3Clz9sUTf670+A0/yXrIdpzv7klW5FVcVm7WuzbO/G4cHF1uDdko5RgO0JSNx8BxEtRHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0iMYtXA25Ruk30C3cThZitJJerGPScZhj5soCKPRcwM=; b=bCjEn1vokRbbpgxi9uxwYZUG3nwePyja+Pg3AVhVTiVRLgkFj6LiHtt3ZKSeTPCwryo/rvhZWhm4S6bw3e0RidAcD1Sp6RsKTEQLsE75OsuaH3qflIgmb3LTURI+q9Q2mAE6HulEyBmAiv98QPLHuVpUGfKuJtL4HNhlKBF3+AuY4Ui9kWTCCca23f2ymyVfOfXVEfOHIy/FGxLY0PCu792iW3nrkEflP7DYOyOtE67nyYbksF55JBWFqBwyhtd9KralJkDWel8gxpbILtJJ+fMQY0nVpe1y7ndqIh2Mhay+HHWokxX2pCp31UropRl6/u8KmX5N4iKvUl5xp+vNFw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0iMYtXA25Ruk30C3cThZitJJerGPScZhj5soCKPRcwM=; b=J6ExO9tOlT1gjJszXFToeBCXQYrNrlq81BDcabWUF1lkwnvSME4wkvXS7SxC8cxd7xe+iqrA47L3/k7yULQHhwPTnMjuVqm1wlPWCREuydNqaPtar8MLe2cd2nVjkuGd4ITp2ecl4K2oYgi148RKDuym7QUiHnV8BdEU41ot6po= Authentication-Results-Original: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=arm.com; Received: from AM6PR08MB3047.eurprd08.prod.outlook.com (2603:10a6:209:4c::23) by AM6PR08MB2982.eurprd08.prod.outlook.com (2603:10a6:209:43::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.28; Tue, 12 May 2020 10:14:57 +0000 Received: from AM6PR08MB3047.eurprd08.prod.outlook.com ([fe80::49fd:6ded:4da7:8862]) by AM6PR08MB3047.eurprd08.prod.outlook.com ([fe80::49fd:6ded:4da7:8862%7]) with mapi id 15.20.2979.033; Tue, 12 May 2020 10:14:56 +0000 From: Szabolcs Nagy To: libc-alpha@sourceware.org Subject: [PATCH v2 02/13] elf.h: add aarch64 property definitions Date: Tue, 12 May 2020 11:14:38 +0100 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-ClientProxiedBy: CWLP123CA0056.GBRP123.PROD.OUTLOOK.COM (2603:10a6:401:59::20) To AM6PR08MB3047.eurprd08.prod.outlook.com (2603:10a6:209:4c::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (217.140.106.55) by CWLP123CA0056.GBRP123.PROD.OUTLOOK.COM (2603:10a6:401:59::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27 via Frontend Transport; Tue, 12 May 2020 10:14:56 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [217.140.106.55] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 01a08df5-2759-4d1e-317c-08d7f65d5692 X-MS-TrafficTypeDiagnostic: AM6PR08MB2982:|VI1PR08MB2941: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:5797;OLM:5797; X-Forefront-PRVS: 0401647B7F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: D1TMZNa9esjqLxiVcv4TpKV4z6Pi+iKuzAcPeCzFxrB871L5eqkTSXpAKR46Vo8NoGGDsNuXlLtr8pG3yO4s9FAbq/4V9WyBPj3AQqTNBV/LhAbeq+TlxWusVKYlkVg8dwgZcZYIYw+xJL2D/OH+vXfRimQgpGU8W44S4J3YXcqwgUXwUFLHbadW0ezqh7MNYRZGp1k+LIvMgdWIgqfNzc+SHDSuyDrURYllmrnUuUs573SVIZj6v4NMMd/hJu3oUcl6bGUm3y7c7VHPfeBECxJznV4ZdbggGwu84b/17Pgh2X+ioHViVd8y41Tz6bngXcW1CETiDdHOKrFqXtgk6tKflYsdvoLMOjnbmPDg2JDQ6jgZLDn+dnuU7Tma2mJVyyXIWa1g2hj7XffnPHBrP2sLadAgGFE7h8QCxwLtWAexmDfXUW0k+oHf1EAq4eDeGo1vX+yG7pPAfMTqKugyleo3LJ5NN6tJYdDiVBO1++W+gZ/sPPMfxHyHiJyIE8mpZc0MxGa0WfFbHVQBHlLt1mpreFxRn26NRxIYHsKUZboZdqQZA7KFUAXiMiK3COwPX8aY2OpjZzFzZNuasqNhwpJzQ3qNYWMcOiIpIAakqp8= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR08MB3047.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(136003)(376002)(396003)(346002)(366004)(33430700001)(6916009)(16526019)(66556008)(66476007)(36756003)(4744005)(44832011)(5660300002)(52116002)(86362001)(956004)(8676002)(66946007)(69590400007)(2906002)(6486002)(186003)(316002)(2616005)(33440700001)(6666004)(478600001)(6506007)(6512007)(8936002)(26005)(136400200001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: esWSbdaZPDCbzXjbuWSkUIOn9A0mf/NahKfl4JthSOACE4GpGkpb2eIf9rKpC1QKpndxxuIlcif2NJga5HZIfA2f7KXJg8mTXuMEUfXSQJFlobG4QV2EIAOn7nmBWJ41fvHpOfPtSLHzAvhxs1COgvVQvPivLBPmiMVUGzTb3IbhwMqARv1ilPHmyKW9GUSEE/i/cbjg8BS3kWnMonEYEnif0QkRctDT2euuhaAUoHtcE5Wf0aePeg94zE/3cn5YB0AoBU+QgCWW8gN1+GEbYLhit3Ginv5WyagCnqzfvieUv8MApp+7oNWjJawXcbIEOihMBXlUUKdBH5seIhoxIyLiT56nGSIS0+sdKcTKXEgNnSCCdC44nJ1Nw9OcZsIYL2azrrXUWxrZwOBRuL5nEYrY+MaMc/22CrGzuSYKGIg+JS37XCocv4y2ylxbM+gWtOh1ZEGfUcjL08RGwc+SjD2eBnTWxjPxqHYFY/ga2Lzi5/frm/cuudhSx/3we1As X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB2982 Original-Authentication-Results: sourceware.org; dkim=none (message not signed) header.d=none; sourceware.org; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT021.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFTY:; SFS:(4636009)(346002)(376002)(396003)(136003)(39860400002)(46966005)(33430700001)(6506007)(5660300002)(6916009)(82740400003)(316002)(36756003)(36906005)(70206006)(478600001)(70586007)(81166007)(47076004)(33440700001)(69590400007)(82310400002)(356005)(186003)(956004)(336012)(4744005)(86362001)(44832011)(2616005)(8936002)(26005)(2906002)(6486002)(16526019)(6512007)(8676002)(6666004)(136400200001); DIR:OUT; SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: f6e3b723-d4c1-4d66-5caa-08d7f65d520d X-Forefront-PRVS: 0401647B7F X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E7OESGNJmeBNE3AO/4dWuDmyogk8qdu6tSEFo67tXIJOyEkbpSGLcJ0aV4HZh5fqBcGHAQkHzM8AMEBaYFd3jZPwCWNwuGTj4TC+FsrRn3/p6rcOYokLxiw3N4w785XOvthKEtDsX9l9BJfhah0kMaLfaLvc9asaAUxePsT3871SJfn1zjtyAu6R91LDrIPLRjKq0Ssd2R5ACvogQa7IE9E/miFIUYmzXnrGFX3GABWuIog1Da7S8yomqeoQd2UifoNaSgWzT7Cz81x1UlIQjDwO9quXtT6KwSDi3Whb8qgt71g6w3vSZM7wViUcUzhpg5N5prqwsKWHTOjH7pkHb38MC0KEkLKoZOyAnCIP/t7sM7865uvS+PeBaKeWfGUQh0JOhQlAtumaPMrLwFbIyEiEYtdoET5+pSJa1R83y8WWGr5Xao5AfNClnSoqgTDdM1IhQm5FJyivBxCK8EozF1M4tkpGmreHjhAuaR8C4LWtiobsK6kIm0yzj2Tz8/i7y4z1wmDPOXPiuF0stvy43qpRzcFKOf073Vo0i2/owHLCvZ0O2iHH7XMH+jyX5jeDIsBJ3tTznDbp6WVUhDQ01mZuUoj6QT74v+J4NnZIiUD+BSR+kp63bsQv4YZ9b7vDVag4BcL7xLgkh9iJcKdULQ== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2020 10:15:04.0397 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 01a08df5-2759-4d1e-317c-08d7f65d5692 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2941 X-Spam-Status: No, score=-20.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" These property values are specified by the AArch64 ELF ABI and binutils can create binaries marked with them. Reviewed-by: Adhemerval Zanella --- elf/elf.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/elf/elf.h b/elf/elf.h index 5b5ce37d9e..197b557d15 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -1319,6 +1319,12 @@ typedef struct /* Application-specific semantics, hi */ #define GNU_PROPERTY_HIUSER 0xffffffff +/* AArch64 specific GNU properties. */ +#define GNU_PROPERTY_AARCH64_FEATURE_1_AND 0xc0000000 + +#define GNU_PROPERTY_AARCH64_FEATURE_1_BTI (1U << 0) +#define GNU_PROPERTY_AARCH64_FEATURE_1_PAC (1U << 1) + /* The x86 instruction sets indicated by the corresponding bits are used in program. Their support in the hardware is optional. */ #define GNU_PROPERTY_X86_ISA_1_USED 0xc0000000