From patchwork Fri May 15 14:40:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 1291228 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=2620:52:3:1:0:246e:9693:128c; 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=Ja8KsJab; 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=Ja8KsJab; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 49Nrh72qchz9sVq for ; Sat, 16 May 2020 00:41:27 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E7DEB3985453; Fri, 15 May 2020 14:41:23 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60077.outbound.protection.outlook.com [40.107.6.77]) by sourceware.org (Postfix) with ESMTPS id 4EBEB383E808 for ; Fri, 15 May 2020 14:41:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4EBEB383E808 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=Ja8KsJab3B2ImK8kZQEXhne1quoc5+poOZ0EvAtJJsPT+xU/uk1a23Bwrc0oqQEPMxFSZf/BzKsDaX4kW5QATVNnAG5FDpn+Eu1s9NCATyQDnnwZ2ImKzcs05g1Ti3N4OwT/MTVyfORUSnLdvanNDzdwchdYHm6tB6G4PAExh+8= Received: from AM0PR01CA0129.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::34) by AM0PR08MB5457.eurprd08.prod.outlook.com (2603:10a6:208:180::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.25; Fri, 15 May 2020 14:41:11 +0000 Received: from AM5EUR03FT052.eop-EUR03.prod.protection.outlook.com (2603:10a6:208:168:cafe::cb) by AM0PR01CA0129.outlook.office365.com (2603:10a6:208:168::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20 via Frontend Transport; Fri, 15 May 2020 14:41:11 +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 AM5EUR03FT052.mail.protection.outlook.com (10.152.17.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19 via Frontend Transport; Fri, 15 May 2020 14:41:10 +0000 Received: ("Tessian outbound 567b75aed2b9:v54"); Fri, 15 May 2020 14:41:10 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 114d02894d068bc2 X-CR-MTA-TID: 64aa7808 Received: from 3df973c5f92a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 67A820F7-7E12-4244-8F69-462A0828206E.1; Fri, 15 May 2020 14:41:04 +0000 Received: from EUR03-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 3df973c5f92a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 15 May 2020 14:41:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P/RmMVJsWrUSzucNjGmsurTQLCc65VkZCn2TiVUOCn4d1ej74Sp0Dk4elOja65uDfaqv8iCqE1LGfAYaGmTL60ub1nvqV8yNd3+gJzYAQ0ahvWACSQP4xJ9jvPuWyok2n83pUtdC2ZolYvNRbvOFGyGVRneYjF62scIA0yp/QoB0ng/Pg7BKyBXO4wEbBmpJen+s/HRcS/p4WqC2XPFz8CuCYcbppGoiuQSZKeTjwwBnxQMwX2LM8nTgn38F2xjuK+zzpPrV+Sm7Wp6KnhZWr9Vycwssbn6P7wLYMPyzljbXUSvEMmC8eby1x8GkZmcjq3OXdmzbbqc65rh+yOGhwQ== 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=BcwbFIpNG9ZouwbEhj9Q6gJvZAaxcAZTqvr9nmioLZMb7w55USmeamEkWXQaS3bG+HMM0mUfeO8mBNH3O+/wnOJIvbqdRNccL4M9exRMLJsVTHAor2+7ypp2V7BQEQU70M7B+/Eu6B0dC8bR2zyRwhx38aaqROkX4ZIz6cVHN5RHt2yqYmCFVcNXcByVB8KZM2j2qnxs6imzzz/m1TcmX6WFqnB3CPGgiSV7j1j55q1KDwPqjI6S9NMchzQHufVaIF+sd5jvB8rQsqz6y1BAMoW2tY+noWVEStvg76ABr/o1RGY+mF5r/5SFc+ZdeoQwnDG4viAFyDymDR1/Kvi7dg== 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=Ja8KsJab3B2ImK8kZQEXhne1quoc5+poOZ0EvAtJJsPT+xU/uk1a23Bwrc0oqQEPMxFSZf/BzKsDaX4kW5QATVNnAG5FDpn+Eu1s9NCATyQDnnwZ2ImKzcs05g1Ti3N4OwT/MTVyfORUSnLdvanNDzdwchdYHm6tB6G4PAExh+8= 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 AM6PR08MB3528.eurprd08.prod.outlook.com (2603:10a6:20b:4b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.34; Fri, 15 May 2020 14:41:04 +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; Fri, 15 May 2020 14:41:04 +0000 From: Szabolcs Nagy To: libc-alpha@sourceware.org Subject: [PATCH v3 02/13] elf.h: add aarch64 property definitions Date: Fri, 15 May 2020 15:40:46 +0100 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-ClientProxiedBy: LO2P265CA0309.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a5::33) 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 LO2P265CA0309.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a5::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.24 via Frontend Transport; Fri, 15 May 2020 14:41:03 +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: 9190478f-76a8-4622-9960-08d7f8de02b4 X-MS-TrafficTypeDiagnostic: AM6PR08MB3528:|AM0PR08MB5457: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:5797;OLM:5797; X-Forefront-PRVS: 04041A2886 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: jQPfkt3ksFG9ZgT92KhmB7E4uohagpPcny11ZzbEbOHEhy1IMU4CZCfIW7S/9bxgFxDIEQboJWye2/AB0zJWQgrwtcXlWPc2iDdYGnUlYg4mUW1icISguMeZ0fjNdCxdoZk8DaIXtBS3/mQFQLXmhg8umRNVGui+h1h4Fi+XxEuH05Bevo4wxW/2vCUqo2Bhj+JwDhq8fqvMzi5t781+fqlz6IZqxIXgzyMp7HT+JH5b4iC+VEVejmOowJ+/srNpQzWvzAWPpN9RfX+ql9gd5nrdOFZYB9IeamDj2cdHcVolwNwACjLZ0mMrMgWlUaHCSKBa19ewc7o+KkvfC9ngmv2rtUd4ULKOH+l0+i943DbBrCsb5T0yPU0EZcooE/M6dSIOmycDgCAt6nSXQnmK1812rrcMOsPNRKnOvBN/eYQ2Yx4oHPl26alzJ2l3JyktMuoldLmYMCH95Ja/F6YMpN0bcUkNuq8JGnn6CpnpAl2oM1Vu4kmqMHvspm8/qagATV2NJNBhAB5Cvj95Xtoy6rVrXfgX9QfS52av6hA8qJY= 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)(136003)(376002)(39860400002)(346002)(366004)(396003)(86362001)(6506007)(69590400007)(52116002)(478600001)(316002)(6666004)(6916009)(6486002)(66556008)(44832011)(6512007)(5660300002)(2906002)(956004)(66476007)(8936002)(66946007)(36756003)(4744005)(186003)(26005)(2616005)(8676002)(16526019)(136400200001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 1JjkKYNCXG5HYFH2Xg9wTdeLDPaEQD73CaPsRh8IRuTPuqgkT+69fSuvM44EZP17k0GYqiz5y+m0G9O666e8b4NGGeKL+7JONwFagManDzOocCeHZgF0XnNEohJlEUya4MuUHn3fg8XlTvn6DYolTyTKBgjX/4vVQyW4jIoPm6oFqWcV6q9FbhphVsWYIABCSeQb1LxEO2C5cmPyS4KiBr3jdVlM2khFQNrrKIGTZYhMEGvHIZIlbVOYACJSRJb8cJLtMMozzQCzndDBP8xxjUdNqZ/i0QAO8itA7fO24KYKXb5mKUD5xxAbfbkGtzUarSpXupVyTVo81VNeoCzoIoWoIMzxvWYdxXmt2CFMNnLhyR6Ieysp19744oI2X/2NPm+P43DUF6mdzKcjvuKzxbf1wQ7Z+Y852+bwHkpABPl9EXFbC6kt/I81ns+H1Nb4Fp2VBk2zCTzPUdlrjloykVHANuzvBYYFr4j6MOPyx3+RqCbgEPMuVGgCmG2UNqHM X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3528 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: AM5EUR03FT052.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)(39860400002)(376002)(346002)(136003)(396003)(46966005)(47076004)(81166007)(82740400003)(69590400007)(82310400002)(6512007)(6666004)(86362001)(2906002)(6486002)(356005)(6916009)(8676002)(478600001)(6506007)(8936002)(5660300002)(2616005)(26005)(956004)(4744005)(70206006)(36906005)(316002)(336012)(36756003)(16526019)(186003)(44832011)(70586007)(136400200001); DIR:OUT; SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: fa8a2f5b-b84b-4181-08dd-08d7f8ddfe84 X-Forefront-PRVS: 04041A2886 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qSyN9jxWgEboUk7T8K3zw7sjrXVkvez9NblkPC/MpnLMDPy+Dde0ddERSINrpy4EkfhHzFsUbPv8fFxgQas0K2QCghsjSVoT00JjyZFmrH/KmndYAusIRfzT5Mgw59Qiadnisbub2exTT0MDRIAObEu0BJWNKjYmBBD5BRPRxiBk0lfJy/l24wv3bo32KkWFVzHt9CY3f9Z186vVSdn4PW1IK1WZVhtaE5qNh8om1B2HhQINy6YUlo+m4r/p84o1dQLqslxDjV7MIb7bUm0zhDSP8U0CQmrXRcVGUT3IKBIzGCgbbmPj+RPRVGTepCggzLKOrmQ+tWX4HSkpXwnPtiCk9cOIkvKGhr1wPqvtcVKyvO5sKBQVqvskI0MvxIbp2Sykki7cQFj76Kdu1JV27s8ITKj4mUGarNlc4AbEMtny7Wqn6OrGEBYj/YiyhZeK+teKODT7WVZ/DeMUEoLjtt6yqmYcRkmLGcMsONosrdcBom3pg+XCmOziOYfOdvINyAg5mb5aCBWc/Gk5td0eedN4jYJuUVtWBsr1Sjgi71rCaHTBbJDhIitaPV+ikQJnifnUykYw8OHN7+Qg1z5lZQ== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2020 14:41:10.7423 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9190478f-76a8-4622-9960-08d7f8de02b4 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: AM0PR08MB5457 X-Spam-Status: No, score=-19.6 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