Message ID | 20241125162846.94691-1-matthieu.longo@arm.com |
---|---|
Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2ED893858C5F for <patchwork@sourceware.org>; Mon, 25 Nov 2024 16:31:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2ED893858C5F 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=By9sXvNh; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=By9sXvNh X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazlp170130004.outbound.protection.outlook.com [IPv6:2a01:111:f403:c200::4]) by sourceware.org (Postfix) with ESMTPS id 21CB33858D38 for <binutils@sourceware.org>; Mon, 25 Nov 2024 16:29:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 21CB33858D38 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 21CB33858D38 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c200::4 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1732552151; cv=pass; b=RBxl1bc+MfMka+bfAKRXPRwyaQKOxpMy3jT0sWhfU5AbL9drxAnmhLF5/VXBI+Oqs3WcG9KX0GeMjFvxs9ooce5sU+JNyYX65aF00IyaJTid7Dqr+rv0OSGfm+ws968o4IqBtiS/bK4JHcXxD/Aby8DTMrs9CAcGJrB2+TuMXkE= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1732552151; c=relaxed/simple; bh=OzSwexEXndBFnouDqoHEBVtYtwCmD1Qrif0dkug2HF0=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=Ahtq/9tWL6CGNsuj/5cckh+e0RLpE6KFCI1QYkiQ0HBSYOENaCYtGa3TTc6A81BEczZgOQ7VKUbucCIDex4X21kiK/afDEeKE/bn6zhZ0+6a8mUtc1qF9iQJQZPy1mDeNhCKlnjaFXY9zwr/8K0L0l9IsBdtSfUhoqFgDZR+/vU= ARC-Authentication-Results: i=3; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 21CB33858D38 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=DGHu9HtTHnLhjotXhOK2BJCfmwskLd+NZXCydIadveT/mjyONzjDqsDsimPW4mm+R64HZpN761+LxUi2PL1yY99OS86HyTvar/2fxWiyWT0ki45aUZRmEk+F++Bg/WEr3AhsLfShuM3Hr0zeUbJ/eR4Yi8Xl9szXxKNB8z6nVRpQMwTD+a4gxO5VtBVTU8WTWBF/Ww6G1xzrZrjPvRSF0v2ZHuJT1SyOFJ9N5Xgrk01odU1bsq2QEJIokQ2YqLcbomQURyGkU50EEga3/7zueeiiVa1emHM88vSkGht3wtv4HAoA6bQ0dBqs2eRKdulWtrxFpwg0oRB5v6Lo1PwZfw== 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=qgWhOlr025jONIOEkJQEq26U7urga3WBxnYKl2y0Oo4=; b=l4DAMnOMQFWSDNWEnjSfAlTez3ASSjpUNAP8gWRRKv28Z+5m6YOt+7xOjFAG0dFJEMR3EofMmbFkQB2ykmjceE1N6Cdn5VP1b14ndXZ8q3w/chU28LwmFcEsTAzp0LRgEY3nf2Mj828Zz1x3v1Vrc7sSolzw98EbQG8Tqr6Ld7lRYYLhZXt2hB5OpfFavcH3FwQP4wMcymo/TY9f2DHsC3gQlcPAf040zABLfy3XhhsRQAPWxZZiqefNRFWTbR52nRjtOZ9EsY1p8dLk0oAKzlzFrTtwBbuz2lq6w1WL02hgTiFXcNordrwd8kXb4U7Mv+qm/y+pThf4CZhiXayhew== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) 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=qgWhOlr025jONIOEkJQEq26U7urga3WBxnYKl2y0Oo4=; b=By9sXvNh/RLuKWrmUIrdT8bivGOCxrliAxkzfl2+Ndh9ZgvPWq97CncuftAzHNymlah1vqFJnkW8LjMHKF2nW7eINKCUM0xIy/JR+LRTFYQ0XrK10U2bAJt1wm5eyDk+Tswnq8/TOhPQwV0Q3+rtkxHK50ZlP9CVFPhSkvY6DRo= Received: from DU2P250CA0023.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:231::28) by DU4PR08MB11214.eurprd08.prod.outlook.com (2603:10a6:10:576::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.20; Mon, 25 Nov 2024 16:29:05 +0000 Received: from DU2PEPF00028D05.eurprd03.prod.outlook.com (2603:10a6:10:231:cafe::a3) by DU2P250CA0023.outlook.office365.com (2603:10a6:10:231::28) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8182.20 via Frontend Transport; Mon, 25 Nov 2024 16:29:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) 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 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DU2PEPF00028D05.mail.protection.outlook.com (10.167.242.165) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8207.12 via Frontend Transport; Mon, 25 Nov 2024 16:29:04 +0000 Received: ("Tessian outbound d013e61db77e:v490"); Mon, 25 Nov 2024 16:29:04 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 02f11e099ec3b1a0 X-TessianGatewayMetadata: /olUQx7j618Ab5EcIL20SGLtHuQpql7VJJ6+ubPr+Dw1poZbxj791QXoUoUdiBsbZnGNa6G3q0DZpQ/z9dweA/RIkb9Z7F3/4PCpYSPslKQz6PT7yAjq/7aKkhY6TNnr79yKTQHXVdDmkGjiw9Seriwsxb9f7Vh6eEEgBzDatxo= X-CR-MTA-TID: 64aa7808 Received: from L12ce3abfad72.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id BE5F8860-727A-4274-A710-3AB4C8E5E288.1; Mon, 25 Nov 2024 16:28:57 +0000 Received: from DU2PR03CU002.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L12ce3abfad72.1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 25 Nov 2024 16:28:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lqJ/MsVFY5iCQDxV7aEosk53Ly5KBu85fUFvu0rHDB0jaldAima2mIs9WHEdrMwGtnx6lz1Os9kiFkvDXmXkFgR1PRflQxyY1qH7/6KNBlyYBI2AKr7pncd/nftiDfYa02mx3pNEzDSuOZLcj3/02gC33KUjHaiVlL0TCldUgwm4DC9W3x/0oZxs6qxZh3o9ohb83Og3N6EkyMheRmsKl+dJIFAoEh0RR6Gr+JIegrJRoRMSrPQm8ZJINn1G76UT8R1+HELY5JtY6uI6xaHm0VRCPw9Q4VaD4mpjugISNFRNgDSjouK4oVN8T7iGwXa4Nr3kdvl2CupJhxTF1WID7A== 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=qgWhOlr025jONIOEkJQEq26U7urga3WBxnYKl2y0Oo4=; b=rPAyxEWLd9J2pwr1xSUOWm+xIYYCG3CQFYNQ/KZCF+PTf9tc/5F5mjGroyUxLI3E35DzdbdUacAnLaOS7SybFVjuLTum71ddnpgYH2amSOmT8x0B9vXRC6AENMYJILn+XLy4IeZzM3q+W8KUGGc/vhrzOXmoW+C07BRTkszTnKKRUc8AkE6gaJwVMTt4Vd+4qumLsttBbERfLuVeBGoMuILZRFA+ZH3URip5DRb+RcSXc1Pn+4oqLJ/PpGF3yK3Bg/dM7jGRQBm0orrBmT/2T9wyVlopj7rkPTvF7zoMYsvnOHfk5/U9C0rEqM9fAZe7TFNthg3rERIWkJ3Uh12dig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) 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=qgWhOlr025jONIOEkJQEq26U7urga3WBxnYKl2y0Oo4=; b=By9sXvNh/RLuKWrmUIrdT8bivGOCxrliAxkzfl2+Ndh9ZgvPWq97CncuftAzHNymlah1vqFJnkW8LjMHKF2nW7eINKCUM0xIy/JR+LRTFYQ0XrK10U2bAJt1wm5eyDk+Tswnq8/TOhPQwV0Q3+rtkxHK50ZlP9CVFPhSkvY6DRo= Received: from AS9PR05CA0255.eurprd05.prod.outlook.com (2603:10a6:20b:493::17) by DBBPR08MB6249.eurprd08.prod.outlook.com (2603:10a6:10:203::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.21; Mon, 25 Nov 2024 16:28:54 +0000 Received: from AMS0EPF0000019C.eurprd05.prod.outlook.com (2603:10a6:20b:493:cafe::6d) by AS9PR05CA0255.outlook.office365.com (2603:10a6:20b:493::17) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8182.20 via Frontend Transport; Mon, 25 Nov 2024 16:28:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) 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 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AMS0EPF0000019C.mail.protection.outlook.com (10.167.16.248) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8207.12 via Frontend Transport; Mon, 25 Nov 2024 16:28:53 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 25 Nov 2024 16:28:52 +0000 Received: from PW070M4K.arm.com (10.1.38.166) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Mon, 25 Nov 2024 16:28:52 +0000 From: Matthieu Longo <matthieu.longo@arm.com> To: <binutils@sourceware.org>, Indu Bhagat <indu.bhagat@oracle.com> CC: Richard Earnshaw <richard.earnshaw@arm.com>, Nick Clifton <nickc@redhat.com>, Matthieu Longo <matthieu.longo@arm.com> Subject: [PATCH v1 0/4] aarch64: add DWARF and SFrame support for new CFI directive used for PAuth_LR Date: Mon, 25 Nov 2024 16:28:42 +0000 Message-ID: <20241125162846.94691-1-matthieu.longo@arm.com> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AMS0EPF0000019C:EE_|DBBPR08MB6249:EE_|DU2PEPF00028D05:EE_|DU4PR08MB11214:EE_ X-MS-Office365-Filtering-Correlation-Id: a40d3b2d-24b7-4f4b-c8c1-08dd0d6e474f X-LD-Processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|376014|82310400026|1800799024|36860700013; X-Microsoft-Antispam-Message-Info-Original: hXCtvgMT3uOJH0Tv9x4nfWFhOzcQhJIhg/kg+3XKotSIXPJ7uAAapdH+DFjOBSk693UXIMpo89gHNK2YcZG/pDIzNVn+embLlL++gD1lsSYluaW2N3ixMXJVHUNO+Y3TjGSW9i7DVcUtp4O6Br7fApK1nrEOBvBI0SklV+kaMHzhg7ZbM3KjP2AsOOzA5KA+eas72CQmc8Hq/LmpbGyvW0+Z7sgD3iklUFcvh8ClbBdLKax876jvb8m6IWijDodqoFCVhGQ9lAIKH/qMhOtJdLq1eqbyCQtR1efPpeD/n/K77ZoLk1ObZos2+TGQvXsos4tm79TW4A8uKoZHYxGCJCjOjLk8DlpcGQPGK5PZkjIxtpQIY0itnvlewszRkpW99IFIaetaFS6JdLWjNdu/X+cOr2lcCIt4BunCg8oMQlQHEKMXxv0sPC4DPxf5OkO0vBvBxGSbUUD0QzTfiDv46ww9PzsiOn0jXY8jv9JnqSU6/obrMDUgzJBnee0mQJrCOzFH3vGc+N4WxxJXiPXdKeBN0NHMN8M/xifmwp4xAYvoOln9gY7eO2GiN0g75tVGLkv9Pak2XSnuK2CZ1rVyD2hVwrRYhriqNQt3pirY+hqms3u22DEhbtxaylEfHyaGEvSB2O5+vyinfsmlxZ8Eg1aO8u7ETNrvFXsRjO1DY3mbG9jqmVTYlZKLklMmuTL9Xv/Ir6J4sBQoUPRGwfwSX5NQ4LeEaVjAspqeMEUGfwg2sX3olLZ+55qMAf23TddAkDY+F/4BleZImoWEZjaQ3yspXhKnPSrHV3HsmQC0r+gvw/Gk5A/RxFjdij94h0vLr++1H8XM3DoydRfGJys3yyBoeQsXgDUuYkgvdJuHROYYJI0Zck4Y7usXtjYo1Aot8kyn/jFfALSR4XupeF8BA0AOpyRhQRd82jq34x0wcZjEmkzSZon9t7Yj7WYCQxOH2N88P2hqPTL2j38mlgT+02nAvb/VtQsZ4/szrWXjCQIt59+uckHjeGtRRkWKDoBXW0TTvUsy7n0eoiKQUEzq7k5QdYKWoGANseM5K3o8oC2+5RHMVK53XPpcgUtO+EWPcSp15iti1HEy5jZlK7VGofZwCyqxbVc6zi0Exh+Kr4k6OezEPu+TLCIZNpFgfRbrhWm9UaivfQoA1ssJGjfMJPS5LW1yluD93VJYrxGdd+kCQ0DN4pzYykVxY5vGLGlACLEHYod47ccvNfoTSSfzJye7tb0e8zdmZY0CnlyZQHvmq1cHgw75Jh72T+j8HDEGBwvyAhr9Th/zDGdR8/YqWyF9Pch6ISc5RKinmN0RCmoCqG99qIdDrLirCGDw7v3btWBOSDkbtUmoUQYkg1vRkaKKxgmf3gYvNnSZM1UumFYHWAMTjtvCur3vYovpUiUyF7NTn3fMDqTOtI5UsUx2xA== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(82310400026)(1800799024)(36860700013); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB6249 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:20b:493::17]; domain=AS9PR05CA0255.eurprd05.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU2PEPF00028D05.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 5eba5641-dff9-41d1-d497-08dd0d6e40b4 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|35042699022|82310400026|14060799003|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: nfUcPoQnX7KMI25Y2q40teNK+GO66tr699IDzB45z9bOTPi1BDbvedWXSE7LZ0vZu9tGwTVQ0bbRLwJ5sAXuJFuG7SNOPM4pTZ9dknrTqZuWqMcJsgbT7s7vqDGwsVidQ2IsU0jMmTXPB1moxCIKH3wWGWjDrMG8flR7ffl9OICmya2MMzXTmwe1Yc+DzzK5IWA+EvNqJYzZ5GfrB25f6vTlqZi41+bO20etOVXrO0qWN4bAkWePe42pk6RLCiv7p5SPrUyiZhU2YONxyZtKaTnUxGHM6BVrQZ0t/IZujdSCEwVUorUnIkBEqKpEoDZi7vKV4btd48jL5dpdl6znHTisQtxdzmUMEocwzYPBah6qdf2EFQf/EKAomPouR31KbXjMofFLnmMugpYhcQjbhN6fOj5gA0dLtjNC1M8953yxDXiHF4vuTICq0wU1peGplEBwePAEaHkK1HkZ83g4/PVJQlFYnnmJRFg5J/oWo80yEklwzYX27vb4wGlykI5JTTQpv9EHgL/czao73Y0xKuCczIaT/ACsZ1sOr8Liv46sQkmAbT/GqQsvmDprClfRXQVwgelWxXENbroaqabktL/bN5kNtprlNbBEgHddSi7GDKUD9d+KRXQ2jAjideHq82nrEUjP22XLLLdnIfLb79D1jjB0DCeJP8Heg3+7XQwT+4bRebNG9kE2B8uBQ744FsNtXiiQCP9bLp60O58kYR7Y0xg9oST4wQS8waU+F6AcLzTymh2sllo5s589dfw8JV1iK/i6bV5CiUTwoci5ITk056ugNvm4mvHNZH/nuYy1Cdy0PfwbOoTR/znjVfoZKP7yMoEKElrWmIwKeQVE+qzZUAGnV0ttRn8mONOuU0tvFdaFvVhYp5gA70IEqYaTM+yvc2cnIERGagdINzpEdR7HWQ+X7LgZLkh7cKV8UObXn4CuHhHnTTyrLZ/qkJIJ5iaHc7hR+uHnHpr6/NB4fAHk6mVjna+dqdUhZebQSHtd5JBBrX14DaMGa/pUsKMW5K0XA10X2J2LiS1FJYibds3+TH5H0idgFFQ1AvIsukkz5wUeW+3o+htQ7ZjXzemy6uUl+a6ZLH/LNGJlYFJP92A5UhjIoLf4uISk+C785o4DB9HIdQHDHlZDD5uKkYLM/XqIGzcTlgU0XEKK7H6FCCf8345p/KqEyZguk1vyAqVW4LYtvKeDG8hPpuD/njnUtwiVxcyqm9pu5Rh4Unkmko7dPwwn75oTtGu5zvmhEWfYeIiHZxI7xhe6eANVSISMoIaO0zhze3CTVIgPeB3i9AC1fjK8lAkA4u4Un9pA+tehOFxE6DfCeSVsa1jBNN1CvFIo2dXY0w0pegaZCHIFk0B6YxcF/u5PyhLnG/81JdProgeKY1tS5j1QDR8PQW1AqV1nMyZnqDVtdk7HfuSgDg== 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:64aa7808-outbound-1.mta.getcheckrecipient.com; CAT:NONE; SFS:(13230040)(376014)(35042699022)(82310400026)(14060799003)(1800799024)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2024 16:29:04.9984 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a40d3b2d-24b7-4f4b-c8c1-08dd0d6e474f 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-AuthSource: DU2PEPF00028D05.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR08MB11214 X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
Series |
aarch64: add DWARF and SFrame support for new CFI directive used for PAuth_LR
|
|
Message
Matthieu Longo
Nov. 25, 2024, 4:28 p.m. UTC
This patch series is based on the feedback obtained from a previous review [1]. This is in no way a complete implementation of PAuth_LR, and only focuses on DWARF and SFrame. ## Context: The Pointer Authentication (PAuth) feature provides instructions that enable software to sign an address using SP as a diversifier. This form of PAC instruction is typically used for signing return addresses that are stored on the stack. The new Armv9.5-A architecture introduces an enhancement of the previous PAuth feature, called PAuth_LR. It aims at hardening the PAC in a signed return address. When signing the return address in LR, the PC is used as a diversifier, in addition to the SP to generate the PAC code. ## Details 1. Patches 1/4 and 2/4 clarify which CFI directive should be used on AArch64 for PAuth. In GCC 14 and older, the AArch64 GCC backend emits a directive corresponding to a Sparc DWARF extension (".cfi_gnu_window_save" instead of ".cfi_negate_ra_state"). This behavior contradicts the document for DWARF extensions on AArch64 (see [2]). In practice, this behavior didn't have any consequence as the two CFI directives share the same binary encoding (0x2d), but from a developer perspective, created confusion when looking at the generated assembly. This issue was fixed in GCC 15 [3], but this behavior is preserved in binutils for backward compatibility with older versions of GCC. 2. Patch 3/4 defines the new CFI directive .cfi_negate_ra_state_with_pc for PAuth_LR, and adds support for it into DWARF. 3. Patch 4/4 skips the new CFI directive and emits a warning, before failing to generate the FDE entry. Regression tested on aarch64-none-linux-gnu, and no regression found. Ok for binutils-master? Regards, Matthieu. [1]: https://inbox.sourceware.org/binutils/20241108152505.3554049-1-matthieu.longo@arm.com/ [2]: https://github.com/ARM-software/abi-aa/blob/main/aadwarf64/aadwarf64.rst#id1 [3]: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=9e1c71bab50d51a1a8ec1a75080ffde6ca3d854c Matthieu Longo (4): aarch64: make explicit that CFI gnu_window_save is for Sparc, not AArch64 aarch64 SFrame: use preferred CFI directive for AArch64 PAC aarch64 DWARF: add new CFI directive for PAuth_LR aarch64 SFrame: skip with warning new CFI directive used with pauth_lr bfd/elf-eh-frame.c | 1 + binutils/dwarf.c | 5 ++++ gas/dw2gencfi.c | 10 +++++++ gas/gen-sframe.c | 24 ++++++++++++++++- gas/scfidw2gen.c | 1 + gas/testsuite/gas/aarch64/pac_ab_key.s | 4 +-- .../gas/aarch64/pac_compat_cfi_window_save.d | 26 +++++++++++++++++++ .../gas/aarch64/pac_compat_cfi_window_save.s | 20 ++++++++++++++ .../gas/cfi-sframe/cfi-sframe-aarch64-3.d | 20 ++++++++++++++ .../gas/cfi-sframe/cfi-sframe-aarch64-3.s | 21 +++++++++++++++ .../gas/cfi-sframe/cfi-sframe-aarch64-4.d | 25 ++++++++++++++++++ .../gas/cfi-sframe/cfi-sframe-aarch64-4.s | 23 ++++++++++++++++ .../cfi-sframe-aarch64-pac-ab-key-1.s | 8 +++--- gas/testsuite/gas/cfi-sframe/cfi-sframe.exp | 2 ++ include/dwarf2.def | 4 ++- 15 files changed, 186 insertions(+), 8 deletions(-) create mode 100644 gas/testsuite/gas/aarch64/pac_compat_cfi_window_save.d create mode 100644 gas/testsuite/gas/aarch64/pac_compat_cfi_window_save.s create mode 100644 gas/testsuite/gas/cfi-sframe/cfi-sframe-aarch64-3.d create mode 100644 gas/testsuite/gas/cfi-sframe/cfi-sframe-aarch64-3.s create mode 100644 gas/testsuite/gas/cfi-sframe/cfi-sframe-aarch64-4.d create mode 100644 gas/testsuite/gas/cfi-sframe/cfi-sframe-aarch64-4.s