From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id achSOxvBPmo2iBkAWB0awg (envelope-from ) for ; Fri, 26 Jun 2026 14:12:43 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=Q7IpGvkk; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=Q7IpGvkk; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id ED50B1E098; Fri, 26 Jun 2026 14:12:43 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 581A01E024 for ; Fri, 26 Jun 2026 14:12:43 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D67CD4BA2E33 for ; Fri, 26 Jun 2026 18:12:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D67CD4BA2E33 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=Q7IpGvkk; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=Q7IpGvkk Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011008.outbound.protection.outlook.com [52.101.70.8]) by sourceware.org (Postfix) with ESMTPS id B83134BA23CC for ; Fri, 26 Jun 2026 18:10:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B83134BA23CC Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B83134BA23CC Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=52.101.70.8 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1782497401; cv=pass; b=nMuXpaOQvSYZ2eTTiwDXpwLfPJJGJ/bd4ex1Q+sC15QdNrY5Sr3tBD9YSjz5bucDdWH1YNfUlwmdzXgINMDP8heHUCkjKmflVUiTnhtW1f6rcR+XFa/ZpMlpsa/APa6LDsni0wvIUwBxLP8JdRs/ouWPFjQauia+vHSTjjFPpMw= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1782497401; c=relaxed/simple; bh=bJwJQ3XgU0cB30drycZr+ir61wYSUm3omE9MgOYfLAo=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=Nq2U9yeN5Cc/IroHVBVrm8NGlrpL2U5UkTzCnF6oC4Nb0SMFxg2po+/2/VVkCpLItP9EaTu0Xr5Muzbx2tqvhKWn5PqTlftwwkhDUUV8/j60d0prfAooYt2jRtHCELAGBzBgghYCopqdVDi1Sy0dMqQ5cGotzQ/AdlkLgOsOX98= ARC-Authentication-Results: i=3; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=Q7IpGvkk; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=Q7IpGvkk DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B83134BA23CC ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=UzVekCnekcNKIeFNuthVR2Shl096f9Sq3zcbiMn7tghcE1pf0J2qBQIKXa7yRywor9c4fkvu13W9FXECgU2ikRZ+R8oAdCNCzp3gWTw3R8vgVjl567juSYOlNIwROzhWcvM7GbdJcjGeOOORa/t/eSvtmP4L0dm1EUCRT9o64ZhCkLWg1Fm+383Dw3UxRCfK61Szp8Cn5rRrG29rMlrJZiLnO8vioGPCz/vOdXeKxNWy1M0CRIlg6bMp1w1vLSFpwxzrKDm7wOX9Q4yXhgwaPh1JsCBinusJ7hkeHj+zR12xKG/FhRgh0gLN2JFsJZEmatPTr+B08dUHb64ME2+9rw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gfm/SDWzbaZF6/FO+7QYxpZY1uAmY9zWsucZxWmVz30=; b=VE1VP0We3uwEyyDuIsQ1v/zatlJQE7L/VtlFWTj9IXu9Z5YyjEzga+f46tWAnAadcypzpoiGeTTvfvb9j37gbbJfauPw05kVeYS3CMaC+CAQYHyEDW5hd3DSPlGRFw/4f0GmRPhQcuejPr2k4oE80StvXU8Sq2K3fY1iXOHAVSQuRCljtNHq8CUwL9YNW5sLtJvzDWeGu5fVCDipAaG/JVPeC3b0zcGtgWbFeB7t6fbLAPv9JUy0KIC1sWH+aMDNTO70Wxpll4WBp9h1pcHkPKX55QWIGNWhvMGl/F9Yc0KCy9lfH5QVIpcK4HjbJSmhle0n427BqGKuJEwH/OAXoQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gfm/SDWzbaZF6/FO+7QYxpZY1uAmY9zWsucZxWmVz30=; b=Q7IpGvkkmJQhJA6Z95W0N16Hk2z3Crv8RUGlVnUuPY047kK20UU1RgFmjc8O6pPH5ZMHZSSG1zKYOsWr+VKwJa45Gj+X/95fTXPm08o85JKkh4q9nP7ZGjfg2WSKsNrLazpshpdZYNAV6EgPjF29slVblOZ2r1tV6oNbjD4AV44= Received: from CWLP123CA0135.GBRP123.PROD.OUTLOOK.COM (2603:10a6:401:87::27) by PAVPR08MB9308.eurprd08.prod.outlook.com (2603:10a6:102:303::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.159.17; Fri, 26 Jun 2026 18:09:44 +0000 Received: from AMS0EPF0000019B.eurprd05.prod.outlook.com (2603:10a6:401:87:cafe::3b) by CWLP123CA0135.outlook.office365.com (2603:10a6:401:87::27) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.159.17 via Frontend Transport; Fri, 26 Jun 2026 18:09:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 4.158.2.129) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 4.158.2.129 as permitted sender) receiver=protection.outlook.com; client-ip=4.158.2.129; helo=outbound-uk1.az.dlp.m.darktrace.com; pr=C Received: from outbound-uk1.az.dlp.m.darktrace.com (4.158.2.129) by AMS0EPF0000019B.mail.protection.outlook.com (10.167.16.247) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.181.6 via Frontend Transport; Fri, 26 Jun 2026 18:09:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=v26hmUGWOM9oqofp1gxHrvT93pfCx59LR/dpZLGAgnVv5cmmLrUlfOEOOnqMqirGaccks97F2/Fgir51UJNkHrH7bERVIPRctF0j1RLlaCx7KMcBU6jGW2v6hHNsbMvnB4l8+r/sVPpd6I7oljXqtVs6dSvkT6GXwe6vqHrkkd7okUcd7JjZYgNouAZB0oeSrn8sWQ7YU2p93FS7NFX/Gq7k6VkC/8D+lCsfRZcMZl9p9zCnHz11IENaF4WIm8HTMbt0FT+nWgtYIW6hrBLQEvIR2LZi1AhD8NbB3mxsE72Lo3R3QFnL2zBsjjlVJxHWrNigiR/+qSPK9D+i4LH5EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gfm/SDWzbaZF6/FO+7QYxpZY1uAmY9zWsucZxWmVz30=; b=ZVqonJqr+NJq8wc7pCqMvCN8mWv8H5WfuPgb+lrGYXbi9IIy7EvltkLatI9bdBopFOb4qyb93zlljrRDFqh1ZhTieV0+NcZ64VNfUbGV4jvxKxaoO5ZYIACPu8gS9h0BlRKrBVDwL/q+hYI4nmFIFEaP9Fg73P892LYGbVcJ4Xkqg/D4najfc/F1q3irKudzVUw4ZTvRdX0SxAexVUBTwVErDGZu/OOQUzBk8XUJPIfl5uxxTny3V/ACx8K15yb6OWkeDb1JcHFn/umjM1SQ0djsRVCXJFxBvUVrkBghjguywPAjFZb63olBG3LNlsuld7WqsYXjbZyjnhBLgHFFZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 172.205.89.229) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gfm/SDWzbaZF6/FO+7QYxpZY1uAmY9zWsucZxWmVz30=; b=Q7IpGvkkmJQhJA6Z95W0N16Hk2z3Crv8RUGlVnUuPY047kK20UU1RgFmjc8O6pPH5ZMHZSSG1zKYOsWr+VKwJa45Gj+X/95fTXPm08o85JKkh4q9nP7ZGjfg2WSKsNrLazpshpdZYNAV6EgPjF29slVblOZ2r1tV6oNbjD4AV44= Received: from CW1P123CA0019.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:292::11) by AS2PR08MB9390.eurprd08.prod.outlook.com (2603:10a6:20b:596::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.159.17; Fri, 26 Jun 2026 18:08:39 +0000 Received: from AM1PEPF000252DF.eurprd07.prod.outlook.com (2603:10a6:400:292:cafe::29) by CW1P123CA0019.outlook.office365.com (2603:10a6:400:292::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.92.12 via Frontend Transport; Fri, 26 Jun 2026 18:08:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 172.205.89.229) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 172.205.89.229 as permitted sender) receiver=protection.outlook.com; client-ip=172.205.89.229; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (172.205.89.229) by AM1PEPF000252DF.mail.protection.outlook.com (10.167.16.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.181.6 via Frontend Transport; Fri, 26 Jun 2026 18:08:39 +0000 Received: from AZ-NEU-EX04.Arm.com (10.240.25.138) by AZ-NEU-EX03.Arm.com (10.240.25.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Fri, 26 Jun 2026 18:08:25 +0000 Received: from ip-10-249-56-67.eu-west-1.compute.internal (10.249.56.67) by mail.arm.com (10.240.25.138) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Fri, 26 Jun 2026 18:08:25 +0000 From: To: CC: , , , , , Srinath Parvathaneni Subject: [PATCH v2 5/7] bfd/readelf: Add core file support for FEAT_S1POE Date: Fri, 26 Jun 2026 18:08:19 +0000 Message-ID: <20260626180821.376406-6-srinath.parvathaneni@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260626180821.376406-1-srinath.parvathaneni@arm.com> References: <20260626180821.376406-1-srinath.parvathaneni@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM1PEPF000252DF:EE_|AS2PR08MB9390:EE_|AMS0EPF0000019B:EE_|PAVPR08MB9308:EE_ X-MS-Office365-Filtering-Correlation-Id: 69eb4edd-0f39-450f-2113-08ded3ae1982 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|23010399003|376014|82310400026|1800799024|36860700016|22082099003|18002099003|11063799006|56012099006|6133799003; X-Microsoft-Antispam-Message-Info-Original: 67ErVJvPa5f3TKVL1nmBtiUpfiCUzJclwqTT8+Aq3n/JpRzITREs7BCI6bSitFYgGMJbOW64SGzNcIx3jo3oZ7pqmdZGXfgdV/OOu07pSv4lsJf4MjJ1vHV53AzSJHPWWZLQ7EnDM+LVmM8Z0zGLVeeAGQzdWVUXXVgLBv6Fd7dRZxj/6LsiEjFJgO7FJzQH+wieoII/FQAj26KCdT/bZ9ZkOHPejasE/+ofBcpypvn1114vVbJyAV2Pp91DNoUXabuu7+g0fTB7+p95KtmQZi2q3apj6wECtrYOdv8i912kND68sq6f28hpp8dfORYBXsCA/7l8MpDuqpWKmtIiNrqQEHdKhbbI2p75z/QdgDoofTv6E2p0JI/rzjc4XlMFHgrXzu2ENSwhwwv83IgcDQ/p3gOAhMNUykDIcG25AFz0x06O5TFNv51FP9j8WwBDG5trE+qiYceFgN78qQoHfvK2vI67PEHS3w6Z/XPW82179smoUpwZQ1ecUGx/eeKz3KKOAsSzYbY2O7IxLegXMDQ/fufQQvzr8r9j1mU9/on+mu5Rl73JV/Uyl09ieibXFtmnxavzjFAgDGMevcZ1LdpM9uYAedeo4ZaOmTcCTAG5nyyEkmy15jTMW9e/wSQLND9wQTc913kXvxMVZOpT/JUPm6hm32ybOemhqUSrs4ZmZtvuLfhG/1JBC+G3uOVQ27q/PdLqZIvEO1EgH9cSNA== X-Forefront-Antispam-Report-Untrusted: CIP:172.205.89.229; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(23010399003)(376014)(82310400026)(1800799024)(36860700016)(22082099003)(18002099003)(11063799006)(56012099006)(6133799003); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: c0XuVG2yMk+THMYjg51jn2OLZ20rnrZFtFO8djcr/AVb3z9lt6G6PtMC+JD/YLMIoa9dilRvfc2Pfoikcmy57dt1c3xo8buiKI/gM2EFi0PhpbR5MYZSIPO7WPsZonBXWPKkLXV9hKLGcSgwD1+8o4i/ItIOMaWxmDLHv32GzjKSj5NSzv1mD6yxf59RosnuCYFf0HiQdoHwLerr1V0+m9osnbQMczuFTKXp7OIE+zbswKHBqKQnaoMzRZLTYbLPzPYmg5LNUBCrjNxvhxABYU3KX3e0TwvyE0FFZAX7QJxyvfIwSAGZMjnFTwG9v7i1bmqQitEA09/E+TQOnp4Qeg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB9390 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS0EPF0000019B.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 82c5228b-16ba-4889-e0a0-08ded3adf321 X-Microsoft-Antispam: BCL:0; ARA:13230040|35042699022|376014|1800799024|23010399003|82310400026|36860700016|14060799003|56012099006|11063799006|6133799003|18002099003|22082099003; X-Microsoft-Antispam-Message-Info: ykMv5cSpcahAzU+w28p3vr3GXBIHvAnFdDZ6BpJC2eeLqJb9uYq/6DN4MoXDfnGHjm7wMvwKBzr0ou+7C902CdsdGDSJccKffStJJI7vtOuO5X9Kos0TLlFSrgOeTiN6ZbITI+AqpHBOpLNj14wckgMvIVI3fcjFuYARz+eHAMrzEvqRVQGqhkmatDv2nW3jpJXBDjJD4P6jyclc/BIwqmWFECByRP8SG2J9AQ56iSd/VzfdzI7WsSS878ApeAP0+WSsDxx66lXR6pKh4YHrQ7KO6OaVSvY8TR6HQXwiZS+679lUT2QmDnDQCo/O+Hg+tkAlWHgqP/h+MnR90ayDilNTzS33r+sPZfbp6lUCkaJJD/Q7Sbk1pcMAVFj5+29QzQF3HitbjovbeI0Qxh44oLR01NJfFtJeE8uI5PFzTydbt9JIAsHxYfedxYB+RWQMF8NKZ/Y9wSpZ1inHgDl+yW6M8rAm23I7ArwBplV4teKwJ1lmIu1bhN7W+GLiO1rfnIN6v/mSYwDWKPfjk9QMOtMEdFkZs3cIU2ZXzOP5nMfnwA84kKtHca1VxI8smcxrpEp9/F74qBnSiTCkkl3Ba5PQbXu3qAPlMg5CKg80ohfAhMMngEwdrMikCHgnnl3NU5J4Ff44Io+10EVSr+fNBdR+f7UFvd4l0CCuu+wajk0DIXZDVSdHR6WbCJyy+8lCjAYB8pH9qLfzzgidqpQiTQ== X-Forefront-Antispam-Report: CIP:4.158.2.129; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:outbound-uk1.az.dlp.m.darktrace.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(35042699022)(376014)(1800799024)(23010399003)(82310400026)(36860700016)(14060799003)(56012099006)(11063799006)(6133799003)(18002099003)(22082099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PhCBfEbsyvqoeio812WXGtGHjGzCIs7XT8SYECULyWiI++hWMOl+iV3qQ5w4njPeg4RuDEwmc9GdTHwwsVsqkHkMsO4NOY5ANxzooDwTI2pZNfGv5rsDnXSS2Uoxa5OluAYUUdPRFs5kqmU1B2usuDESkSKWQecq054mlG4uGc2kK5+gWl1yLLLv5O+xDP7qn4L1Ud0Yj7J4WWRcKYZE84h7A0krCFltyNfqLEDv58sxD5RWflhIV6aFOfo3I+COWNqNBHKXMBkly6dHWtdTYgA6COED5D/TyyXWKUdLbdqyGurLaL8TsPZnjfKF70iq/9kBwrsYyW7LEuzvh6m1Jm/5dgfMk31RvSH9y/xfbT479EIgBfjGJ72H1aAv5UhqY0wtxsWuc2P7bZ805uYiTjsPfcYui2mGfJazdVhxPWChwkx+PZvBTk56agVlXVIm X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2026 18:09:43.8064 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 69eb4edd-0f39-450f-2113-08ded3ae1982 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[4.158.2.129]; Helo=[outbound-uk1.az.dlp.m.darktrace.com] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF0000019B.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9308 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org From: Srinath Parvathaneni Add support for `NT_ARM_POE` dumps/reads for core files. --- bfd/elf.c | 25 +++++++++++++++++++++++++ binutils/readelf.c | 2 ++ 2 files changed, 27 insertions(+) diff --git a/bfd/elf.c b/bfd/elf.c index c9a68404e9d..c7f557b8be6 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -64,6 +64,7 @@ SECTION /* Names of a pseudo-section which represent core notes. */ #define NOTE_PSEUDO_SECTION_AARCH_FPMR ".reg-aarch-fpmr" #define NOTE_PSEUDO_SECTION_AARCH_GCS ".reg-aarch-gcs" +#define NOTE_PSEUDO_SECTION_AARCH_POE ".reg-aarch-poe" #define NOTE_PSEUDO_SECTION_AARCH_HW_BREAK ".reg-aarch-hw-break" #define NOTE_PSEUDO_SECTION_AARCH_HW_WATCH ".reg-aarch-hw-watch" #define NOTE_PSEUDO_SECTION_AARCH_MTE ".reg-aarch-mte" @@ -10735,6 +10736,15 @@ elfcore_grok_aarch_gcs (bfd *abfd, Elf_Internal_Note *note) return elfcore_make_note_pseudosection (abfd, NOTE_PSEUDO_SECTION_AARCH_GCS, note); } +/* Convert NOTE into a bfd_section called ".reg-aarch-poe". Return TRUE if + successful, otherwise return FALSE. */ + +static bool +elfcore_grok_aarch_poe (bfd *abfd, Elf_Internal_Note *note) +{ + return elfcore_make_note_pseudosection (abfd, NOTE_PSEUDO_SECTION_AARCH_POE, note); +} + /* Convert NOTE into the appropriate note pseudo-section for the AArch64 FPMR. * Return TRUE if successful, otherwise return FALSE. */ @@ -11179,6 +11189,7 @@ elfcore_grok_note (bfd *abfd, Elf_Internal_Note *note) case NT_ARC_V2: return elfcore_grok_arc_v2 (abfd, note); case NT_ARM_FPMR: return elfcore_grok_aarch_fpmr (abfd, note); case NT_ARM_GCS: return elfcore_grok_aarch_gcs (abfd, note); + case NT_ARM_POE: return elfcore_grok_aarch_poe (abfd, note); case NT_ARM_HW_BREAK: return elfcore_grok_aarch_hw_break (abfd, note); case NT_ARM_HW_WATCH: return elfcore_grok_aarch_hw_watch (abfd, note); case NT_ARM_PAC_MASK: return elfcore_grok_aarch_pauth (abfd, note); @@ -12900,6 +12911,19 @@ elfcore_write_aarch_gcs (bfd *abfd, char *buf, int *bufsiz, aarch_gcs, size); } +/* Write the buffer of POE register values in AARCH_POE (length SIZE) into + the note buffer BUF and update *BUFSIZ. ABFD is the bfd the note is being + written into. Return a pointer to the new start of the note buffer, to + replace BUF which may no longer be valid. */ + +static char * +elfcore_write_aarch_poe (bfd *abfd, char *buf, int *bufsiz, + const void *aarch_poe, int size) +{ + return elfcore_write_note (abfd, buf, bufsiz, NOTE_NAME_LINUX, NT_ARM_POE, + aarch_poe, size); +} + /* Write the buffer of FPMR value in AARCH_FPMR (length SIZE) into the note buffer BUF and update *BUFSIZ. ABFD is the bfd the note is being written into. Return a pointer to the new start of the note buffer, to @@ -13024,6 +13048,7 @@ elfcore_write_register_note (bfd *abfd, { { NOTE_PSEUDO_SECTION_AARCH_FPMR, elfcore_write_aarch_fpmr}, { NOTE_PSEUDO_SECTION_AARCH_GCS, elfcore_write_aarch_gcs}, + { NOTE_PSEUDO_SECTION_AARCH_POE, elfcore_write_aarch_poe}, { NOTE_PSEUDO_SECTION_AARCH_HW_BREAK, elfcore_write_aarch_hw_break}, { NOTE_PSEUDO_SECTION_AARCH_HW_WATCH, elfcore_write_aarch_hw_watch}, { NOTE_PSEUDO_SECTION_AARCH_MTE, elfcore_write_aarch_mte}, diff --git a/binutils/readelf.c b/binutils/readelf.c index bf27f9eec23..61354d7ab11 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -21915,6 +21915,8 @@ get_note_type (Filedata * filedata, unsigned e_type) return _("NT_ARM_PAC_ENABLED_KEYS (AArch64 pointer authentication enabled keys)"); case NT_ARM_FPMR: return _("NT_ARM_FPMR (AArch64 Floating Point Mode Register)"); + case NT_ARM_POE: + return _("NT_ARM_POE (AArch64 Permission Overlay Extension Register)"); case NT_ARC_V2: return _("NT_ARC_V2 (ARC HS accumulator/extra registers)"); case NT_RISCV_CSR: -- 2.43.0