From patchwork Wed Dec 11 12:05:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Longo X-Patchwork-Id: 102812 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 F30B53858289 for ; Wed, 11 Dec 2024 12:13:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F30B53858289 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=PZJZL+qE; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=PZJZL+qE X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2062e.outbound.protection.outlook.com [IPv6:2a01:111:f403:2614::62e]) by sourceware.org (Postfix) with ESMTPS id F332E3858423 for ; Wed, 11 Dec 2024 12:06:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F332E3858423 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 F332E3858423 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2614::62e ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1733918809; cv=pass; b=KMCknDLfapy9Kl/2pwHnz5irTX0xhLCQAaz4BGbN+xcYILzYKckdMpIAmP3hBQQGgSnSWkz4s/L15DjI57/2ehvJgLBArfU/sxsqBRVDfQGCY/o7AXokZapIpqiW2u03K9y08Zt9sZ9FC+G4o6cx6IDKmWydd7SZOJ5SjlEDslQ= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1733918809; c=relaxed/simple; bh=g0eqm4FnGDkk5Y2fU7YVIXm1cpR9j66gIB+BNqg0M/U=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=LrfiGxW74klN2bBuvH5ONV+TxoCJwhUEAXSY1LoYVSDquZDLnERxX1kMVdhAWDgbFhSf2zKxabcUEQgHWJPMRQzfJ7BOC1z6VpTHiEuQ1fI9wOjHOJIDnwd+Tq3c25DOPAqkJtdg6JVqddh8PSoM/vD0CTtm0NYwmmMgbCCkg+0= ARC-Authentication-Results: i=3; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F332E3858423 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=b9QxlJply0B1GcnNDeKtIW1oNq85Hi4ZuzmhVAXSFeBtko5+9dAq5MXfvykyWllbAtBYdTXM6SRRQ62X8b9cMZW23myT4g6X5ea9ntbkfd6cQu1VGmnUKFAfU9xfqJqORdUVMZ+BxbeYrvicrrk+WHyiIW2lY1IDIfFAa9DSizutA1AV2FQqTju8Js2eqYJlk4cBrsTurvpX2msJy1HgD5rOBmHQJ3lXvyaZwwfORYzf90uhdE9Gp5vjXNVdq96mQcgyaEMiNFEtRzVXQu/h24TS4tHHXYRUNnOHow/+rJD6wGOPKXkz6oS952NUV32sUslPy80bS/XVOwIGgxx0Dg== 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=1BYc2UhfKw1Wa6Co8bKte7MzQGjTa/stB+9VB4ODqRY=; b=TRo3A9wXmK/J+l35u/Po3fMNZyDjyzZTRqQt4WhSVGjkTaYqQyiXp7cWGiSHL2HoUi+fEr5S66MOqK9t5E1EE6Zt61xqT8V080dI24VzMco6LGU8TI+DIkmrgs+ye0QPVgI00c++r68qIn7A659Okit6QtfF0uCKKtbsT7GcdUZ/x42/ZcHFCabr0ejyd+TTIizF84Zz1jBT9FPBJyahM0aUNJDKYLNch34ugzbIobSPCuN0/mJX/tHyz1asinwOUYFjxY2PV0eNAEQBgwdEnGZVCcGx8gI6fLei0yPuZKqC6Vj1kAZaZ8YJuw36VpxlIs6UfZaZ/MNiK4TTPAOInw== 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=0 ltdi=1) 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=1BYc2UhfKw1Wa6Co8bKte7MzQGjTa/stB+9VB4ODqRY=; b=PZJZL+qE5CjjghxEylhelkzg/HW7HPfP8BbmmvQVwQj8cf5JdnhQHut2aB9+UVQoFkVf6Ox0LjLkxu2ej2FDadyMms2UGyoi5PKh1I0sMAgPdeB6WtzxWXErQ/nXVpGQqzPba1VjosEMuog7HowD+YzAm0k6Hv2FAfbnbxHhd8s= Received: from DB8P191CA0020.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:130::30) by AS8PR08MB6264.eurprd08.prod.outlook.com (2603:10a6:20b:29a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.12; Wed, 11 Dec 2024 12:06:42 +0000 Received: from DB5PEPF00014B9B.eurprd02.prod.outlook.com (2603:10a6:10:130:cafe::6b) by DB8P191CA0020.outlook.office365.com (2603:10a6:10:130::30) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8251.15 via Frontend Transport; Wed, 11 Dec 2024 12:06:42 +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 DB5PEPF00014B9B.mail.protection.outlook.com (10.167.8.168) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8251.15 via Frontend Transport; Wed, 11 Dec 2024 12:06:42 +0000 Received: ("Tessian outbound 3df7a8fbf509:v524"); Wed, 11 Dec 2024 12:06:40 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: eb51879197170635 X-TessianGatewayMetadata: a7ah4bg++xf7X64aEgCuVcJWET1r/wwSWURyMplAzxNT9Onv1ot0Eq4Oi/SxzXiN2gTUB1lmpkw+gZgG/3eH8E5Uzw8V4fCZVowjslxIxyMufjap1C3TDclUz9kIOn1vmEd9ubZdMPOrJBJE7rlbK1xtWEzXDxpOuQ7Hyc0Jhto= X-CR-MTA-TID: 64aa7808 Received: from L1f0ee98015c2.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id FEED23F1-E5DC-4742-B301-CC7E2B1DC9F4.1; Wed, 11 Dec 2024 12:06:34 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L1f0ee98015c2.2 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 11 Dec 2024 12:06:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GhOvFFUEU86JlvS8cnX7lQ2OpQQnAfB8aNOKe3Y7pohQjQ0scT5PEyIAv75/ZRuOJ6VEfH4NdmaSPPS3bQbDtE+0hMgrb+psNovbHxn/cw5KIqAJzjYw0sRSPiHocpXZ0ef9w+9hyck9lhwUfDwquZy8TBoN4yJ/rzMbetXKo7atO0eaPLNXpg3R3QWig1q+/lOIb2AmgmAjFuIPFTS0emjJ+KC2/NeST7DGAnQvw04xhyfHA8WYyv+gP5bMzqvccetXQEwcM6VedtzfFtV1mXnPRTwDYO2MB3SfC9UELW+i3tpwOIw6O8+3KkpCAcL+avASMXHfsuoRzjfuPsmNTQ== 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=1BYc2UhfKw1Wa6Co8bKte7MzQGjTa/stB+9VB4ODqRY=; b=htSKmkkr1zUTaVs+CctOYLw2cjNlsY4lmaMyOP2UHEmJUKXaCQTLIk+WyVaXGesAklwFxbqpjksFITdkLFnhjM/8MoGcOLFLl1ByEkUhZvWx0Wg8P7/kT0T7tpy9xUu/iHInURGNhHW64+CJ3RObWremxyJmNlhY3ubNq005klMVUerCE/xP/GLArnQy7+x52G5jYz321nKYlv/it1Zkugw6jyq6VSSBob2+Yhcd1v4MMzy4DnDgUDGdpkc2j/9wzn/FMZi08nEN9aaSkwbAomJBesx/Q4ppqHhhcOd9kJm/pARkP4/c/si1HdhrMUNmr+kJSGKmGkNCokxeTbvekw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 172.205.89.229) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=fail (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=1BYc2UhfKw1Wa6Co8bKte7MzQGjTa/stB+9VB4ODqRY=; b=PZJZL+qE5CjjghxEylhelkzg/HW7HPfP8BbmmvQVwQj8cf5JdnhQHut2aB9+UVQoFkVf6Ox0LjLkxu2ej2FDadyMms2UGyoi5PKh1I0sMAgPdeB6WtzxWXErQ/nXVpGQqzPba1VjosEMuog7HowD+YzAm0k6Hv2FAfbnbxHhd8s= Received: from PA7P264CA0410.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:39b::22) by DU5PR08MB10398.eurprd08.prod.outlook.com (2603:10a6:10:51f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.18; Wed, 11 Dec 2024 12:06:22 +0000 Received: from AMS0EPF00000196.eurprd05.prod.outlook.com (2603:10a6:102:39b:cafe::48) by PA7P264CA0410.outlook.office365.com (2603:10a6:102:39b::22) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.18 via Frontend Transport; Wed, 11 Dec 2024 12:06:22 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 172.205.89.229) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=arm.com; Received-SPF: Fail (protection.outlook.com: domain of arm.com does not designate 172.205.89.229 as permitted sender) receiver=protection.outlook.com; client-ip=172.205.89.229; helo=nebula.arm.com; Received: from nebula.arm.com (172.205.89.229) by AMS0EPF00000196.mail.protection.outlook.com (10.167.16.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8251.15 via Frontend Transport; Wed, 11 Dec 2024 12:06:21 +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; Wed, 11 Dec 2024 12:06:12 +0000 Received: from AZ-NEU-EX05.Arm.com (10.240.25.133) 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; Wed, 11 Dec 2024 12:06:11 +0000 Received: from PW070M4K.arm.com (10.57.91.131) by mail.arm.com (10.240.25.133) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 11 Dec 2024 12:06:10 +0000 From: Matthieu Longo To: , Indu Bhagat , "Jan Beulich" CC: Richard Earnshaw , Nick Clifton , Alan Modra , Matthieu Longo Subject: [PATCH v1 1/4] Add target compile definitions in libraries interacting with DWARF arch-extensions Date: Wed, 11 Dec 2024 12:05:50 +0000 Message-ID: <20241211120553.1391850-2-matthieu.longo@arm.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241211120553.1391850-1-matthieu.longo@arm.com> References: <20241211120553.1391850-1-matthieu.longo@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AMS0EPF00000196:EE_|DU5PR08MB10398:EE_|DB5PEPF00014B9B:EE_|AS8PR08MB6264:EE_ X-MS-Office365-Filtering-Correlation-Id: ee2487a6-9050-4060-7ac2-08dd19dc467a 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|1800799024|36860700013|376014|82310400026; X-Microsoft-Antispam-Message-Info-Original: qmQrVd5y5KJbmb2zAHywMjkJOx1ulTMLueOCbt59vUJv6svgrj+hX7XUk+H3mLVTsWChTvL4MfPnSbmCis7CdyJhxCwJwHLQhM7h7EwkhLabYgC91YGYdvFQga3R7kO8UlPynhRuutj/f6badzgrkDnpu4DFwWCWDTL2bjwJ0ZOAr+becnPW8M/OYjByIPGiaOvLy0/HcI0Gdvk7Ud4cGU3HrI3h4oplZ+mDpgzQL+6VYhqy4qbl7Gw6hAJr28DQtodjVCA9EHgiDzyzkHdfNLIu2iRVb/IFedcDlxuJ165HWjo/vWE54yhPiSbCAB6vR5UE9wpxWzIs1OpToNbeXwVekw89EJkSR2K/mkLTkAnRECntPKusGCiuOO8Uz52MqPC/xjGMpGfylhQEnheHwypCk1NGF5oP/btsq7cKpGta9UxoFJpYuCqMPY+N9WpLBKMBqK38+mabLEezFnHgiMsZPMHJJI6fmSSbLBs7lFayePhQG7OepGM2SbOYz3Bs2HcNS8pBkWxwIq+eVP915/abpaF1b0ZTFCZdQcE3uKtRhbramdC1Oo6PrY42VqQ9+TSwLQQd/C2QgAZAqZPX4Dv/tjUHIiAB3NCbjCgUq6rOaqxN/E8q1H3G+u6W//t9FKuy+CWprdXpRLAnFpcM4+r0wuGgWSUhtltD1+vYKvvH18U3KB/MLuteZGfBRBauqnaF3v+onOvVABYafIMIAxrUvQw9pU5yohn/Eo+EAzc5UPu/eNUNaVuTngMABxnsOXr5/ZqozlEkJfH9hlhrsEq31xAxIVPvrDL8UiPBY+RxJalHM2ptDrsdoE9wZz+h5TELbZcjuKqirkxkgRWR7wyAS4jAUqyJvcbsS36qZZfH+BsWJfI3FXiW9y1q/HZSj2ttNlGtnQvhhtXku1KOiNlnu/ckDNowKSl/9XWbeIxGluhUwHg8KWQiHbdhT2EaXM5IblMH8xQ2jAcPgyHkO2VRQK+vhBl3el0YjJBQVXvTSCSgwXRlmb777w3Wzyt5GqmY3NUegjGt6Q+EGrfzq9P4ux1Hi1s+LJptiAak+Fcw/0FZ4rJQp2DhBexsqbnbxQQTZUZAuwY5k4z2eI6kSjdaj5An1TjdeHT8uxrkRLZC7apUo4tg4vFc2qDOoDIMCWaB9Pjjx57L3LaDxsg39A/uNHwr6Ct7iwXk4C9Z3dh7Tfby9LdEdglw4DsU6UYCahFhcqsK9Q/mOmg0K58BUno9aIrjqTA6k/Xz+WaNbKCjo6bIhTaL/rcODiBcjmOnV3qS7+XqG988IJzt652S63rgjInA0DrsF2rUROAkx9gk2gI616VtrRYdYe0o+nFqrQc4MXNQgbVgnRWVCas5m7Vb7UOa+uquT2sYLpfL2PqIv3ld4A9qA88XPzEUZ+N0VevyAUm+S7vEPcwJvcWj6C0WM31qiosVQa90ToeV35YTPqnol78NUMMgw+2DGCR3 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)(1800799024)(36860700013)(376014)(82310400026); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU5PR08MB10398 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:102:39b::22]; domain=PA7P264CA0410.FRAP264.PROD.OUTLOOK.COM X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5PEPF00014B9B.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 10f31c1f-83db-4246-4cfc-08dd19dc3a66 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|35042699022|14060799003|376014|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: GEhONwmEMUuiasYZtDHtDRXdwi8TFxrpRL/bvPlLhv2dZwewMh6+aD/QMmBuB7n7JTF9XUnXXCAqL9qiCrfzyOvQcjD3ROGXQX7RaFxsp3XI3tOOjNlr/5ljCg/piA8zja4GoXsDcd5qPvWhT/gKhDvduOsiTmBmWvYi8n81ZGwT3qU0DQpoxZfKZxQRCBYctFWUpAUiZiL3sXAFv7vYrJF2zWVlbyNgQ9bWELTmgawWc1ld3wWrWxnl2Dt22VrsXLn1LP+a1tOkDTanYkN/WA2OKFk4beb5ZXV3Daxmc+qCqV0OMH7RT7X/+nQq7nc0djytj8n8PEc6CI2ClxOB6XqVXpWeqoWR1i4+cGqLC6fIdGXjn8pHtq5UKonUfSRuJ77jU8TOtpATqNaeNfK5NClJ8IgAc43KlALH9gRpFIyIf/xa+BjIt8BSExJKDHYr2lStOtdIfpv7BkAK3Zh4m1/7FYwd6nw20w3m5avPjkp3TXuR3R6Rue62dRScTT2sHJVWpHs3/5dpNrxwnpeLsNPgY1UC0FEIE/xX+qkbrWddUD/iZfUSLbqFUsgR2nAFHCvmJb1xH4/EIm3AGt6cXSaoV2uDB7CQ+ewy6pDpFe2ptjsdisRLzyQzyWooAxwcW3jDQx78pNeHuiqihdS2UhxNRapt+ZIQHQLVPPTuxcQdgqbOfpOl1Hm9STpEvi+TcfDKf4u5UtMj1i+39KcW7oWVgqtjgGZ757HbuXtjKU17Ep9EUQ8VCY3M+j706Bkizufx6f+MocXJXu1igTRjPTwLVLJt6cgr1r0QNxVT2niz2u8Z3rP962Oo73KSL6C00iYmvPaZVoP+vBP7X+cr1R7SiGYifcWrp777mAtnTsulmkxFXgmZY1J6Herz6YXRW2JZ8CX0PvoryB7t0ubcHWqj45bNjr6J0bBFhCvBzqh0rXzDHciSjisv13dIRZb09FGyvZoiiUKP2RIr+WVGqpOlbokgOqDpfaht8oB47rWWzqqmPHZbCEWFR+5nYKnM73Rr/Kpsq86xParIX+keEurUKrSYR6eBzuNlgB+l993Dic3cdWeRgVv7+OC2RgBYyYan7ifa8Cerca0RdAHEteiJlYlTRUfcG5D4Tqqh5j6QQckaZwjsqbOWT8pn6B0BPRB0wPn0gEvh/8KD5rR2xRDVNKRAvyDcwW1VSXjfY5Q2F200Sr/Shc0uFlHGwGinHCcZ3us26ypNOXKxbyMT1+ek3Kk4wf7c/3D9cEyNaF/Kzqdlk/FwskQxGZHViele9bfa+C4KPTU8oDGFtj4tSOej/4CfNL8Z0kTvTA/k+SB4OXasM23AwmbttRtN3z+ZncnpeWkEihu7N9TNayvBgN8u1EWR+++nagRjbUBcy7fMgW3PYQppPyfaWOnRquUCfAT2X3y5W0q6UObyPnh/MfRoyRzaT2pKrPQgK7tgQUTko6ochYnwmg7Aq24kxuj3AXXVMXv0qeBdxX6hAImPWQ== 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)(82310400026)(35042699022)(14060799003)(376014)(36860700013)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2024 12:06:42.1159 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ee2487a6-9050-4060-7ac2-08dd19dc467a 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: DB5PEPF00014B9B.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6264 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, KAM_SHORT, 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 DWARF 5 standard provides a space for vendor-specific DWARF directives. Binutils currently defines GNU-specific DWARF directives and vendor-specific ones for AArch64, SGI/MIPS, and Sparc architectures. However, the current implementation does not provide a "switch mechanism" to enable/disable those extensions depending on the selected target except in gas via TC_. This patch adds the boilerplate to add the TC_ definition to all modules of binutils interacting with architecture-specific DWARF directives, i.e. bfd, binutils, gprofng, libbacktrace, libiberty. CI-tag: skip --- bfd/Makefile.am | 3 ++- bfd/configure.ac | 9 ++++++++ bfd/configure.tgt | 42 ++++++++++++++++++++++++++++++++++++++ binutils/configure.ac | 12 +++++++++-- binutils/configure.tgt | 21 +++++++++++++++++-- gprofng/Makefile.am | 4 +++- gprofng/configure.ac | 9 ++++++++ gprofng/configure.tgt | 42 ++++++++++++++++++++++++++++++++++++++ libbacktrace/Makefile.am | 3 +++ libbacktrace/configure.ac | 10 +++++++++ libbacktrace/configure.tgt | 42 ++++++++++++++++++++++++++++++++++++++ libiberty/Makefile.in | 3 +++ libiberty/configure.ac | 10 +++++++++ libiberty/configure.tgt | 42 ++++++++++++++++++++++++++++++++++++++ 14 files changed, 246 insertions(+), 6 deletions(-) create mode 100644 bfd/configure.tgt create mode 100644 gprofng/configure.tgt create mode 100644 libbacktrace/configure.tgt create mode 100644 libiberty/configure.tgt diff --git a/bfd/Makefile.am b/bfd/Makefile.am index dadbd0f7882..f4f275bc000 100644 --- a/bfd/Makefile.am +++ b/bfd/Makefile.am @@ -662,7 +662,8 @@ OPTIONAL_BACKENDS_CFILES = \ CONFIG_STATUS_DEPENDENCIES = \ $(srcdir)/config.bfd \ $(srcdir)/configure.host \ - $(srcdir)/development.sh + $(srcdir)/development.sh \ + $(srcdir)/configure.tgt # These are defined by configure: WORDSIZE = @wordsize@ diff --git a/bfd/configure.ac b/bfd/configure.ac index 465a7463d48..b00bde43be7 100644 --- a/bfd/configure.ac +++ b/bfd/configure.ac @@ -1032,6 +1032,15 @@ case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;; esac +targ=${target} +. ${srcdir}/configure.tgt + +case ${cpu_type} in + aarch64*) AC_DEFINE(TC_AARCH64, 1, [Compile for AArch64 targets]) ;; + sparc*) AC_DEFINE(TC_SPARC, 1, [Compile for Sparc targets]) ;; + mips*) AC_DEFINE(TC_MIPS, 1, [Compile for MIPS targets]) ;; +esac + AC_CONFIG_FILES([Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in]) dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of diff --git a/bfd/configure.tgt b/bfd/configure.tgt new file mode 100644 index 00000000000..5bccdc94998 --- /dev/null +++ b/bfd/configure.tgt @@ -0,0 +1,42 @@ +# bfd target specific configuration file. This is a -*- sh -*- file. +# +# Copyright (C) 2024 Free Software Foundation, Inc. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; see the file COPYING3. If not see +# . +# + +# This is invoked by configure. Putting it in a separate shell file +# lets us skip running autoconf when modifying target specific +# information. + +# Input shell variables: +# targ a configuration target name, such as i686-pc-linux-gnu. + +# Output shell variables: +# cpu_type canonical gas cpu type; identifies the gas/config/tc-* files + +cpu_type= + +eval $(echo ${targ} | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/') + +# Check for architecture variants. Set cpu_type and, optionally, +# endian and arch. +# Note: This table is alpha-sorted, please try to keep it that way. +case ${cpu} in + aarch64*) cpu_type=aarch64 ;; + mips*) cpu_type=mips ;; + sparc*) cpu_type=sparc ;; + *) cpu_type=${cpu} ;; +esac diff --git a/binutils/configure.ac b/binutils/configure.ac index 31fab69fd0f..86c4a13a286 100644 --- a/binutils/configure.ac +++ b/binutils/configure.ac @@ -546,9 +546,17 @@ fi AC_DEFINE_UNQUOTED(TARGET_PREPENDS_UNDERSCORE, $UNDERSCORE, [Define to 1 if user symbol names have a leading underscore, 0 if not.]) -# Emulation -targ=$target +targ=${target} . ${srcdir}/configure.tgt + +# Target-specific definitions +case ${cpu_type} in + aarch64*) AC_DEFINE(TC_AARCH64, 1, [Compile for AArch64 targets]) ;; + sparc*) AC_DEFINE(TC_SPARC, 1, [Compile for Sparc targets]) ;; + mips*) AC_DEFINE(TC_MIPS, 1, [Compile for MIPS targets]) ;; +esac + +# Emulation EMULATION=$targ_emul EMULATION_VECTOR=$targ_emul_vector diff --git a/binutils/configure.tgt b/binutils/configure.tgt index 94e4e16c95d..f0a37019e6d 100644 --- a/binutils/configure.tgt +++ b/binutils/configure.tgt @@ -19,8 +19,11 @@ # along with this program; see the file COPYING3. If not see # . -# This file switches on the shell variable ${targ}, and sets the -# following shell variables: +# Input shell variables: +# targ a configuration target name, such as i686-pc-linux-gnu. + +# Output shell variables: +# cpu_type canonical gas cpu type; identifies the gas/config/tc-* files # targ_emul name of emulation to use # targ_emul_vector name of vector to use @@ -40,3 +43,17 @@ case "${targ}" in targ_emul_vector=bin_vanilla_emulation ;; esac + +cpu_type= + +eval $(echo ${targ} | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/') + +# Check for architecture variants. Set cpu_type and, optionally, +# endian and arch. +# Note: This table is alpha-sorted, please try to keep it that way. +case ${cpu} in + aarch64*) cpu_type=aarch64 ;; + mips*) cpu_type=mips ;; + sparc*) cpu_type=sparc ;; + *) cpu_type=${cpu} ;; +esac diff --git a/gprofng/Makefile.am b/gprofng/Makefile.am index a5ee9dd63f3..429ede7ec87 100644 --- a/gprofng/Makefile.am +++ b/gprofng/Makefile.am @@ -82,7 +82,9 @@ development.exp: $(BFDDIR)/development.sh | $(AWK) -F= '{ print "set " $$1 " " $$2 }' > $@ # development.sh is used to determine -Werror default. -CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh +CONFIG_STATUS_DEPENDENCIES = \ + $(BFDDIR)/configure.tgt \ + $(BFDDIR)/development.sh EXTRA_DEJAGNU_SITE_CONFIG = development.exp diff --git a/gprofng/configure.ac b/gprofng/configure.ac index 5a4013c6940..a723c81a92c 100644 --- a/gprofng/configure.ac +++ b/gprofng/configure.ac @@ -259,6 +259,15 @@ AC_SUBST(CLOCK_GETTIME_LINK) AC_SUBST(BUILD_SUBDIRS) +targ=${target} +. ${srcdir}/configure.tgt + +case ${cpu_type} in + aarch64*) AC_DEFINE(TC_AARCH64, 1, [Compile for AArch64 targets]) ;; + sparc*) AC_DEFINE(TC_SPARC, 1, [Compile for Sparc targets]) ;; + mips*) AC_DEFINE(TC_MIPS, 1, [Compile for MIPS targets]) ;; +esac + AC_CONFIG_FILES([Makefile src/Makefile gp-display-html/Makefile doc/Makefile]) AC_CONFIG_HEADERS([config.h:common/config.h.in]) diff --git a/gprofng/configure.tgt b/gprofng/configure.tgt new file mode 100644 index 00000000000..5bccdc94998 --- /dev/null +++ b/gprofng/configure.tgt @@ -0,0 +1,42 @@ +# bfd target specific configuration file. This is a -*- sh -*- file. +# +# Copyright (C) 2024 Free Software Foundation, Inc. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; see the file COPYING3. If not see +# . +# + +# This is invoked by configure. Putting it in a separate shell file +# lets us skip running autoconf when modifying target specific +# information. + +# Input shell variables: +# targ a configuration target name, such as i686-pc-linux-gnu. + +# Output shell variables: +# cpu_type canonical gas cpu type; identifies the gas/config/tc-* files + +cpu_type= + +eval $(echo ${targ} | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/') + +# Check for architecture variants. Set cpu_type and, optionally, +# endian and arch. +# Note: This table is alpha-sorted, please try to keep it that way. +case ${cpu} in + aarch64*) cpu_type=aarch64 ;; + mips*) cpu_type=mips ;; + sparc*) cpu_type=sparc ;; + *) cpu_type=${cpu} ;; +esac diff --git a/libbacktrace/Makefile.am b/libbacktrace/Makefile.am index 5677ecd8865..41b85c7ce32 100644 --- a/libbacktrace/Makefile.am +++ b/libbacktrace/Makefile.am @@ -664,3 +664,6 @@ xztest.lo: config.h backtrace.h backtrace-supported.h internal.h testlib.h ztest.lo: config.h backtrace.h backtrace-supported.h internal.h testlib.h include $(top_srcdir)/../multilib.am + +# Reconfigure if configure.tgt changes. +CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.tgt \ No newline at end of file diff --git a/libbacktrace/configure.ac b/libbacktrace/configure.ac index 1d7aedc74b1..4fcc83ddf33 100644 --- a/libbacktrace/configure.ac +++ b/libbacktrace/configure.ac @@ -576,6 +576,16 @@ else multilib_arg= fi +targ=${target} +. ${srcdir}/configure.tgt + +# Target-specific definitions +case ${cpu_type} in + aarch64*) AC_DEFINE(TC_AARCH64, 1, [Compile for AArch64 targets]) ;; + sparc*) AC_DEFINE(TC_SPARC, 1, [Compile for Sparc targets]) ;; + mips*) AC_DEFINE(TC_MIPS, 1, [Compile for MIPS targets]) ;; +esac + AC_CONFIG_FILES(Makefile backtrace-supported.h) AC_CONFIG_FILES(install-debuginfo-for-buildid.sh, chmod +x install-debuginfo-for-buildid.sh) diff --git a/libbacktrace/configure.tgt b/libbacktrace/configure.tgt new file mode 100644 index 00000000000..5bccdc94998 --- /dev/null +++ b/libbacktrace/configure.tgt @@ -0,0 +1,42 @@ +# bfd target specific configuration file. This is a -*- sh -*- file. +# +# Copyright (C) 2024 Free Software Foundation, Inc. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; see the file COPYING3. If not see +# . +# + +# This is invoked by configure. Putting it in a separate shell file +# lets us skip running autoconf when modifying target specific +# information. + +# Input shell variables: +# targ a configuration target name, such as i686-pc-linux-gnu. + +# Output shell variables: +# cpu_type canonical gas cpu type; identifies the gas/config/tc-* files + +cpu_type= + +eval $(echo ${targ} | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/') + +# Check for architecture variants. Set cpu_type and, optionally, +# endian and arch. +# Note: This table is alpha-sorted, please try to keep it that way. +case ${cpu} in + aarch64*) cpu_type=aarch64 ;; + mips*) cpu_type=mips ;; + sparc*) cpu_type=sparc ;; + *) cpu_type=${cpu} ;; +esac diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in index b77a41c781c..f8c2082c135 100644 --- a/libiberty/Makefile.in +++ b/libiberty/Makefile.in @@ -500,6 +500,9 @@ stamp-h: $(srcdir)/config.in config.status Makefile config.status: $(srcdir)/configure $(SHELL) ./config.status --recheck +CONFIG_STATUS_DEPENDENCIES = \ + $(srcdir)/configure.tgt + AUTOCONF = autoconf ACLOCAL = aclocal ACLOCAL_AMFLAGS = -I ../config -I .. diff --git a/libiberty/configure.ac b/libiberty/configure.ac index c27e08e1428..8ce302b08e1 100644 --- a/libiberty/configure.ac +++ b/libiberty/configure.ac @@ -812,6 +812,16 @@ AC_SUBST(datarootdir) AC_SUBST(docdir) AC_SUBST(htmldir) +targ=${target} +. ${srcdir}/configure.tgt + +# Target-specific definitions +case ${cpu_type} in + aarch64*) AC_DEFINE(TC_AARCH64, 1, [Compile for AArch64 targets]) ;; + sparc*) AC_DEFINE(TC_SPARC, 1, [Compile for Sparc targets]) ;; + mips*) AC_DEFINE(TC_MIPS, 1, [Compile for MIPS targets]) ;; +esac + # We need multilib support, but only if configuring for the target. AC_CONFIG_FILES([Makefile testsuite/Makefile]) AC_CONFIG_COMMANDS([default], diff --git a/libiberty/configure.tgt b/libiberty/configure.tgt new file mode 100644 index 00000000000..5bccdc94998 --- /dev/null +++ b/libiberty/configure.tgt @@ -0,0 +1,42 @@ +# bfd target specific configuration file. This is a -*- sh -*- file. +# +# Copyright (C) 2024 Free Software Foundation, Inc. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; see the file COPYING3. If not see +# . +# + +# This is invoked by configure. Putting it in a separate shell file +# lets us skip running autoconf when modifying target specific +# information. + +# Input shell variables: +# targ a configuration target name, such as i686-pc-linux-gnu. + +# Output shell variables: +# cpu_type canonical gas cpu type; identifies the gas/config/tc-* files + +cpu_type= + +eval $(echo ${targ} | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/') + +# Check for architecture variants. Set cpu_type and, optionally, +# endian and arch. +# Note: This table is alpha-sorted, please try to keep it that way. +case ${cpu} in + aarch64*) cpu_type=aarch64 ;; + mips*) cpu_type=mips ;; + sparc*) cpu_type=sparc ;; + *) cpu_type=${cpu} ;; +esac From patchwork Wed Dec 11 12:05:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Longo X-Patchwork-Id: 102813 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 45D853858D33 for ; Wed, 11 Dec 2024 12:14:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 45D853858D33 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=U1rFHPj5; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=U1rFHPj5 X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20603.outbound.protection.outlook.com [IPv6:2a01:111:f403:2612::603]) by sourceware.org (Postfix) with ESMTPS id 095F23857B90 for ; Wed, 11 Dec 2024 12:07:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 095F23857B90 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 095F23857B90 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2612::603 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1733918844; cv=pass; b=w8WP9hq7CIgURrYdnnfVs+d2Y/ttKNpi6JTKjU3Ix5cLTwdsictnckoxmKI7uCry01oD66G4xB9vhBWCRjjTWZzCw8jme+aWig8SK6g2xb12/fiHPtVdd9CD1houQC9l2frp7eliKaqda6q4zfzzGim0fINFIdiKxwHUaaStI2o= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1733918844; c=relaxed/simple; bh=kj+6EjnDfY/O7zILopjFAGNW8hlLJBdWm/Gr50Cw/wI=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=nblBxt1kZNET9Jfcrx3QfxnEFev59ot8rJeckAKdMymxSjzQU028zZxKS/FpbDCTEN4+XYENNlKcGUWhpXAwMID5ft2sgWtGKtZcU0+cqWMy8N2G2eDlDUnxYUyXthqFTk4Wtvh/1mSmXODcPHcO0kT+mDjZExCxdPnZ0IL7A1M= ARC-Authentication-Results: i=3; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 095F23857B90 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=njKQdaV9un/WuSEN3vocDNGhiR1gYomDwuVRkt5RhamZt+nXvukDlEIApnX8EsJfS81EoVJkVoU5M0V3suguoXslw5OSM5k/cLjv8+dEDPFhEbhrs/ez12GkpL/omEYYqRGbVkQgYkDveyr1UOWM3zS3pvkHyB87LMDMbQKf2bCo9Al33CvSl8cxDm8T5UVU5ODVs9UZZNSwc0zwg5QQ8Q3HSHXrSBiNVZld/mNp/1z9EMYVbFABs3Fk2rcKOe6A1+837F11daxhNO8Z/sLBP/4p9/j0wM5IH4eNcYrUaV+Uk90DCE+9VZWVYz7tjSEFgnaCLNyd9wEloVs+25THEA== 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=/UDZqxe7ZKifrIQ1FHjm72FVAc6ZZR1+FHAqi8rgHjw=; b=wFZtntLDUxMfm15IL5uc/FaZm2JyjwjyHrAfcS0fWyssrgs0UlyqO/q3RHEnJnOtWJ48FFiE1O9fEnvET1kMC5CKAvxxZQRX3OW6KnPR5F7jl3HvDLF93481nY7VIVvHltaK8s8ErCH6tzQuf/o4LrKAbfqGU+ngXP4e1qOr1Rq1xPMA8yVzaIyAPIP7nzVEi7tcA0SL/0+bLbyKlU10szTz341QcWRQvwzAMml8rq0b38+6hrJM03aRgQAqVqdBDOZ8DAuxRawOiV8lbE09CJtVWSvGfVY6BE7mAk+izG9y9HdYNr1E8cSamsDWJBTxelv/r6PCGypxJGO3dOoDDw== 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=0 ltdi=1) 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=/UDZqxe7ZKifrIQ1FHjm72FVAc6ZZR1+FHAqi8rgHjw=; b=U1rFHPj5OUHieFMgU9SGV/L7T/G7JPLZuAOX1fSNCzlyRZyShDUeSfDgcsAKTxpzEbKHSC3Z8aEh1Ea9bwhoK9ZeVN85cwTfPxxKaqyexRIfCHBgjvAoe5ER3ENFEcpdG9+WkC8D0SSVxEnX4Cg3B/8UgtoOOuTKAVTK9Hpt8Kk= Received: from AM6P195CA0017.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:81::30) by DU2PR08MB7375.eurprd08.prod.outlook.com (2603:10a6:10:2f3::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.15; Wed, 11 Dec 2024 12:07:15 +0000 Received: from AMS0EPF000001B0.eurprd05.prod.outlook.com (2603:10a6:209:81:cafe::55) by AM6P195CA0017.outlook.office365.com (2603:10a6:209:81::30) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.15 via Frontend Transport; Wed, 11 Dec 2024 12:07:15 +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 AMS0EPF000001B0.mail.protection.outlook.com (10.167.16.164) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8251.15 via Frontend Transport; Wed, 11 Dec 2024 12:07:13 +0000 Received: ("Tessian outbound 2d228e31de9a:v524"); Wed, 11 Dec 2024 12:07:13 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 05a584f5550d8ada X-TessianGatewayMetadata: ZF9R4/o/K7jwo3BVIzSxSrJ8CG1W/pn48Z74h6a59Tll46ipWcRygSq40tVXOc9VcsIRf+ssqvVmB7epQu+/B2eI3X7Qk0Tq9nDFB86P+1TV+R4Gj6s4KTh+LIO2hdix/2h6XqqEfc1ejkVMK4DOp+C7HjsGZ15Hg+uVBFxjoDw= X-CR-MTA-TID: 64aa7808 Received: from L6150367ba2e5.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 72B75DD6-E032-404B-95A6-9A8A96C18A64.1; Wed, 11 Dec 2024 12:07:12 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L6150367ba2e5.1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 11 Dec 2024 12:07:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DUI+JpAODa72XRza9Jx5VP5yONjuxlAkQoHfHaOq381jXv3OhQm9gfjl5fGPLhEKRdP9mygLyu6aD+cF2zZDfuOm8gt0imFUeBkmM50vU7WDPEl6sKpcJFnuX2aDyeQULh4UCB92RA22AXsUXwWTqmWq8iZKgNSNpEuiu+QkJ1FchIc7f10t27dFcDq7jzRCX5mYdqA2ROtgAMe3YnPXCv+NCZb2QioMvv4LFbr/tY8WQETsWnzNqgcMBfCvr5lFOqGk+mr7v37c5e9RTAIkbnr9UQwrPidJdajAteav81SdiXUfiVlvnulYq7XbrSUHqOqnqG334qFdLYlJ74L2dA== 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=/UDZqxe7ZKifrIQ1FHjm72FVAc6ZZR1+FHAqi8rgHjw=; b=pjyhI/dLsyK2XvgWn9kJLxisBTC/vQ+xCnqU0UHsroBItZJBitZys15BppM4vnzFvKUJNQilfclIikc/A8UwxAD1ZgHHyNbF7ie8RR6Z6tZyGJysD4rN5a+8pms9J3CSHWdJuhTYOj+3bBbyJFrGk9/m8/t9Gxk3j4ndiO9uhlcbwL9jVaAdaLU7cGxlcpcgJw3Nabi7Kq4gcvavfzTMBafNHhxCO83obFEHRiIBJ9OglnntRcsM87vm9xg0HeOuhVIDMJcG+DkxUd/yXyFqe5dbigtfoZOGAtaimSpeSWbKr6EZiDIsEu8BvLWXLth2/VdMcMIHA+dzrJZcgTT5WA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 172.205.89.229) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=fail (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=/UDZqxe7ZKifrIQ1FHjm72FVAc6ZZR1+FHAqi8rgHjw=; b=U1rFHPj5OUHieFMgU9SGV/L7T/G7JPLZuAOX1fSNCzlyRZyShDUeSfDgcsAKTxpzEbKHSC3Z8aEh1Ea9bwhoK9ZeVN85cwTfPxxKaqyexRIfCHBgjvAoe5ER3ENFEcpdG9+WkC8D0SSVxEnX4Cg3B/8UgtoOOuTKAVTK9Hpt8Kk= Received: from DB7PR03CA0094.eurprd03.prod.outlook.com (2603:10a6:10:72::35) by GV1PR08MB10855.eurprd08.prod.outlook.com (2603:10a6:150:161::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.15; Wed, 11 Dec 2024 12:06:25 +0000 Received: from DB1PEPF000509F1.eurprd03.prod.outlook.com (2603:10a6:10:72:cafe::eb) by DB7PR03CA0094.outlook.office365.com (2603:10a6:10:72::35) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.12 via Frontend Transport; Wed, 11 Dec 2024 12:06:24 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 172.205.89.229) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=arm.com; Received-SPF: Fail (protection.outlook.com: domain of arm.com does not designate 172.205.89.229 as permitted sender) receiver=protection.outlook.com; client-ip=172.205.89.229; helo=nebula.arm.com; Received: from nebula.arm.com (172.205.89.229) by DB1PEPF000509F1.mail.protection.outlook.com (10.167.242.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8251.15 via Frontend Transport; Wed, 11 Dec 2024 12:06:24 +0000 Received: from AZ-NEU-EX05.Arm.com (10.240.25.133) by AZ-NEU-EX05.Arm.com (10.240.25.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Dec 2024 12:06:21 +0000 Received: from PW070M4K.arm.com (10.57.91.131) by mail.arm.com (10.240.25.133) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 11 Dec 2024 12:06:21 +0000 From: Matthieu Longo To: , Indu Bhagat , "Jan Beulich" CC: Richard Earnshaw , Nick Clifton , Alan Modra , Matthieu Longo Subject: [PATCH v1 2/4] Regenerate build files with autoreconf for previous commit Date: Wed, 11 Dec 2024 12:05:51 +0000 Message-ID: <20241211120553.1391850-3-matthieu.longo@arm.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241211120553.1391850-1-matthieu.longo@arm.com> References: <20241211120553.1391850-1-matthieu.longo@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DB1PEPF000509F1:EE_|GV1PR08MB10855:EE_|AMS0EPF000001B0:EE_|DU2PR08MB7375:EE_ X-MS-Office365-Filtering-Correlation-Id: fbc3ea0a-64b0-4521-173a-08dd19dc593a 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|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info-Original: DWG8DdZJbUiNfzBlyXMuf1DKQBYltgS+bqwhJJo+Rj5YEr63xFnXQIawhWN3y2im/H5tyx8aPTVoTfxwgTLFHS9htGABogMAYDSQ683hEB7dCZQ7cMfOm0YxNe8JCZ6YjzJETkZ1oGgzDbhOzy2WtRnHsiaE4d7Uc2b59RisehIhjyDr/zXaiUr8KxN0cxIFG85VV88E3TLHaS7M3t1i8Ni5mxJhpC/tfEJy8YHYz2BPINZx60VVxVCY4koTecf87Ay+hMBvoYqAlCQEJNm8wB5au394nJydOGNobjV7zUM+5tDeJbk70LH7rOIngK2UAHPAH7xY91enjC3oAXt9YzR0zyhfawgoSMifCd8XKn/a0l1AZajeg2+/xQ9En9qks4HDgxOVII/2cxpfPFyDJTTKqJuBa500EP+SIwh6LZnLJW2hUnyF2FjazMd1pAkayaf5za5e63+nQMugtwhDfNYT+YGnjOOVekvZO8evoP9GyMgjGUWEBc4mNA0YJ6ULqaAIeZVTlWX1ZNs9mftWNMUqtoDr3dj3iSqG+rn9SmxwQXNoctAQBbIw0cZDTlEwuDjIvkewiHPg9NWLjr0nuEUNg4oo5snqZjEqFVwsgidCRAz4zYdVrWeGziHKrThLCF+Z61+Hmfw8tfUIcJTZyND1IN8NZ07rHcbF5B8FhlORmflbOh+1qN1PjUFfcFXzmFJx8TK4SERJQAQUojE203HEIGldnMm7RXc96GN/9cvLlcdDM4o7V1GZw0+WVOvDFzoUp7lKmcpC1BXZRAwflS5GGhxdPddOBLjrMyBrLdFitviED4gbIeXgm8qEZRfhkttdVU8R/YC9odCYCnjeQtvYJlorc/kSqk39XEFb84YKfuf/q10hngUPSQ1JR/C+VLalfRi90UfBk347Lv0/1ZJN+6J1Bs6MxUR85NSOcZiVs8aRhKnTOC2UWHC76VotTQZAPcdaXYc2ug2C928cuUVeB4TMK2Ll8Op274LncO3FJKK+uATpbLh3FGfLS+vXdzo73J2zVFbw10xZMPRqcVtor/OIlUTRGik/vIg9YMj8D962JgbZuCZn0xcHkrzoLVen/AnNCbWDQ9l4Ud3AHMor9RvPJTQ/IZMf2USOm1NkrYJSRm116XmJclWs73rBclQaX+6v+jMm0PhFEHlAgG80OBdvJr1yLJd+7S/G5fPLtvlOV61EDcGFDxYWHkiNdONIctiUyOWP11F1DxMBpW2m004TwypIqRJxt6QSAeplyyBgrJqDNXdncEQ6NuLewfu+U+wyyzLrmeoa+1F2Qo5TXDVsrKpOUdG5dgfTKrHErd/Sgk5ShBfgUEv6eSdw84aFefe1VhVueYF6VkgMQpuZ8j7TeiZ69zDBAZ1hUudeLyDenBiPO3IBc5oESA3BICf1cdX8mnXWOebsvVNRXUbtLeOnO4jqdBW1HTm+kI3R7edr9HDnkMqPDus7Lova 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)(1800799024)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB10855 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:10:72::35]; domain=DB7PR03CA0094.eurprd03.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS0EPF000001B0.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: ea4feea3-097b-421f-dce3-08dd19dc3bf6 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|35042699022|14060799003|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: 6kuQuZCIN7lVMeKKP2SIiFDe1gIsHVg/VSdPyl9gZ+l1h1HeuapM9R4RDXCmg4MDvkaH2t4oABI2M4SpCBzeM550Uohd2WqZIKkgd/Vhwt0cYRyElvWZhwG0QAhyfDwaGwoedaIH1DCtLCrtnCeEigdf5eUMw1XGmnlvAyM9BS868ZcYE9WAd1eT/amsttgYrFzYqWM4qsOnMTAhSJWuq+GxgEywq6QNp3WVcRpFT/fQW5+NXRVbllEX3aeTiw4aQEcoe4F85KaVdLLhgkCB54rTwOiRec8xCs0J5hNgEcVEUurXA/I2qLSvgI9geRc71M+7142ZP4aJ93LYlJU/q/RccawlMA6MfZNzs7gkaXfhVHdRp5DZ6fVa4AZ4ccvIicSyFN/5uLCLt4Vc+sQVMGA/lI1d+UjVCzjRDlF3nK9KC7dtqsDN5m2z0/h/xAXr/G03G56z/Vcber0eJcJsiei3J41BYhtTf4NqmYxEFGOGuTGzR2q2iqrxlqqF4crCPwzA/TWz5J8uwI4S/LsUH0PZIIZyMGcIjCVcc36x6oe8/wYxFA3xm/L0hsReCsT8mML0wuFLQGv9HRTMsuoMKNWkEwidhbhRadOatk+4SG8SE5i5xWlEojIqLdWLXpSyH32YThBMl6gA33VcdAnbwIf0biZmgZCfXeyD2xjfFVCuRZR4FCOagPQFcIcEQ6KXMHirhPIdeymw3SxmlB76Xo2WVcJynzb6Ze6HAhYgBF30avkUyh4a4FwXDzt3SbLj1xg+8PxWWJ27NjPTev8KvOBCrs7nWCF87iJFDwPKXArnXrdvCFXKZKflDIURUk1mQCS75luD6Zc04XPAA4jRMsgHjmRK9WugylKlRctrBtDpX2CyraKIbJ4Ndas+2yIQIkwUctwBka7Ttte8q/u8hxakUvbHmTL76ngfJvPA+rYZXQJgNYBiAmklk94NdanRZsCKbheH/BsfsL1WaD6iKPHi12/Hkgc6xQqD5/9H9N60+1Deip9SPmpnkal7hVuqN/Lgg2H+7xZpFe+9cTFuRY7W/O8Hq9OruWm3GQtfu1nZePqI2gm/JkuxAh4XjSz1ZwIbo4lB7GyJFTgwyNuDNRAfTDU0ap65A1LtVpMI4JZf7oOZkgeCeEvhIpgPoRkhmRU0j7xzTBbTdpezGJDzmDAmlbQ7xmN/2sQo4afl8CVndFUOgjASyAAwC9Hs5iVPPhE3TWYIhGd6WFNI99FI4v+nYHoeBuinFsOPiqPHKGWUhp/l92RyMF8ZqPa4iAjNCojWESysWGAus5ZgqMCnfCcFcryQqMB23I99Dyig9KuOuBnwEnbG7RGUz+xeeLJxmNCsT4nwjF0yFQgjlNIWEgFYD3mBOzaah8ax4nSHal7BuHCryT3L7vA4smonDCRXMxJSEYKDibmNMA7ujJ131SQ4zU4DRoLg5gFP0BU12ViMRnSw7EIKID6jS/RoYOzPybWJLwX6talZs96HwX8+QQ== 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)(82310400026)(35042699022)(14060799003)(1800799024)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2024 12:07:13.5707 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fbc3ea0a-64b0-4521-173a-08dd19dc593a 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: AMS0EPF000001B0.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB7375 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, 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 --- bfd/Makefile.in | 3 ++- bfd/config.in | 9 +++++++++ bfd/configure | 15 +++++++++++++++ binutils/config.in | 9 +++++++++ binutils/configure | 18 ++++++++++++++++-- gprofng/Makefile.in | 5 ++++- gprofng/common/config.h.in | 9 +++++++++ gprofng/configure | 15 +++++++++++++++ gprofng/doc/version.texi | 4 ++-- libbacktrace/Makefile.in | 3 +++ libbacktrace/config.h.in | 9 +++++++++ libbacktrace/configure | 16 ++++++++++++++++ libiberty/config.in | 9 +++++++++ libiberty/configure | 16 ++++++++++++++++ 14 files changed, 134 insertions(+), 6 deletions(-) diff --git a/bfd/Makefile.in b/bfd/Makefile.in index a781e2b8959..31b337a0b54 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -1131,7 +1131,8 @@ OPTIONAL_BACKENDS_CFILES = \ CONFIG_STATUS_DEPENDENCIES = \ $(srcdir)/config.bfd \ $(srcdir)/configure.host \ - $(srcdir)/development.sh + $(srcdir)/development.sh \ + $(srcdir)/configure.tgt # These are defined by configure: diff --git a/bfd/config.in b/bfd/config.in index 7458362922c..dbcf3c0f2e8 100644 --- a/bfd/config.in +++ b/bfd/config.in @@ -303,6 +303,15 @@ /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS +/* Compile for AArch64 targets */ +#undef TC_AARCH64 + +/* Compile for MIPS targets */ +#undef TC_MIPS + +/* Compile for Sparc targets */ +#undef TC_SPARC + /* If the compiler supports a TLS storage class, define it to that here */ #undef TLS diff --git a/bfd/configure b/bfd/configure index 2db9f76b9eb..d7903be7b98 100755 --- a/bfd/configure +++ b/bfd/configure @@ -17529,6 +17529,21 @@ $as_echo "#define USE_MMAP 1" >>confdefs.h ;; esac +targ=${target} +. ${srcdir}/configure.tgt + +case ${cpu_type} in + aarch64*) +$as_echo "#define TC_AARCH64 1" >>confdefs.h + ;; + sparc*) +$as_echo "#define TC_SPARC 1" >>confdefs.h + ;; + mips*) +$as_echo "#define TC_MIPS 1" >>confdefs.h + ;; +esac + ac_config_files="$ac_config_files Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" diff --git a/binutils/config.in b/binutils/config.in index 93ff04667fe..280d2851ee3 100644 --- a/binutils/config.in +++ b/binutils/config.in @@ -223,6 +223,15 @@ /* Define to 1 if user symbol names have a leading underscore, 0 if not. */ #undef TARGET_PREPENDS_UNDERSCORE +/* Compile for AArch64 targets */ +#undef TC_AARCH64 + +/* Compile for MIPS targets */ +#undef TC_MIPS + +/* Compile for Sparc targets */ +#undef TC_SPARC + /* Define to 1 if the type of the st_atim member of a struct stat is struct timespec. */ #undef TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC diff --git a/binutils/configure b/binutils/configure index 41e41c61efe..00eab052520 100755 --- a/binutils/configure +++ b/binutils/configure @@ -16600,9 +16600,23 @@ cat >>confdefs.h <<_ACEOF _ACEOF -# Emulation -targ=$target +targ=${target} . ${srcdir}/configure.tgt + +# Target-specific definitions +case ${cpu_type} in + aarch64*) +$as_echo "#define TC_AARCH64 1" >>confdefs.h + ;; + sparc*) +$as_echo "#define TC_SPARC 1" >>confdefs.h + ;; + mips*) +$as_echo "#define TC_MIPS 1" >>confdefs.h + ;; +esac + +# Emulation EMULATION=$targ_emul EMULATION_VECTOR=$targ_emul_vector diff --git a/gprofng/Makefile.in b/gprofng/Makefile.in index 5ced0e012eb..d9354957943 100644 --- a/gprofng/Makefile.in +++ b/gprofng/Makefile.in @@ -397,7 +397,10 @@ AM_MAKEFLAGS = \ # development.sh is used to determine -Werror default. -CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh +CONFIG_STATUS_DEPENDENCIES = \ + $(BFDDIR)/configure.tgt \ + $(BFDDIR)/development.sh + EXTRA_DEJAGNU_SITE_CONFIG = development.exp DISTCLEANFILES = site.exp development.exp all: config.h diff --git a/gprofng/common/config.h.in b/gprofng/common/config.h.in index f8484f238fd..f80aff11ef7 100644 --- a/gprofng/common/config.h.in +++ b/gprofng/common/config.h.in @@ -84,6 +84,15 @@ /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS +/* Compile for AArch64 targets */ +#undef TC_AARCH64 + +/* Compile for MIPS targets */ +#undef TC_MIPS + +/* Compile for Sparc targets */ +#undef TC_SPARC + /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE diff --git a/gprofng/configure b/gprofng/configure index 34dbcbe68a4..fbd71a45491 100755 --- a/gprofng/configure +++ b/gprofng/configure @@ -16995,6 +16995,21 @@ fi +targ=${target} +. ${srcdir}/configure.tgt + +case ${cpu_type} in + aarch64*) +$as_echo "#define TC_AARCH64 1" >>confdefs.h + ;; + sparc*) +$as_echo "#define TC_SPARC 1" >>confdefs.h + ;; + mips*) +$as_echo "#define TC_MIPS 1" >>confdefs.h + ;; +esac + ac_config_files="$ac_config_files Makefile src/Makefile gp-display-html/Makefile doc/Makefile" ac_config_headers="$ac_config_headers config.h:common/config.h.in" diff --git a/gprofng/doc/version.texi b/gprofng/doc/version.texi index eb39181991f..05f9fd810f0 100644 --- a/gprofng/doc/version.texi +++ b/gprofng/doc/version.texi @@ -1,4 +1,4 @@ -@set UPDATED 19 July 2024 -@set UPDATED-MONTH July 2024 +@set UPDATED 21 November 2024 +@set UPDATED-MONTH November 2024 @set EDITION 2.43.50 @set VERSION 2.43.50 diff --git a/libbacktrace/Makefile.in b/libbacktrace/Makefile.in index 49852a21d37..202d60cc2f0 100644 --- a/libbacktrace/Makefile.in +++ b/libbacktrace/Makefile.in @@ -1241,6 +1241,9 @@ MULTIDIRS = MULTISUBDIR = MULTIDO = true MULTICLEAN = true + +# Reconfigure if configure.tgt changes. +CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.tgt all: config.h $(MAKE) $(AM_MAKEFLAGS) all-am diff --git a/libbacktrace/config.h.in b/libbacktrace/config.h.in index ee2616335c7..2012af86278 100644 --- a/libbacktrace/config.h.in +++ b/libbacktrace/config.h.in @@ -153,6 +153,15 @@ /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS +/* Compile for AArch64 targets */ +#undef TC_AARCH64 + +/* Compile for MIPS targets */ +#undef TC_MIPS + +/* Compile for Sparc targets */ +#undef TC_SPARC + /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE diff --git a/libbacktrace/configure b/libbacktrace/configure index 4ab612dc780..2b69f7016e3 100755 --- a/libbacktrace/configure +++ b/libbacktrace/configure @@ -14356,6 +14356,22 @@ else multilib_arg= fi +targ=${target} +. ${srcdir}/configure.tgt + +# Target-specific definitions +case ${cpu_type} in + aarch64*) +$as_echo "#define TC_AARCH64 1" >>confdefs.h + ;; + sparc*) +$as_echo "#define TC_SPARC 1" >>confdefs.h + ;; + mips*) +$as_echo "#define TC_MIPS 1" >>confdefs.h + ;; +esac + ac_config_files="$ac_config_files Makefile backtrace-supported.h" ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh" diff --git a/libiberty/config.in b/libiberty/config.in index 1b1f2b09a8a..60986b526cc 100644 --- a/libiberty/config.in +++ b/libiberty/config.in @@ -501,6 +501,15 @@ /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS +/* Compile for AArch64 targets */ +#undef TC_AARCH64 + +/* Compile for MIPS targets */ +#undef TC_MIPS + +/* Compile for Sparc targets */ +#undef TC_SPARC + /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME diff --git a/libiberty/configure b/libiberty/configure index f83b42fb0d5..03d0d69a4f8 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -8029,6 +8029,22 @@ LIBOBJS="$L" +targ=${target} +. ${srcdir}/configure.tgt + +# Target-specific definitions +case ${cpu_type} in + aarch64*) +$as_echo "#define TC_AARCH64 1" >>confdefs.h + ;; + sparc*) +$as_echo "#define TC_SPARC 1" >>confdefs.h + ;; + mips*) +$as_echo "#define TC_MIPS 1" >>confdefs.h + ;; +esac + # We need multilib support, but only if configuring for the target. ac_config_files="$ac_config_files Makefile testsuite/Makefile" From patchwork Wed Dec 11 12:05:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Longo X-Patchwork-Id: 102811 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 B08A93858288 for ; Wed, 11 Dec 2024 12:09:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B08A93858288 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=FR1hmZOm; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=FR1hmZOm X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20610.outbound.protection.outlook.com [IPv6:2a01:111:f403:2612::610]) by sourceware.org (Postfix) with ESMTPS id C65513857C6E for ; Wed, 11 Dec 2024 12:07:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C65513857C6E 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 C65513857C6E Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2612::610 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1733918845; cv=pass; b=vdO7Rnt8GHUtJsj00P+TL1UMiztqiqlUZOZZDe9oa0nh9tHtc1a89wtNG44BmE3ImqrC++IuWTZ4oeG66d12feWoK8NxvtmG7I7sqQc7ukYIOcpU+XnjEatBnT60mcHpko8Jqd7YmEGuX4w5Yn/0uFsBDjyVCLLNv1V+YtoIM3g= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1733918845; c=relaxed/simple; bh=waX6qVENm2yRycfEVZBzhReQdpcVcFWrDtwZGcyb1kQ=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=VOTy5yT+vHL1hoeAm/IpqjYX8VzjaS2pP+CixbF/58c7G97T+5G2UoCu3kAO955e8s9Fch0IfhDQXdqe7B6AjgzJS/tdCautN5S9NODoZBufF0XY5CrKH4HQBItqeZDvIuUk5b4UN7pkMU//psnEvh193Asd9hHiTdtFYWhoiDM= ARC-Authentication-Results: i=3; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C65513857C6E ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=gjkWj+tgXA2RSfpTZZ6ZvYTxwWUpaza/x+dg/HVP73oPbrx83yFjXRMOgvS1Lgz53nArat6vUAGXTZ90F7wtrGmmTf8fo54PMkYkCMexqMYtfaxs/mFBnif6QBhj2VVQee3APHHx80sJQIz17Bik2or0TePmz0HfxKyAUtImCiHVZq8uqbpgsBxnXE9BXvI8bvDj49jITMreWqQYUOYPomTA+f7OwRWNtA+vObHydeAFYO4YcI2gTxfia+qlketVKOwCclB+7wbf04WWP1PAfMDz1d2qzrMIF88gX5nDwFqN6uSxsnzuYhrELsfBCxa3KVMXnJ7XPohRSYBP1Pn3Ng== 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=E9VlYHiGr1a/d5rUghXgpy0+0QWX6IuBkqapOsyrHN8=; b=e2Q/nmTaDtS9s0ccMmieRH+GvKyALMf3mfNfVot67gtWGyYuY5XYTFFvePcQ3g+A1VdYsmtMn40jS6A13zJpYCfl0HcPS1LBVmyxT7/kBlay1zC+h4AKhJtnkGi0pKnOmANotU5szAdo5M3neAy5RzxsGgJZZy0FoshTDwDjSOaTUJpXfLSHcwYrYzodLgbuXCv56hflOAPV2VLHjIFPgTqaLsFVps1NEuigQGDdPDtEgNkXYXS/WTnwkgoud9aVy/Q0INsaLPnGAhvJPsW6xz8ZDqG5n6+XNymp/3vaW8HaOZAL/UVpJdroBM4iss3msZbYX6B13OtDZBbDfea+wA== 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=0 ltdi=1) 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=E9VlYHiGr1a/d5rUghXgpy0+0QWX6IuBkqapOsyrHN8=; b=FR1hmZOmUySB6k8I28Yc+TTwP9aL9EuBwSR2lbN9tywzolBRn342eAECjN43YXdJ824lbTFIFxjT2jQFEh52lYwWNVsoG1oucoH0bwFHZgyMSyzdw6kInGKYHVqBTAsefu9/zq18dptFEEHt3M+Gkf6XxgCu2sgFmxC5FTioDdU= Received: from DU7P251CA0016.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:551::31) by VI0PR08MB10510.eurprd08.prod.outlook.com (2603:10a6:800:201::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.16; Wed, 11 Dec 2024 12:07:11 +0000 Received: from DU2PEPF00028CFC.eurprd03.prod.outlook.com (2603:10a6:10:551:cafe::ea) by DU7P251CA0016.outlook.office365.com (2603:10a6:10:551::31) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8251.15 via Frontend Transport; Wed, 11 Dec 2024 12:07:11 +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 DU2PEPF00028CFC.mail.protection.outlook.com (10.167.242.180) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8251.15 via Frontend Transport; Wed, 11 Dec 2024 12:07:11 +0000 Received: ("Tessian outbound 20d64b55c711:v524"); Wed, 11 Dec 2024 12:07:03 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 63e2677c82e0a52c X-TessianGatewayMetadata: FIj53GzVKvwrk70Z1hLL9Z7SS5J4/EpHoi2RUQxmupctnqIY2mugQJdWLxbn/oaB5DwkJlddQdESpxNoLonQybMW1xFnwGCyfVWib8zoWs9ygeeK732NzK8x9yzRtBIak82cggZeev4K0SjBQD/9LqXHkRS2KqFmUa7JKAFAYy0= X-CR-MTA-TID: 64aa7808 Received: from L56f426ba2782.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E7E850CE-4EDE-4973-8655-E535145C4D59.1; Wed, 11 Dec 2024 12:06:53 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L56f426ba2782.2 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 11 Dec 2024 12:06:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sCZ7x4YcJTkSey/aDzrARjUp6j5UMZrHmQYuDu35jt2CfSQVuyl489tMHBnUz3GHZ6mvbalnn3i8U3aZYs5HW7YO4ufQhjQjPkkgJd01DitMBxztSty0OQ8lj2zc/oonk1Fm0VoFQ90TlRkat9c3odQdP0L2O7oAuh9Ykwar38pmCEW3c50IxZD5mPSIkTLrKMTTQCHg8k/xr3IIxzLL+Msrt7m0WAafgk69Cx4fD/Mfx8XtPP2DVkL6UIwNESppwfhBHrAkwNct9jI+LicTOfwzGnN5YGxMqg/uoX7dMhVVN6WPV2JTm2ZdlqbMk1yfcj4QHoLEZ9HEeWs0FX5WZw== 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=E9VlYHiGr1a/d5rUghXgpy0+0QWX6IuBkqapOsyrHN8=; b=WR58HT9/XdF4GH9vNqvmmFNybeFY+flmtfLbWodYjE3bV/Snw0ecbAhuTBu6MPhaZrKc14Ca6bGOBpooE90GuxQ0mgDx5B+WWKMrFF/VTERRx5sDNQFDuY2h37HtK6GpBip+00yiXV6ngA8XHzqjJq15IDMttG0DE6VvDqjcvTps2wMMbsZGBVY/6aSu7XtM76x0V/m7FNCaMtFtFDzoMA49bSBfsA+ykZ7v1y5Kj794kx4pC1CD9iD/+d0BGY0xnuKX7DQL5YG0YuFpxm1yVQjEnJ1nR7lQ2PZuyUTsCzORgXCru8566L6XRSuIMvgIQeW0cyhR4u7oNHA0KJJv+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 172.205.89.229) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=fail (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=E9VlYHiGr1a/d5rUghXgpy0+0QWX6IuBkqapOsyrHN8=; b=FR1hmZOmUySB6k8I28Yc+TTwP9aL9EuBwSR2lbN9tywzolBRn342eAECjN43YXdJ824lbTFIFxjT2jQFEh52lYwWNVsoG1oucoH0bwFHZgyMSyzdw6kInGKYHVqBTAsefu9/zq18dptFEEHt3M+Gkf6XxgCu2sgFmxC5FTioDdU= Received: from DB7PR02CA0010.eurprd02.prod.outlook.com (2603:10a6:10:52::23) by DU4PR08MB11054.eurprd08.prod.outlook.com (2603:10a6:10:577::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.15; Wed, 11 Dec 2024 12:06:33 +0000 Received: from DB1PEPF000509ED.eurprd03.prod.outlook.com (2603:10a6:10:52:cafe::8) by DB7PR02CA0010.outlook.office365.com (2603:10a6:10:52::23) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.15 via Frontend Transport; Wed, 11 Dec 2024 12:06:33 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 172.205.89.229) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=arm.com; Received-SPF: Fail (protection.outlook.com: domain of arm.com does not designate 172.205.89.229 as permitted sender) receiver=protection.outlook.com; client-ip=172.205.89.229; helo=nebula.arm.com; Received: from nebula.arm.com (172.205.89.229) by DB1PEPF000509ED.mail.protection.outlook.com (10.167.242.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8251.15 via Frontend Transport; Wed, 11 Dec 2024 12:06:33 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX05.Arm.com (10.240.25.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Dec 2024 12:06:32 +0000 Received: from AZ-NEU-EX05.Arm.com (10.240.25.133) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Dec 2024 12:06:31 +0000 Received: from PW070M4K.arm.com (10.57.91.131) by mail.arm.com (10.240.25.133) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 11 Dec 2024 12:06:31 +0000 From: Matthieu Longo To: , Indu Bhagat , "Jan Beulich" CC: Richard Earnshaw , Nick Clifton , Alan Modra , Matthieu Longo Subject: [PATCH v1 3/4] Enable arch-specific CFI directives and DWARF instructions only when required by the target Date: Wed, 11 Dec 2024 12:05:52 +0000 Message-ID: <20241211120553.1391850-4-matthieu.longo@arm.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241211120553.1391850-1-matthieu.longo@arm.com> References: <20241211120553.1391850-1-matthieu.longo@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DB1PEPF000509ED:EE_|DU4PR08MB11054:EE_|DU2PEPF00028CFC:EE_|VI0PR08MB10510:EE_ X-MS-Office365-Filtering-Correlation-Id: fe52ecd2-e0f4-40ee-1c01-08dd19dc57ee 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|82310400026|36860700013|1800799024|376014; X-Microsoft-Antispam-Message-Info-Original: EBSIZ1m2doOCChC8e9x89iFZw57zDR73aij/xMvxI1ROUozf2RuPg84YoDYC5XKnbo4Lzl6DSmGkcPhqPyDUziDV88kuva0WDzh2IaA1KawDFMoNjmcvRIZtN+68WciY6lILMKlMkncALCkCRvTf9KNCbWz0+uNI1QR13JnamTCduAbjfviKRh9zk7l88DxNpF4nO0aWZBr3C7XVCITs3a2OO5607x+Pxkw7YLfvuqd0wFBaTbg0t7mDVn2SeZe+Lft/+e3Qw338D1w/qd41ahZp71NblrxTER3Vi3F5Gbcoex5+XFvbmHiT3EGzRDrbTyMcYHBDHeknGllyMYt604iN+hB8Sv3Qx224SWp4gkNiw2MPxjIpLtqer9jrbowIrX3GRhd1jY5zT1HKUhXC5BzxnlfjXmNqWNzVn7e1BSk3iXiH6NJNbLGwpWD1troJX/npeQF8iSrSJEOvxSKGPOZzBaLTI22pBB/8BgjDR2j/qqF99K3Re7ctoJo1+7qo+vfutWx7YtJbK887XfLJwt/4ir60JySji27adJVijvd4HqJ9RfEVOEs1zPAKUUR4bxGNJCFnHF8gLtw3+3tJkOZYS9UDoDaMKpEa50PBaptFWTAtOW8oUJhwE3AvQGgD11+pIGqN54IWSQStp6pCOm0oJoy1Cze8Cn7HwvvjUFNolCI/6k7hcjbv/oeSPEj/1Gb+H7bz8utCof/KucbIRRAovwZm0s/cFB3CurYUDz5kc6bKE8cTyRAWT0wsLynty+Ajkr0sjEZn0xyI8auNVvfnp6EOJmkUkhOWjbkr1OI6DnuzxzPe4fmrENAeIOSVZPFbzT/PPpgTrAxB1a51SHc3NBCHSd6tTiaiZmuHK1PJRNPlitIgFMjaVK6T2Ia28xjcJe1e1ijtSLtCxYp5TgdbU10xx0IQTJpuMITDit52ti+/N2ydTZf6z/WKfYL2ZGylIzYtLSSDdTaLSOPvkx5hlurzeW+lroN/tiU3b9rGtTwpmeaoDym4ldqJdqHp26+iurXwnwJcVO4KoUKEbLlYACqzUfHauEACelTOdGDEboQ7C1CeLTGctFrFtsClUdmjLAEwmROPxie5azUYIO8m7xSZxwc1bfr17ADFRK6qpfOFRjh65sHM/wvGaokKY4rz/hj47xY+lHj8uxaWw6TZe6CkQfdlo9C29IsRmDA/zC1G5G5sTq/DUphjBuf6N/g/tMhhpZIel01kboyiFcUWOL9u6mjb2QScEXpz1Y+oogTpCOxAoRED8I/cfIgjPl8R3XEsu+z8y8fGDCKjon8j1NCvMr69NBnGp7Yd/8kRqaF2PB0rU15MwjkovtavRZ5ejw/MBaChaquLeLZlr7lpahuv4A6gHb26tu+rEYPBQp3SZAIvWayfTGCXMpAw5IGN/NTycpjAXelK3qXOnVWzpwwd/Td1DDoDjwcjbqQ= 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)(82310400026)(36860700013)(1800799024)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR08MB11054 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:10:52::23]; domain=DB7PR02CA0010.eurprd02.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU2PEPF00028CFC.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: c4e9e32f-5c19-49bf-2db3-08dd19dc4100 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|14060799003|36860700013|376014|35042699022|82310400026; X-Microsoft-Antispam-Message-Info: pIX3Y3qPtq/+JgMA8mGU8f0hZuD//CslbiOkQMnZhWLvKuPlghMcFb+IGXOClP9G+9NQMu4fos2rRCybFC/lfU5NdkeaY5Wp3NxP47IzIW1QOdAoHymCgqxoTeEIbHeU4JAgNFmMBL11ZxPsYzKH488A6zlwGCQ2+wArdtTfHEI+/DXEp2Twl6Pyc3X3FHB5PT42jJdTfHbBaqi4Ry1cAD+EpZ0waBBkC89C3nvxslLzFnpx3Tf8BhXEkR4gxaJ3X+9ddR6hI4caWvs/phY5aV+0gX2ujRfDGHjLSJ0YiYBLW7AkJ36J1Memk9lc31APjUbkAOSwl9aT9thxvA6MfnGtQVirMSM0qvYLwsyoo1xnZ3CtnEuztjo/R/PnvgekcDlSR8ZXaSsmhSv+8LWmqGBLbFWWhJRFCE55adQr1Q1pO1/iokKtfK3wGt3U/gV7EVtjmATTfWaBpC+uRjkElSrbrdf7uxqicvoQof6rGZTL+x/2+PaSP+Gm32yEGhEiwdRP7jvo7/ZSgyaPK0FtdK9a7Qhi0ZHIjGRYPs1Ef8YgqlE/6WmA0RxSWzDs1mOWyhLVNZ2QKvsvsoKTNqtv/TA+m5bGlz+/1kMKeJEmroUWPqHqGjss6efKo514Sk4vOubmESxVi355/cPj2O9iyOAxXTg65ytvi7mQvGqmAzVv4gg/VZuDstaa8o8vspTlOXa1ud+8x44h5AJHfFcop8irPvEdm4ZIJkHc4fwbHGobWfcbczla0eFT8M4at/KHbfLHoq06uLJgTbeh10Wl2xKOJk+0WzbJCKRn7rcqhuq3LTZroEB1UgdZ9gw4uIh34aL7XBoBSMOYjCvDodIjt2BlyA0ZKlb2mrORrg2BnfUIxIK8suoyUNiWAnO5KskGgCBrXNnyF2cdjTY9/8GF3BrDOxl3qoiBAAO+9oOqSzaTCrlcFNgzpwAJG5vgAArOdbML/gwERILBjJBaA4TNF/hQTg7uzRFcc1cr+DnPIdiN7MBaPhmNMAs9+a3VuqZm4WAZ1pRiQp2l6cDdyVbzdyA0wEWGfVuhkP6nWEBDS6e54GBSQTu6igkemiBGPs3wYC67RrRGJQGbK+zCwo0h8Ffod+e9JMcbaNwGEPsLcdgQPEZcszzqANgdOYUwfJakAcjD0kWMdnlmKHNUwVFzm8tAQrBbXj523bR1Ld++qU82zGhFoQ2t4NjYRMF/Eng1CUlaGOdOIz2gEiFSsNKZuxqWDZC/nZK2ZOqtX8U00N2PNJiDhfqY/eskk6dZG8rFTRHNcojiC2tGCmNKon1nVtJHmilPBgoePMk1PYGklwJveVnVSmV3toh2Php7stLv4pbPHcOBNW0JoQzu6LdTdPqymrgrSW1LFiawbaKBX/I0vEZ4lxgk6jFUQyvi6X2fBeMN9+D+wccRkUw/OF8ZEaHl8bxXkAG8bv+wccLY/Tut6YmfLKnq/pC+mgD+8QI3 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)(1800799024)(14060799003)(36860700013)(376014)(35042699022)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2024 12:07:11.3637 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fe52ecd2-e0f4-40ee-1c01-08dd19dc57ee 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: DU2PEPF00028CFC.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR08MB10510 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, 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 This patch is a follow-up on the patch adding a TC_ definition in the different modules of binutils interacting with DWARF in one way or another. It surrounds the architecture-specific code for DWARF instructions and CFI directives with the corresponding TC_ definition to enable or disable it according to the selected target in configure (via --target). --- bfd/elf-eh-frame.c | 9 ++++++++- binutils/dwarf.c | 21 ++++++++++++++------- gas/dw2gencfi.c | 29 +++++++++++++++++++++++++---- gas/gen-sframe.c | 32 +++++++++++++++++++------------- include/dwarf2.def | 25 +++++++++++++++++++------ include/dwarf2.h | 1 + 6 files changed, 86 insertions(+), 31 deletions(-) diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c index e8244bc0444..8453c3dcf81 100644 --- a/bfd/elf-eh-frame.c +++ b/bfd/elf-eh-frame.c @@ -358,8 +358,13 @@ skip_cfa_op (bfd_byte **iter, bfd_byte *end, unsigned int encoded_ptr_width) case DW_CFA_restore: case DW_CFA_remember_state: case DW_CFA_restore_state: - case DW_CFA_GNU_window_save: +#if TC_AARCH64 + case DW_CFA_AARCH64_negate_ra_state: case DW_CFA_AARCH64_negate_ra_state_with_pc: +#endif /* TC_AARCH64 */ +#if TC_SPARC + case DW_CFA_GNU_window_save: +#endif /* TC_SPARC */ /* No arguments. */ return true; @@ -410,8 +415,10 @@ skip_cfa_op (bfd_byte **iter, bfd_byte *end, unsigned int encoded_ptr_width) case DW_CFA_advance_loc4: return skip_bytes (iter, end, 4); +#if TC_MIPS case DW_CFA_MIPS_advance_loc8: return skip_bytes (iter, end, 8); +#endif /* TC_MIPS */ default: return false; diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 582efafcf88..b5e6d2e50d1 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -8629,12 +8629,6 @@ init_dwarf_regnames_iamcu (void) dwarf_regnames_lookup_func = regname_internal_by_table_only; } -static const char *const DW_CFA_GNU_window_save_name[] = -{ - "DW_CFA_GNU_window_save", - "DW_CFA_AARCH64_negate_ra_state" -}; - static const char *const dwarf_regnames_x86_64[] = { "rax", "rdx", "rcx", "rbx", @@ -9868,12 +9862,14 @@ display_debug_frames (struct dwarf_section *section, case DW_CFA_def_cfa_offset_sf: SKIP_SLEB (start, block_end); break; +#if TC_MIPS case DW_CFA_MIPS_advance_loc8: if ((size_t) (block_end - start) < 8) start = block_end; else start += 8; break; +#endif /* TC_MIPS */ case DW_CFA_GNU_args_size: SKIP_ULEB (start, block_end); break; @@ -10340,6 +10336,7 @@ display_debug_frames (struct dwarf_section *section, printf (" DW_CFA_def_cfa_offset_sf: %" PRId64 "\n", ofs); break; +#if TC_MIPS case DW_CFA_MIPS_advance_loc8: SAFE_BYTE_GET_AND_INC (ofs, start, 8, block_end); ofs *= fc->code_factor; @@ -10353,16 +10350,26 @@ display_debug_frames (struct dwarf_section *section, } fc->pc_begin += ofs; break; +#endif /* TC_MIPS */ + +#if TC_AARCH64 + case DW_CFA_AARCH64_negate_ra_state: + if (! do_debug_frames_interp) + printf (" DW_CFA_AARCH64_negate_ra_state\n"); + break; case DW_CFA_AARCH64_negate_ra_state_with_pc: if (! do_debug_frames_interp) printf (" DW_CFA_AARCH64_negate_ra_state_with_pc\n"); break; +#endif /* TC_AARCH64 */ +#if TC_SPARC case DW_CFA_GNU_window_save: if (! do_debug_frames_interp) - printf (" %s\n", DW_CFA_GNU_window_save_name[is_aarch64]); + printf (" DW_CFA_GNU_window_save\n"); break; +#endif /* TC_SPARC */ case DW_CFA_GNU_args_size: READ_ULEB (ofs, start, block_end); diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c index 5071a161576..22263da808a 100644 --- a/gas/dw2gencfi.c +++ b/gas/dw2gencfi.c @@ -716,9 +716,14 @@ const pseudo_typeS cfi_pseudo_table[] = { "cfi_same_value", dot_cfi, DW_CFA_same_value }, { "cfi_remember_state", dot_cfi, DW_CFA_remember_state }, { "cfi_restore_state", dot_cfi, DW_CFA_restore_state }, +#if TC_AARCH64 { "cfi_window_save", dot_cfi, DW_CFA_GNU_window_save }, { "cfi_negate_ra_state", dot_cfi, DW_CFA_AARCH64_negate_ra_state }, { "cfi_negate_ra_state_with_pc", dot_cfi, DW_CFA_AARCH64_negate_ra_state_with_pc }, +#endif /* TC_AARCH64 */ +#if TC_SPARC + { "cfi_window_save", dot_cfi, DW_CFA_GNU_window_save }, +#endif /* TC_SPARC */ { "cfi_escape", dot_cfi_escape, 0 }, { "cfi_signal_frame", dot_cfi, CFI_signal_frame }, { "cfi_personality", dot_cfi_personality, 0 }, @@ -915,13 +920,21 @@ dot_cfi (int arg) cfi_add_CFA_restore_state (); break; - case DW_CFA_GNU_window_save: - cfi_add_CFA_insn (DW_CFA_GNU_window_save); +#if TC_AARCH64 + case DW_CFA_AARCH64_negate_ra_state: + cfi_add_CFA_insn (DW_CFA_AARCH64_negate_ra_state); break; case DW_CFA_AARCH64_negate_ra_state_with_pc: cfi_add_CFA_insn (DW_CFA_AARCH64_negate_ra_state_with_pc); break; +#endif /* TC_AARCH64 */ + +#if TC_SPARC + case DW_CFA_GNU_window_save: + cfi_add_CFA_insn (DW_CFA_GNU_window_save); + break; +#endif /* TC_SPARC */ case CFI_signal_frame: frchain_now->frch_cfi_data->cur_fde_data->signal_frame = 1; @@ -1759,13 +1772,21 @@ output_cfi_insn (struct cfi_insn_data *insn) out_one (insn->insn); break; - case DW_CFA_GNU_window_save: - out_one (DW_CFA_GNU_window_save); +#if TC_AARCH64 + case DW_CFA_AARCH64_negate_ra_state: + out_one (DW_CFA_AARCH64_negate_ra_state); break; case DW_CFA_AARCH64_negate_ra_state_with_pc: out_one (DW_CFA_AARCH64_negate_ra_state_with_pc); break; +#endif /* TC_AARCH64 */ + +#if TC_SPARC + case DW_CFA_GNU_window_save: + out_one (DW_CFA_GNU_window_save); + break; +#endif /* TC_SPARC */ case CFI_escape: { diff --git a/gas/gen-sframe.c b/gas/gen-sframe.c index 0e100ef231c..12c92774a7d 100644 --- a/gas/gen-sframe.c +++ b/gas/gen-sframe.c @@ -1265,6 +1265,8 @@ sframe_xlate_do_restore (struct sframe_xlate_ctx *xlate_ctx, return SFRAME_XLATE_OK; } +#if TC_AARCH64 + /* Translate DW_CFA_AARCH64_negate_ra_state into SFrame context. Return SFRAME_XLATE_OK if success. */ @@ -1295,6 +1297,10 @@ sframe_xlate_do_aarch64_negate_ra_state_with_pc (struct sframe_xlate_ctx *xlate_ return SFRAME_XLATE_ERR_NOTREPRESENTED; /* Not represented. */ } +#endif /* TC_AARCH64 */ + +#if TC_SPARC + /* Translate DW_CFA_GNU_window_save into SFrame context. 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. @@ -1306,20 +1312,15 @@ sframe_xlate_do_aarch64_negate_ra_state_with_pc (struct sframe_xlate_ctx *xlate_ Return SFRAME_XLATE_OK if success. */ static int -sframe_xlate_do_gnu_window_save (struct sframe_xlate_ctx *xlate_ctx, - struct cfi_insn_data *cfi_insn) +sframe_xlate_do_gnu_window_save (struct sframe_xlate_ctx *xlate_ctx ATTRIBUTE_UNUSED, + struct cfi_insn_data *cfi_insn ATTRIBUTE_UNUSED) { - unsigned char abi_arch = sframe_get_abi_arch (); - - /* Translate DW_CFA_AARCH64_negate_ra_state into SFrame context. */ - if (abi_arch == SFRAME_ABI_AARCH64_ENDIAN_BIG - || abi_arch == SFRAME_ABI_AARCH64_ENDIAN_LITTLE) - return sframe_xlate_do_aarch64_negate_ra_state (xlate_ctx, cfi_insn); - as_warn (_("skipping SFrame FDE; .cfi_window_save")); return SFRAME_XLATE_ERR_NOTREPRESENTED; /* Not represented. */ } +#endif /* TC_SPARC */ + /* Returns the DWARF call frame instruction name or fake CFI name for the specified CFI opcode, or NULL if the value is not recognized. */ @@ -1405,14 +1406,19 @@ sframe_do_cfi_insn (struct sframe_xlate_ctx *xlate_ctx, case DW_CFA_restore: err = sframe_xlate_do_restore (xlate_ctx, cfi_insn); break; - /* DW_CFA_AARCH64_negate_ra_state is multiplexed with - DW_CFA_GNU_window_save. */ - case DW_CFA_GNU_window_save: - err = sframe_xlate_do_gnu_window_save (xlate_ctx, cfi_insn); +#if TC_AARCH64 + case DW_CFA_AARCH64_negate_ra_state: + err = sframe_xlate_do_aarch64_negate_ra_state (xlate_ctx, cfi_insn); break; case DW_CFA_AARCH64_negate_ra_state_with_pc: err = sframe_xlate_do_aarch64_negate_ra_state_with_pc (xlate_ctx, cfi_insn); break; +#endif /* TC_AARCH64 */ +#if TC_SPARC + case DW_CFA_GNU_window_save: + err = sframe_xlate_do_gnu_window_save (xlate_ctx, cfi_insn); + break; +#endif /* TC_SPARC */ case DW_CFA_register: err = sframe_xlate_do_register (xlate_ctx, cfi_insn); break; diff --git a/include/dwarf2.def b/include/dwarf2.def index 538198b3026..1a38d7e0484 100644 --- a/include/dwarf2.def +++ b/include/dwarf2.def @@ -780,20 +780,33 @@ DW_CFA (DW_CFA_val_offset, 0x14) DW_CFA (DW_CFA_val_offset_sf, 0x15) DW_CFA (DW_CFA_val_expression, 0x16) +/* Users extensions. */ DW_CFA (DW_CFA_lo_user, 0x1c) -DW_CFA (DW_CFA_hi_user, 0x3f) -/* SGI/MIPS specific. */ +/* SGI/MIPS specific extensions. */ +#if TC_MIPS DW_CFA (DW_CFA_MIPS_advance_loc8, 0x1d) -/* AArch64 extensions. */ +#endif /* TC_MIPS */ + +/* AArch64 specific extensions. */ +#if TC_AARCH64 DW_CFA (DW_CFA_AARCH64_negate_ra_state_with_pc, 0x2c) -/* GNU extensions. - NOTE: DW_CFA_GNU_window_save is multiplexed on Sparc and AArch64. */ +DW_CFA (DW_CFA_AARCH64_negate_ra_state, 0x2d) +/* NOTE: DW_CFA_GNU_window_save is multiplexed on Sparc and AArch64. */ +DW_CFA_DUP (DW_CFA_GNU_window_save, 0x2d) +#endif /* TC_AARCH64 */ + +/* Sparc specific extensions. */ +#if TC_SPARC DW_CFA (DW_CFA_GNU_window_save, 0x2d) -DW_CFA_DUP (DW_CFA_AARCH64_negate_ra_state, 0x2d) +#endif /* TC_SPARC */ + +/* GNU extensions. */ DW_CFA (DW_CFA_GNU_args_size, 0x2e) DW_CFA (DW_CFA_GNU_negative_offset_extended, 0x2f) +DW_CFA (DW_CFA_hi_user, 0x3f) + DW_END_CFA /* Index attributes in the Abbreviations Table. */ diff --git a/include/dwarf2.h b/include/dwarf2.h index 1f4dbaf0a1e..123dda26afb 100644 --- a/include/dwarf2.h +++ b/include/dwarf2.h @@ -87,6 +87,7 @@ name = value #define DW_END_UT }; +#include "config.h" #include "dwarf2.def" #undef DW_FIRST_TAG From patchwork Wed Dec 11 12:05:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Longo X-Patchwork-Id: 102810 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 E94143857B98 for ; Wed, 11 Dec 2024 12:08:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E94143857B98 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=I+B9Y4vt; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=I+B9Y4vt X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20605.outbound.protection.outlook.com [IPv6:2a01:111:f403:2612::605]) by sourceware.org (Postfix) with ESMTPS id 8E92C3858294 for ; Wed, 11 Dec 2024 12:07:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8E92C3858294 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 8E92C3858294 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2612::605 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1733918820; cv=pass; b=Oz9pgqiWnoOme8U1asFMGVxMR2DBZFo1611ENicBSS0oTrKQ9Z4+9vs9JLzxw8NcfIX5XMkBrw1dZ0O9RaBtBGkNMFy6aEu1GqGKpDBTmVNhHb7jfFjvFepVZiY2nqoqJ2qe9awkSc4wiDPoJVI594POD0LdPkAA46DMhSTfNVc= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1733918820; c=relaxed/simple; bh=sEaRgrAL3U0ZBx+YkRgBucFcdqtM9Y6msR3nG9dTvtg=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=bnBirsoSuV68U4S+TTDB4dNMUH7TW/simx94glRLnE7XtAdE+OwevJjAdnErk02anYTFzE4Bb4wfJmuu2rdbVPKttI+5jpeSOqm8mLnlgyNyF2SVyFWQa7175o0KYcKwHks8kc4nrVFl5ZT32bz/YuuFGONJD0iDX4f12f/oBRY= ARC-Authentication-Results: i=3; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E92C3858294 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=rSUXYju8KC+ulL+rm8SZuJhUKOlxclM8lCxpp1sZCdWo4xop3nEjcIJxpuhVatfDxwd+SeBahTOiZb3AvFJdUvvdnYPi/KRY5YSXPrWjO5RXJhYS+Y142Bk3uuAzKdrNokK29DbRCPgpt+hv6UlSweeOmrHrBkfKQqeutFy5W/YA6ShQeHM12/ScxI7qv07EwgChDZI/S489kx9/0zihd/h/xfVzXs9w3/dgDtEiIrBrQx1GTf6+ai0B0TPxDaDWtBRspIBidt/8Vm2tJawpX94RA3RNGNEH3NTexfewS0espRNaISXXut2b1EhETabwi9FuV84TPUndDI1xTRMIpQ== 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=Qr6dzNqy7gtC5ItsnH+iXEUhOfXPGGjMWBxw3c+zMMY=; b=EHDljc9Yk/piNYT1nPmioxaaAK6PDmJMCfdC1BvmF27dGEKEKjjJhJFclmSrzGwykyscx1JS8seiik3hM84+mfB33flIVSrRm6zHQgKnQuFTy5EHD5hYdQH6F18aZeKcPtjgx+FheDpvndzq84XBEEjRkGimTDdYNT2BfM1VrfO049VS5svNtnXPV1YghtA+NcZXM2w+4tBtkvwG0A5XzdmM9Tg51/fA0RpHLD6eXN9hvxzZoZOQ3H1+7bw3Yn6yRq7oVcNjbltHlDYi+ZzYJ/JM0qKnXTCtghlO5+7jRR7BwZMWsith3LljJQNffFsNKdIdfl5JgXai9zD7PR/okQ== 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=0 ltdi=1) 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=Qr6dzNqy7gtC5ItsnH+iXEUhOfXPGGjMWBxw3c+zMMY=; b=I+B9Y4vtku0x5oA3RUjFqFNynU1GfSVG9SeaDtPrDd5cmInpEN8pl/WPAx4yEycqILC+NtKVT8HhFAQJS3qNBzItekKHGleVJD/nA+NHZ1Y5+/ADFQ8KfctgxcIhiqMzq7kFWLHLkrgoLFdks1+r4U2VqJvkhWYwZ4BE/1VyVWU= Received: from DB8PR04CA0014.eurprd04.prod.outlook.com (2603:10a6:10:110::24) by PAVPR08MB9771.eurprd08.prod.outlook.com (2603:10a6:102:31f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.14; Wed, 11 Dec 2024 12:06:56 +0000 Received: from DU2PEPF0001E9C2.eurprd03.prod.outlook.com (2603:10a6:10:110:cafe::ef) by DB8PR04CA0014.outlook.office365.com (2603:10a6:10:110::24) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.18 via Frontend Transport; Wed, 11 Dec 2024 12:06:56 +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 DU2PEPF0001E9C2.mail.protection.outlook.com (10.167.8.71) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8251.15 via Frontend Transport; Wed, 11 Dec 2024 12:06:55 +0000 Received: ("Tessian outbound b1586bb311c4:v524"); Wed, 11 Dec 2024 12:06:55 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: bab359afb5e6a837 X-TessianGatewayMetadata: /H8+pAQKdAESRCosx0Pz0YGMV8ZDOq/T6OK4Gzy6l0nL9VR5x+MnDonFjPB5gbuXu7+NCyzVDW0MHO7Iw8aMxtxbM7Q8FxfNFFj27WRAHD1vmokizUXQTwdGozuy0pQXNIgaf7yGEDYDACJpmyWUS498vEV86/IGqZ4CWP20vWk= X-CR-MTA-TID: 64aa7808 Received: from Lce6e2c9457e3.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id A6D33280-0E5B-4252-9F8F-2C36A25C877C.1; Wed, 11 Dec 2024 12:06:48 +0000 Received: from EUR03-AM7-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id Lce6e2c9457e3.1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 11 Dec 2024 12:06:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PEVCij3QZeP9iNoQ4mG31vn7YpDWt+gEW2GNBbuUADnOTXMJE4HvOVy6gm7OzfiptAi4HO2FM9ZRhJZgE8JL9fZ7hOHihaICMu4I9VKcmBNAQE8prhBJxmJwgPx8eI+teRaTX1TtoxBHRh2FMxacCE4rNK4K/vZFBr7Ta8Wn/NrUAXHSoiNasfsUA8xdXOwhirdG/4LILnH18SU+S+lPlx8SEbpfobhP00s3eWmuXHo3I0IuDETeJXUw8zk6ar1sgRooOiktftp+GzdDmLRGB0qZ73IAAoDCPz/8On1MGTzEnCbrWAcMPPgEjtgF6SE4h5O3RGuR3S2gYQ3FjdaJdQ== 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=Qr6dzNqy7gtC5ItsnH+iXEUhOfXPGGjMWBxw3c+zMMY=; b=hKMK2TfW94sgTIM+ImkXvmiuBTwZsZd5iYjeD6qkdinKRB0OPi/QMz4mDWc2GcsJ5THKNUw0XZ5+lY/RfKKymX/JSuQB38zO84VciOYNcZAjnIQuYLF16yJe25aFOvIytTUllc7+U0oDZ9oD3qa5I2n1zRzQ6lNw94olGbuc21REd7RFTsie34ihNhNiaSNdLmejvvvk8pEHvZYqdllRo+T5fynyYy+df+p7DUlAFxoWu5V6Igsd0tdsA14FoWgXIi/RfKgNpj/oyUKnST44YI+w+Yy1HYGmyNZry8L7YiC3ft8Cys/BxmmjOY/8b+wDsVQFr+fG3ziiIp9EuGcMnA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 172.205.89.229) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=fail (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=Qr6dzNqy7gtC5ItsnH+iXEUhOfXPGGjMWBxw3c+zMMY=; b=I+B9Y4vtku0x5oA3RUjFqFNynU1GfSVG9SeaDtPrDd5cmInpEN8pl/WPAx4yEycqILC+NtKVT8HhFAQJS3qNBzItekKHGleVJD/nA+NHZ1Y5+/ADFQ8KfctgxcIhiqMzq7kFWLHLkrgoLFdks1+r4U2VqJvkhWYwZ4BE/1VyVWU= Received: from DUZPR01CA0087.eurprd01.prod.exchangelabs.com (2603:10a6:10:46a::18) by AS8PR08MB6326.eurprd08.prod.outlook.com (2603:10a6:20b:335::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.15; Wed, 11 Dec 2024 12:06:46 +0000 Received: from DB1PEPF000509EF.eurprd03.prod.outlook.com (2603:10a6:10:46a:cafe::62) by DUZPR01CA0087.outlook.office365.com (2603:10a6:10:46a::18) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8251.15 via Frontend Transport; Wed, 11 Dec 2024 12:06:46 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 172.205.89.229) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=arm.com; Received-SPF: Fail (protection.outlook.com: domain of arm.com does not designate 172.205.89.229 as permitted sender) receiver=protection.outlook.com; client-ip=172.205.89.229; helo=nebula.arm.com; Received: from nebula.arm.com (172.205.89.229) by DB1PEPF000509EF.mail.protection.outlook.com (10.167.242.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8251.15 via Frontend Transport; Wed, 11 Dec 2024 12:06:44 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX05.Arm.com (10.240.25.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Dec 2024 12:06:43 +0000 Received: from AZ-NEU-EX05.Arm.com (10.240.25.133) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Dec 2024 12:06:42 +0000 Received: from PW070M4K.arm.com (10.57.91.131) by mail.arm.com (10.240.25.133) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 11 Dec 2024 12:06:41 +0000 From: Matthieu Longo To: , Indu Bhagat , "Jan Beulich" CC: Richard Earnshaw , Nick Clifton , Alan Modra , Matthieu Longo Subject: [PATCH v1 4/4] [DON'T COMMIT] error if TC_AARCH64 is not defined on AArch64 target Date: Wed, 11 Dec 2024 12:05:53 +0000 Message-ID: <20241211120553.1391850-5-matthieu.longo@arm.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241211120553.1391850-1-matthieu.longo@arm.com> References: <20241211120553.1391850-1-matthieu.longo@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DB1PEPF000509EF:EE_|AS8PR08MB6326:EE_|DU2PEPF0001E9C2:EE_|PAVPR08MB9771:EE_ X-MS-Office365-Filtering-Correlation-Id: f3046be2-e7e3-4a8c-fa92-08dd19dc4eaf 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|1800799024|36860700013|376014|82310400026; X-Microsoft-Antispam-Message-Info-Original: 6hU/R4rSMJwsuePkJZm5k6eGWvFKnUp+LRodmQIEA2trLQ6+QL+fBPpJhkt+o9EeMQUObQ0Wd+4JBVh1vRNyZD2e7V6isLy9wcZ23dxl8qqDnm9l2HRr3x1phWME54atcTBsSSBSftpOFLMvbfjHGpSpuUaU5fQu+hAjPfHLXyhYVajLXfYnPvvu3md8a2T023Xosoe9V6/3xN5KCd7+O7qLqjoz4QyXhE1lehCOe/X9Tlax/nh4s8gW5TEvejjIhI/F+PDPrhi8hXkJR8OGsrMXO7vMnL5RsJSvsHP/4TzcoUdvEIsQtwy5Ddu8jhc2RpQVMTZa0D9E058gM3umWoSHPk3eSVfEuiopEFzr+q6xVUS9GKAKKmTlvAdovscIyspMAQhP0iXu1yXUAu3vkC35gxMgWEAN/Or5Zrs9pcxye1vRkNNpbpLwbUKMeyBJ+gghQWQ3QLO2iNPNq6/1regCdInf+4+boH//FtPTET0uEahpPgOYc6U9n2B5Pkc7tEE02xCVmtJsgbXWrLK++Da79/x4lxK0U+/fLB2ujxWhKqWMggJiU0nECL4MfiZCfwHYYHYi2rBEU+o6E2aeZfw2aQwcLhpRnZELeWrSOng/wxrwGQOYGQQDZUE2X/pICZywK7alN5oIOJcEvfCO1PbwLzMfMA7VBgIUMclGrsPQb1UsUXGh1YGDFXuKezsVwqaPY+gG27O0+KKdsp4N1gjY+Mota+qv2iOAzePnZi90dC1fx7/a4otXEAcev4GCB1VFd0EWiFXMShcyi6joLfJJKHwR+9LdVkRjbaEAJI8XsCmPDPWOskxSwUWSqQjGYtGJ6JIj0MbJXpd2zzmFmlzltVQgBPwvP104YgByTD50v5EGntYD8p8GGTsChNVjnV0NCWne2dy2cudSjtubJXDh/gTitbCVwXmOZ7bX28lFqCb5rZO4I8RB2S6tnD60a5xvfJCc9faL36ZcG4086lYwLWN9saoWEoygttynLhJ2/xsWPq2mJLCsH2LeAhfJk48FZ2meXjpfXZuqkimlscwx6BsDbDRQPRWHmUf/PByt4wqJDhI0sbxcaGdcxxpy5lV2r0wzUoKHAhn6SYwWmyENuhUPvreNQz0n4tiwtNdD4KpOl+S4Vz2kt6naSmP6EBXN7NHe4xbceYKoQMobi8VR/b5XPRmbxDa1KUs1olzuQtqpszvPCTugebHUG/atAw29KBZtg3+B/Sa6DR2q5kW/e6+WSCYKagO8nYbqm6Lmc42Ox/+nUkkapj9jtf1OfjG8ogyEVzqgmEnhf91WhL6T8PDsfQuSaij0EWnNXwnchHCgbp0BMeg+4LGYp+LF0L9zSbkyOvB1QpOVFIvOouxDJLDLMTLjmJ/kuGGJHEh0lg2VluHotmyl1EH749TH/7Xsv4wuCbzpUpB96uFI0mb7b3Cz/aAiw5Ru7cndkaMPCIZd4PyHMI3TQNRV7ttZ 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)(1800799024)(36860700013)(376014)(82310400026); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6326 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:10:46a::18]; domain=DUZPR01CA0087.eurprd01.prod.exchangelabs.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU2PEPF0001E9C2.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: f7b23293-44be-4d2c-4213-08dd19dc481c X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|35042699022|36860700013|376014|1800799024|14060799003; X-Microsoft-Antispam-Message-Info: t9fvHy+DfATUtARttcl/Y1iMlCudtEnTAxDBHW8O1tgN64fYo5oYsbQSxdwHzNIAIC+80g6NP8GfV9PbPJoL/q21Plk0pYyjvZP3NZ/4gHu3sMmg68B+aN55pEIrE4Mz1k60m2gdcli7OpHuzdEwopH5qPgdI+F5BrZ5IGWD/DzvEj083OXStK91WAJYlvLoOJv0NOvjPpq99rQjShyoeEqvp5SxyDWtms72RRkkzEKlWlwHUmb2Y/wudCpR7sWFo9nWg5V8IJvQM46sTGtly1L7L3zqpZWgCSl3oGb9RUjMJ1TvMKSSFhHt7fvyALD1OMCvLnD10E79i1IsUx536lkESwgkxnFLSrOZgLmXCU2hlhUXqE5j8fRs5RKoo1xYKd+8QQV8uYpI/TheByiGAzdA8dPMX1SK0klr91eHIcD9hHLAk/YEi70GqgXdU1FnWqXk43Iiw32oBcVtDFcc0Ago/D9EAy3y1zViSEKbkImfHBqfyrwWw4ncA7l/43QrXcTk/4qWJIUBtcRucapUsnuLs3+0j74Km6oE9b9THeZQNVLTPDDsaKdmS7G1ZzX4nvB+M/oGN7s5fRYimA1psvyXvqGLvI43FOohkz26AmbJVeqJfz26yz8DBWJPO+yg24SFzo7HCZbmgA/Trvnz9pBljv9wfN1PWjTkwLZNPNc1VZisoxZiZ1NvjR40aFdhUNTk693mjbupKf+OURsG4a1XYt5MlbN3EPTXs2oTOxoi6cTg1+3fAeNv4VeMzhBJ7aMRDQTw7Ij6+MDOet365MrQbCt/m9UEDGTn3jfKvKTf3sY2hP20TC21oZMY33d3K1hxU1Wq8eFIktbnaeYtk0S7UJFBZfO6hEdlX7k4m0fuIJM/VZpEeSDSEPtHQqntrnakcCtUMiCJfmr5aXYSj8GAbo3kqrN+IeV3pZwjf78fya/rGPhTVpJNyU6tzfo/ptHyxm3Cd0Gkj89UGh2jdKwtUJB1L4FU0a0xngD8t4FmqzjnOA3nVdaA9cFQ8DzUY32b/XNcQg04+mF17ZYHzUDvGW4NqrhrXbmhJ+3QoPRbgnB4ulC8j/Skh0+nJYTeL+RokrfLzHLeHoe1PC69cYzyyfNy5V3GNtbw+jVrOaqFjQJQwXg1tIY1Lg+u05TIOG3GdPj7m+5xS7SJbrU3LwSQPDaMdRD74B23EegsBErp4q2FACxrJOhZZqAUcprYNYwbCeChDvZe/CGy25eH3UaWtyvVZl6n2SxAvZxBaKRNiDTVim9kDiwFqgL2h4J5LHWIZdYF87l4g3jxxA9kUh8Fve83DQjK+tc2jODnU1FclJK32d9td3jEGGdNNiQlzFkdewzBSeAN6VwlO1bqXvKgNVBeoIzNcdBhyFLILTnOtftVnmkBcysHf0tWH2LvKoakIEzTqTtMcZGvDY2uLKgl6ju0+Y8E0IE4/J4TVW1Oj0Ie3GoFK76PPinAMEF6wDxYUsnEN/ESFOgeRrVFtg== 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)(82310400026)(35042699022)(36860700013)(376014)(1800799024)(14060799003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2024 12:06:55.9665 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f3046be2-e7e3-4a8c-fa92-08dd19dc4eaf 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: DU2PEPF0001E9C2.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9771 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, 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 --- bfd/elf-eh-frame.c | 2 ++ binutils/dwarf.c | 2 ++ gas/dw2gencfi.c | 4 ++++ gas/gen-sframe.c | 2 ++ include/dwarf2.def | 2 ++ 5 files changed, 12 insertions(+) diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c index 8453c3dcf81..ed25a505af4 100644 --- a/bfd/elf-eh-frame.c +++ b/bfd/elf-eh-frame.c @@ -361,6 +361,8 @@ skip_cfa_op (bfd_byte **iter, bfd_byte *end, unsigned int encoded_ptr_width) #if TC_AARCH64 case DW_CFA_AARCH64_negate_ra_state: case DW_CFA_AARCH64_negate_ra_state_with_pc: +#else +#pragma GCC error "TC_AARCH64 is undefined" #endif /* TC_AARCH64 */ #if TC_SPARC case DW_CFA_GNU_window_save: diff --git a/binutils/dwarf.c b/binutils/dwarf.c index b5e6d2e50d1..65890f964db 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -10362,6 +10362,8 @@ display_debug_frames (struct dwarf_section *section, if (! do_debug_frames_interp) printf (" DW_CFA_AARCH64_negate_ra_state_with_pc\n"); break; +#else +#pragma GCC error "TC_AARCH64 is undefined" #endif /* TC_AARCH64 */ #if TC_SPARC diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c index 22263da808a..cc00a3e4450 100644 --- a/gas/dw2gencfi.c +++ b/gas/dw2gencfi.c @@ -720,6 +720,8 @@ const pseudo_typeS cfi_pseudo_table[] = { "cfi_window_save", dot_cfi, DW_CFA_GNU_window_save }, { "cfi_negate_ra_state", dot_cfi, DW_CFA_AARCH64_negate_ra_state }, { "cfi_negate_ra_state_with_pc", dot_cfi, DW_CFA_AARCH64_negate_ra_state_with_pc }, +#else +#pragma GCC error "TC_AARCH64 is undefined" #endif /* TC_AARCH64 */ #if TC_SPARC { "cfi_window_save", dot_cfi, DW_CFA_GNU_window_save }, @@ -928,6 +930,8 @@ dot_cfi (int arg) case DW_CFA_AARCH64_negate_ra_state_with_pc: cfi_add_CFA_insn (DW_CFA_AARCH64_negate_ra_state_with_pc); break; +#else +#pragma GCC error "TC_AARCH64 is undefined" #endif /* TC_AARCH64 */ #if TC_SPARC diff --git a/gas/gen-sframe.c b/gas/gen-sframe.c index 12c92774a7d..ef3d1285af0 100644 --- a/gas/gen-sframe.c +++ b/gas/gen-sframe.c @@ -1297,6 +1297,8 @@ sframe_xlate_do_aarch64_negate_ra_state_with_pc (struct sframe_xlate_ctx *xlate_ return SFRAME_XLATE_ERR_NOTREPRESENTED; /* Not represented. */ } +#else +#pragma GCC error "TC_AARCH64 is undefined" #endif /* TC_AARCH64 */ #if TC_SPARC diff --git a/include/dwarf2.def b/include/dwarf2.def index 1a38d7e0484..31c4eb9682b 100644 --- a/include/dwarf2.def +++ b/include/dwarf2.def @@ -794,6 +794,8 @@ DW_CFA (DW_CFA_AARCH64_negate_ra_state_with_pc, 0x2c) DW_CFA (DW_CFA_AARCH64_negate_ra_state, 0x2d) /* NOTE: DW_CFA_GNU_window_save is multiplexed on Sparc and AArch64. */ DW_CFA_DUP (DW_CFA_GNU_window_save, 0x2d) +#else +#pragma GCC error "TC_AARCH64 is undefined" #endif /* TC_AARCH64 */ /* Sparc specific extensions. */