From patchwork Mon Nov 25 16:28:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Longo X-Patchwork-Id: 101836 Return-Path: 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 C5E7F3858416 for ; Mon, 25 Nov 2024 16:31:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C5E7F3858416 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=goj2eJL9; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=goj2eJL9 X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20615.outbound.protection.outlook.com [IPv6:2a01:111:f403:2612::615]) by sourceware.org (Postfix) with ESMTPS id DA63C385840B for ; Mon, 25 Nov 2024 16:29:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DA63C385840B 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 DA63C385840B Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2612::615 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1732552162; cv=pass; b=GlajGKeB/QKKBMkECxnLFkyVB8YsZlxrF7A5TmPCCgyhxYdQsLlPeaXo5XebIuJkK6NCGak+EQc4OEIuH0mbE1KsGyVM+fub48/eGZZ/npVMg44kXtpQgcKC7sqFjQOn0PB0nK66CsdIkrSqHWaZDA0KKgDWnIrNyVAfMexQfts= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1732552162; c=relaxed/simple; bh=pZ/73LUGTm9tHLepkNASrr86bXtVjREGI6ki7h9CYY0=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=WtwgOs9aQyf9GRoAHKtA91acISZVF/om5ElCYwfAUB/W/BVxY7aWfQF36LiHD/dsM0NR74b2XG3p4m7G3oPvvZsDtjzWglZUe2gidzTNY6wlkJ6gcA5JaKfK5Bue+PI4bABkcELlq/IupRNe7Hl2nxQLb4npQCmC6VaQLo2oewM= ARC-Authentication-Results: i=3; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DA63C385840B ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=CmJLddpCZyzIBgdwUv9gnu01e+1lA7SF2sMSL79gwRUYfjJZtwPnUwm6B6waacDjH7T7M6iHS1qcFUtf7AhvzKC4A9jih5cpEm4cNUP1jn/M8wtZe7D8jfgm3K+8i/o1Nfge9RRdwgejBgBIoun6XDpgNq/3y3qt+h414JFKFmC01JksUJNxPYvHSuRPUrHkvNc2Od0xuUi/eV8/uENy9pgVPoUkSqmL7gADivzoSlfj91oiKBAoVfif08CVPRYvkfk0idy1hZBZkkF07GPZqbxpBWwYKhfNI3KPEwkYB6m/qZb6ZulGicxo42JFADGpD14C5QEWr51oC9QfE/+EQg== 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=bCEfyw6D7Pasmnaj8hTy0MnEWWCd/+DB25q2s8TvRi0=; b=YjuxBCqtrPohtTBQtg5+uPsJCH/iqrJCZESRnW74VaRHHkrQ+ebyd8cfZh8Cs0fTBFIb9qiW8+u8tjr2ivGk2JgG3dpU5wCPTlv43gjRsTK1tp3eeWtAkyAUaNiy5zvE3IIc9xEl17494yNuwFQ0CmplfHMi8mio7ju6JPdzg4q4/l7LUx0652qffH5BM5mnNZiy8x3iqDWR4UuAOKOFDs8dLIf9/oouRLwZbyIbu+8srZWWobi+pxHRXpmIn8qWqYA77ZNxifp4D6TDO5uXSwc3ddcJLz0UMSKXsFNZ7/v8MIT8eVr3BbRUoMQu27beWEOTo1ih0Kuj+5K2v+eYIA== 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=bCEfyw6D7Pasmnaj8hTy0MnEWWCd/+DB25q2s8TvRi0=; b=goj2eJL9VEWeQchI6r31+kg8alNA/ZlG/Omxm01Z1PQQ2baAGy2GzRADuJoZEz2S85J29uDf6kqx7N139H7EQ2z4os+/XtCOfvshZDcuWi7KRjkzvTGbMzbi6IRfznXg25LPIXKLx6jrZGFgqEV61eH2MEv6PoQYK0YC/CFqbQs= Received: from AS9PR04CA0161.eurprd04.prod.outlook.com (2603:10a6:20b:530::7) by PAWPR08MB8816.eurprd08.prod.outlook.com (2603:10a6:102:338::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.18; Mon, 25 Nov 2024 16:29:17 +0000 Received: from AMS0EPF000001A2.eurprd05.prod.outlook.com (2603:10a6:20b:530:cafe::94) by AS9PR04CA0161.outlook.office365.com (2603:10a6:20b:530::7) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8182.19 via Frontend Transport; Mon, 25 Nov 2024 16:29:17 +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 AMS0EPF000001A2.mail.protection.outlook.com (10.167.16.235) 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:16 +0000 Received: ("Tessian outbound 99d3b165dfe9:v490"); Mon, 25 Nov 2024 16:29:16 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 5a14fb3db87d1468 X-TessianGatewayMetadata: DMh+t6gBpODZTmY2eQuD4OSvE/YPhnl2+0DxtKEguIIT7uyp0SXgLXXgnCnFQRI4BJabum3RnyUktUXNsmxlf4YYE7wu+Bvw2moC5o3Kpk9QhOw7zzYBHYXCcY7lulD2sMEb3q26NbENvK2dqZYEmKGiHzQf5rez65B2vLO/ru4= X-CR-MTA-TID: 64aa7808 Received: from L1d6c1efa8252.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id DF7449DB-3ECE-4997-83F2-587967E0E355.1; Mon, 25 Nov 2024 16:29:09 +0000 Received: from EUR03-AM7-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L1d6c1efa8252.1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 25 Nov 2024 16:29:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kDShXc/7wUPm9Chyr7xB4GCrfl+wVPpE2hLTC5hDunltk9I3phyALA3MG4O8TBmHtpyNpKXkEpNBJahrkv4syPe8aw7iKTJ2uA9/zkGORYK55UcYWcZtxtMwf41jMB/+Dm7OGTp5bw4S7jvMlFL8a8cPns0vHKx3vHTPvlb9A+YQTifIzkhAjjDCRw9HIzuoAfAaKkOQ0LE2YX6y9Jn3ogNlv9jzSAGwpXAl/3lYhAh9sA3lAWr32gNh0bGOsABmwMjWnnN/XN8UFdFVaUCj8cUTnS8nwcdLEzuXjkwg9fY15D5lH/Tw3yscvOZ8y/oYmruaWdH3+7yOyXYTkwl8Kg== 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=bCEfyw6D7Pasmnaj8hTy0MnEWWCd/+DB25q2s8TvRi0=; b=A9Dk9glzm4rDJvqoq+dgxkzWF+Axn9gkcY8m3myk33jhu6o0DC0UZlWkIyL2k+NzznHboLVOmqpPBitFjTkbHq2dLfPmswp1rVZ4yTgBY+q6mUG/QAAfCAB283RSXg8pLM7h9Ia1+ngiXWVfC6I9JhwY3GZ+pClFgZ/SyH+JfBoE9CcEBRYZwbxu8qREk4BHVUsyIyQ3yvLEDqVyQK21Pzp4I0yZFLtgkY0yRlZVdfCz2tHAA2g36uhUZ04WGGGEe8aLHnZuniC9K0GtHnr4xhai7l2kIvuhT2CSXXEbDAq9n6N5/nJ5490kHg90L8auWbBS+0oJeqKrTGTXPeOsPw== 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=bCEfyw6D7Pasmnaj8hTy0MnEWWCd/+DB25q2s8TvRi0=; b=goj2eJL9VEWeQchI6r31+kg8alNA/ZlG/Omxm01Z1PQQ2baAGy2GzRADuJoZEz2S85J29uDf6kqx7N139H7EQ2z4os+/XtCOfvshZDcuWi7KRjkzvTGbMzbi6IRfznXg25LPIXKLx6jrZGFgqEV61eH2MEv6PoQYK0YC/CFqbQs= Received: from AM4PR07CA0033.eurprd07.prod.outlook.com (2603:10a6:205:1::46) by PAXPR08MB6656.eurprd08.prod.outlook.com (2603:10a6:102:135::21) 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:07 +0000 Received: from AMS0EPF0000019D.eurprd05.prod.outlook.com (2603:10a6:205:1:cafe::8f) by AM4PR07CA0033.outlook.office365.com (2603:10a6:205:1::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.10 via Frontend Transport; Mon, 25 Nov 2024 16:29:07 +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 AMS0EPF0000019D.mail.protection.outlook.com (10.167.16.249) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8182.16 via Frontend Transport; Mon, 25 Nov 2024 16:29:07 +0000 Received: from AZ-NEU-EX06.Arm.com (10.240.25.134) 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:29:04 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX06.Arm.com (10.240.25.134) 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:29:03 +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:29:03 +0000 From: Matthieu Longo To: , Indu Bhagat CC: Richard Earnshaw , Nick Clifton , Matthieu Longo Subject: [PATCH v1 1/4] aarch64: make explicit that CFI gnu_window_save is for Sparc, not AArch64 Date: Mon, 25 Nov 2024 16:28:43 +0000 Message-ID: <20241125162846.94691-2-matthieu.longo@arm.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241125162846.94691-1-matthieu.longo@arm.com> References: <20241125162846.94691-1-matthieu.longo@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AMS0EPF0000019D:EE_|PAXPR08MB6656:EE_|AMS0EPF000001A2:EE_|PAWPR08MB8816:EE_ X-MS-Office365-Filtering-Correlation-Id: c06970ff-0564-4c9e-dd27-08dd0d6e4e66 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: InOG2qZbydbgH6FBsKVYSI8JDZ/Y3qkz7wJMvjKHaDbkXLWpeWlElIB3DlkE+44rW+NvTDvkgsHg4og4TH2or11W7oe3pCD6Kzxwf8A01ZEaokUN6bdPRsfZigFY+CerTl9Oc4ogDP7QdZuE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dVzBhcCyaqttzMrTbrSGcsehNvD/nLyO26HZfkB4oY0N1na/c3l0Omvl/R3LzeL6ucuY+adPHE67ecUFuNndcPhq9E3v6i+f24mrPbRctVSc1RzaGC+g/bvNp6sZod53QckQiq7tRg4AkTvHZbyX/bHy1imxOsUf9pBiTvFPBW/kKBVY003woGlodNplkAAPTV2YKfoMIM8lbrQRHqbpm5PiNtYsYtNi7hXFQ071hv1GPdl 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: PAXPR08MB6656 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:205:1::46]; domain=AM4PR07CA0033.eurprd07.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS0EPF000001A2.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: a66b50c7-aaab-4177-5fdb-08dd0d6e48b6 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|14060799003|1800799024|82310400026|36860700013|35042699022; X-Microsoft-Antispam-Message-Info: p1ZtH7rw8tZ+MJQ0QS4xRDA4P8nBzV/sE0ckwZX4vromoYKIdnNvukrF6fN/2LDnPPaLHmNAPY9R25tzS9GRvvalQr9Pg7ojI53Hmw4k4O9rabEXhqqWuGRmgIWrrCmCjQhIMDtM8WTJBNIY9wuaHTKawAqo5bgGF58P1hTNHiihPDoW4Sw3BL/9Yv/WeTtZw7iJtGUOgzDQ9fvydXQUZ+PgPZEGY0HngfaR2y98H7WZdPRTMQP2YHTeK96H+WX0pL9YswR8DYBWlroG+4t0YgAjke3bOJUmJiTx5TEQvRweSHT8SG0dKJjUfzgevFnTjnfQ44LToFBrFN066omUcP3jHvrH33cUUVYP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KJD3Uisml/saBUoocDt0mnt 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)(14060799003)(1800799024)(82310400026)(36860700013)(35042699022); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2024 16:29:16.8781 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c06970ff-0564-4c9e-dd27-08dd0d6e4e66 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: AMS0EPF000001A2.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB8816 X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY autolearn=ham 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org - add a detailed comment when parsing DW_CFA_GNU_window_save in SFrame to explain why we are checking whether the targeted architecture is AArch64, whereas this CFI is a Sparc extension. - replace .cfi_gnu_window_save by .cfi_negate_ra_state in existing AArch64 DWARF tests as this is the preferred directive since GCC 15. - add a new AARch64 test to check backward compatibility with old GCC versions that emits .cfi_gnu_window_save. --- gas/gen-sframe.c | 8 +++++- 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 ++++++++++++++ 4 files changed, 55 insertions(+), 3 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 diff --git a/gas/gen-sframe.c b/gas/gen-sframe.c index 626dc33b71d..be48b339609 100644 --- a/gas/gen-sframe.c +++ b/gas/gen-sframe.c @@ -1283,7 +1283,13 @@ sframe_xlate_do_aarch64_negate_ra_state (struct sframe_xlate_ctx *xlate_ctx, } /* Translate DW_CFA_GNU_window_save into SFrame context. - DW_CFA_AARCH64_negate_ra_state is multiplexed with DW_CFA_GNU_window_save. + DW_CFA_GNU_window_save is a DWARF Sparc extension, but is multiplexed with a + directive of DWARF AArch64 extension: DW_CFA_AARCH64_negate_ra_state. + The AArch64 backend of GCC 14 and older versions was emitting mistakenly the + Sparc CFI directive (.cfi_window_save). From GCC 15, the AArch64 backend only + emits .cfi_negate_ra_state. For backward compatibility, the handler for + .cfi_window_save needs to check whether the directive was used in a AArch ABI + context or not. Return SFRAME_XLATE_OK if success. */ static int diff --git a/gas/testsuite/gas/aarch64/pac_ab_key.s b/gas/testsuite/gas/aarch64/pac_ab_key.s index 4b328e72ae4..3b81919409d 100644 --- a/gas/testsuite/gas/aarch64/pac_ab_key.s +++ b/gas/testsuite/gas/aarch64/pac_ab_key.s @@ -7,7 +7,7 @@ _Z5foo_av: .LFB0: .cfi_startproc hint 25 // paciasp - .cfi_window_save + .cfi_negate_ra_state stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 @@ -23,7 +23,7 @@ _Z5foo_bv: .cfi_startproc .cfi_b_key_frame hint 27 // pacibsp - .cfi_window_save + .cfi_negate_ra_state stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 diff --git a/gas/testsuite/gas/aarch64/pac_compat_cfi_window_save.d b/gas/testsuite/gas/aarch64/pac_compat_cfi_window_save.d new file mode 100644 index 00000000000..f49cebcbfde --- /dev/null +++ b/gas/testsuite/gas/aarch64/pac_compat_cfi_window_save.d @@ -0,0 +1,26 @@ +#objdump: --dwarf=frames +# This test is only valid on ELF based ports. +#notarget: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd + +.+: file .+ + +Contents of the .eh_frame section: + +0+ 0+10 0+ CIE + Version: 1 + Augmentation: "zR" + Code alignment factor: 4 + Data alignment factor: -8 + Return address column: 30 + Augmentation data: 1b + DW_CFA_def_cfa: r31 \(sp\) ofs 0 + +0+14 0+18 0+18 FDE cie=0+ pc=0+\.\.0+8 + DW_CFA_advance_loc: 4 to 0+4 + DW_CFA_AARCH64_negate_ra_state + DW_CFA_advance_loc: 4 to 0+8 + DW_CFA_def_cfa_offset: 16 + DW_CFA_offset: r29 \(x29\) at cfa-16 + DW_CFA_offset: r30 \(x30\) at cfa-8 + DW_CFA_nop + DW_CFA_nop diff --git a/gas/testsuite/gas/aarch64/pac_compat_cfi_window_save.s b/gas/testsuite/gas/aarch64/pac_compat_cfi_window_save.s new file mode 100644 index 00000000000..1bfdef71f22 --- /dev/null +++ b/gas/testsuite/gas/aarch64/pac_compat_cfi_window_save.s @@ -0,0 +1,20 @@ + .arch armv8-a + .text + .align 2 + .global _Z5foo_av + .type _Z5foo_av, %function +_Z5foo_av: +.LFB0: + .cfi_startproc + hint 25 // paciasp + .cfi_window_save + stp x29, x30, [sp, -16]! + .cfi_def_cfa_offset 16 + .cfi_offset 29, -16 + .cfi_offset 30, -8 + .cfi_endproc +.LFE0: + .size _Z5foo_av, .-_Z5foo_av + .align 2 + .global _Z5foo_bv + .type _Z5foo_bv, %function