From patchwork Thu Feb 27 10:47:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matthieu Longo X-Patchwork-Id: 107171 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 325AC3858C54 for ; Thu, 27 Feb 2025 10:58:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 325AC3858C54 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=JLt0DTqA; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=JLt0DTqA X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazlp170130004.outbound.protection.outlook.com [IPv6:2a01:111:f403:c200::4]) by sourceware.org (Postfix) with ESMTPS id 31F793858D28 for ; Thu, 27 Feb 2025 10:50:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 31F793858D28 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 31F793858D28 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c200::4 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1740653417; cv=pass; b=gZcwt9LFj7J+biJqVs+eBPrvxkgQnBkfJr/3ofMyG42CCo8MCk62S2qqO20zIcSsOsVyUugNbLHJCCzZpohpdMIVPJHLxZPiAl3I2tAefJ0GoDicHnFzvcbwN5rVYR9BODhSJmq8W81sdzGx4aY5UNlsRNQS6lDSO1xpp8YMOoQ= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1740653417; c=relaxed/simple; bh=gUl6qnDnk6smtv3d53tnRXWOLZyYI7XmQcdQRaNFi4I=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=qf9BWzoXUTR3Wz6tPyfErxraaeuFt55+HWibFnB7cfoAG0VeQGG9cO6FO0fZB9xOhphFgACmd8iH3dNw2cDOaO7m1l1p0QrYpoIoQza5eUh0eFglM5L+zoexBVg8jrTwBqzv1YD4pMWESpruGMe0vfJHKlP3UvYQ3+ia3mSqoes= ARC-Authentication-Results: i=3; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31F793858D28 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=nsCqU/8gsVxZY1GOUu2C34Pklt8PyvU7y+aFpSY23nhR/k7fNp0dkzwT33m9yJQmRBFm49qTWWps6oyjdygs7yGQRxZVWDtq+UaGC4sTinv3JA7uIhspgeF43sYHzm595R4CdyqizRhaECfPzpGUwexHRK7S8Y7Ikm5gzMhe6TWo89Sf4DbJsp4yVWE2n2QXta5GocDc+afH/1Qp0cr/IWhA8Ul4xG2ieYVopT/VTl5KqS8AlkA8l6NBe5CTTtgm7SZE3hC1TzDk6sCyJXw+hWGi+ipMjzodj6iMrPr3h6BY4IBN6y1PRhz9Yyp2eXdLon6Z1WwiUWB8dpBhk2C1Xw== 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=q3+QoEWyYfTvNIrJuNRFWuQEU/K1HsVqDzDNLlImm4w=; b=TyQ/zf/06xs+oBU8NUkVCE/MwtvnZtmIUe6VhhTzg4nrDnVEXMl8w0ZqXL5Bg03wznE+UKL/0w0qwOev5Db3Uu4N99IbRQnLGMEfFngvjujFAmxf61b6h3sNMDGvTte9HY1QEhUAI9EpLCkdX7OP2/NNbv2fhz1X/dPRKpsKLrNfijKfrr1U3YZQzmecJlrJyNa3aUCJTECiV+iUu7v3hmgYxDyugWWDEgwewhv/v0OtmxpyEtehD9NDOBIMUcTu2BXV1Bk/U7MfcYLnxLAbGEp3suXZRZpcWvZm/5SpzfdVcjX9elxQZo40pgnDfUqT2SxyxFovFztf2xSt9ml9Mw== 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=q3+QoEWyYfTvNIrJuNRFWuQEU/K1HsVqDzDNLlImm4w=; b=JLt0DTqASp7NJZJqrCZtmMCjY0OmHq2lBxxUs6qKt2MshdmxthujZkQA/K1p9GyanrqEoh1r6CB75X/9mZIdw5tG8Revwo4HK1PmnIr0NgsDBTsRaUXdTDSMs5YcCuS0DVhQNOsXvKj/OewdQ8G5TfqSiqNOmsZKzVLzyuKHSqw= Received: from AS4P192CA0025.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:5e1::19) by AS2PR08MB9451.eurprd08.prod.outlook.com (2603:10a6:20b:5e9::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8466.20; Thu, 27 Feb 2025 10:50:09 +0000 Received: from AM4PEPF00027A6A.eurprd04.prod.outlook.com (2603:10a6:20b:5e1:cafe::a2) by AS4P192CA0025.outlook.office365.com (2603:10a6:20b:5e1::19) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8489.22 via Frontend Transport; Thu, 27 Feb 2025 10:50:07 +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 AM4PEPF00027A6A.mail.protection.outlook.com (10.167.16.88) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8489.16 via Frontend Transport; Thu, 27 Feb 2025 10:50:07 +0000 Received: ("Tessian outbound 0a056dca8bdd:v585"); Thu, 27 Feb 2025 10:50:07 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 6bd44befbda08a55 X-TessianGatewayMetadata: qFUWawrVgaHV463f4F15bC3bSx7Ii+gNN7amolHTe8PQGIBnoMLu9tCzPwPexUonLaczzzlIW6EaPVTWVc3OJiCRS1ydrOi2hgquclSPUFuGCR5BmKPY9Tt913gW30KHYqB+UK4h0DAfHccZrL7jTUdMbVlBBVWehcAHOnbefXg= X-CR-MTA-TID: 64aa7808 Received: from L78a6a9d67eba.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 630DFB45-F93D-4D58-ACC8-6B333F6EFE3A.1; Thu, 27 Feb 2025 10:50:00 +0000 Received: from AS8PR03CU001.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L78a6a9d67eba.2 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Thu, 27 Feb 2025 10:50:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=eoNs1PYaaTaXooSDzXZv0GdEvmFDot7ML4eqgH8sARMFcTyPQIXcHIL9dPcQpRQGXX+hw9qwvUus/DTPu6fs+/Tc5cwkDy3RqWXhr8udv9LmWQEZ+sJVpjVgBwSQef1BfZDY5kDxEMPxcdczgORAz7FT7yPTt0ESN/C/g1hpz7WR97JVNza2Aqo7/83hW3md2TSmu0wwNb1kaSPnYhYZjtzIYh2TgOBiyKETDo7BmHvV4mEYp6FVhXZC3Okt9eV/YEi34M+2zcQMPT+1QQYB18RHZ9d0MGSbkoM4Y7g7e4P+bzvC5LbP60cjzS/jCo9J6tMCpmxj21reIcFVxASshA== 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=q3+QoEWyYfTvNIrJuNRFWuQEU/K1HsVqDzDNLlImm4w=; b=gEEf6ZzPOY6PyUH5SQgMoncqnibCzdF+v2cfDTm06a+ECdOTzTTIH3lq1llyIrE6ws5qeZGRw7r9LQpn0NSN0ntYdUPfnxLLHSc9r/QHH0ClT92+p3i9EqXVn9FXPehHSIQP5T9uikJgGWCIW/25zO1UQqFySJIbQzQctX4HIqclCXTuHGqjOhHuY3xH8k5vVy3GjhlIaGa8Rs9hYF8JDoYROKqj4wjq8urv+/GSw48F1i0nXEZgiQGwa1M7/nuZClMnr0UvmDNQMw9KLjIYsHBv/mH94X5SL7fKTl3UHq6Ft7rqdZCTKMdX16C6CxAqF9rB824HlNRr17KvUGaoVA== 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=q3+QoEWyYfTvNIrJuNRFWuQEU/K1HsVqDzDNLlImm4w=; b=JLt0DTqASp7NJZJqrCZtmMCjY0OmHq2lBxxUs6qKt2MshdmxthujZkQA/K1p9GyanrqEoh1r6CB75X/9mZIdw5tG8Revwo4HK1PmnIr0NgsDBTsRaUXdTDSMs5YcCuS0DVhQNOsXvKj/OewdQ8G5TfqSiqNOmsZKzVLzyuKHSqw= Received: from PA7P264CA0072.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:2de::13) by PR3PR08MB5690.eurprd08.prod.outlook.com (2603:10a6:102:86::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8466.18; Thu, 27 Feb 2025 10:49:57 +0000 Received: from AM4PEPF00025F9C.EURPRD83.prod.outlook.com (2603:10a6:102:2de:cafe::a8) by PA7P264CA0072.outlook.office365.com (2603:10a6:102:2de::13) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8489.18 via Frontend Transport; Thu, 27 Feb 2025 10:49:57 +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 AM4PEPF00025F9C.mail.protection.outlook.com (10.167.16.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8511.0 via Frontend Transport; Thu, 27 Feb 2025 10:49:57 +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; Thu, 27 Feb 2025 10:49:56 +0000 Received: from PW070M4K.arm.com (10.1.29.163) by mail.arm.com (10.240.25.133) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Thu, 27 Feb 2025 10:49:55 +0000 From: Matthieu Longo To: CC: Richard Earnshaw , Nick Clifton , Alan Modra , Matthieu Longo Subject: [PATCH v1 09/14] clean-up bfd: rename functions for object attributes v1 Date: Thu, 27 Feb 2025 10:47:34 +0000 Message-ID: <20250227104811.178094-10-matthieu.longo@arm.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250227104811.178094-1-matthieu.longo@arm.com> References: <20250227104811.178094-1-matthieu.longo@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM4PEPF00025F9C:EE_|PR3PR08MB5690:EE_|AM4PEPF00027A6A:EE_|AS2PR08MB9451:EE_ X-MS-Office365-Filtering-Correlation-Id: ad97eb76-3190-4016-afdb-08dd571c8010 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|36860700013|376014|82310400026|1800799024; X-Microsoft-Antispam-Message-Info-Original: =?utf-8?q?tK+RUxe6Q/bZWtD59mvoQE?= =?utf-8?q?/CADVBHlvbwqSdAN0E6TNnygcev/sug7IcW3ynp69VudF0UGZ8M+TpIk+1O7l9lYj?= =?utf-8?q?94aPgKl/lYq6S8WE3Z/RCM+hIGK4cDnt8fHZ+0pXhUGsrWYRZ6mR7Q9IQR+uXNw4X?= =?utf-8?q?V8jQxef7FgsJky3cX1lwiWmspDjgRonXF+MH9ML14rv3YnoSG4Qfmkc6I0G1lDIKz?= =?utf-8?q?WFWYg7Qv4NGS4ouHZrJZ6DXrK4vTd7/mFr6tE5k/Ajaq3M4DtzKDVUd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wzTS?= =?utf-8?q?XV2sf4sH//i51oP/qAAKk/N7zr3E3Nc3jdCxnkSAYiv8Oqy8h+7AKuSJJPtEBl9TJ?= =?utf-8?q?JO11UzgzTSN1QuQ9GpGQm+w5u5y9TbOexvqFU98eIj44vUXe1OBZrjLq6LLetnkw9?= =?utf-8?q?enOnjS66nbr8pi48EzL0PrzbyipJzuBlIH+995S8aTXvguziglr8hU2MAQURCE40u?= =?utf-8?q?aSZ6vYa4RH3DpuvyWA/ugjrCOgtZsfbnOuXtCRWW9XqyN8YSw1jbKyNM6HGb0S8FI?= =?utf-8?q?Hhit7sFGQU2JBLw67MrOYO/fTTVlzB9P1nr+MyeIuAgyBVC2c8N26DG+F1pyhhY?= =?utf-8?q?=3D?= 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)(36860700013)(376014)(82310400026)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5690 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:102:2de::13]; domain=PA7P264CA0072.FRAP264.PROD.OUTLOOK.COM X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM4PEPF00027A6A.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: deec908e-cd39-430a-a53a-08dd571c79da X-Microsoft-Antispam: BCL:0; ARA:13230040|14060799003|1800799024|376014|35042699022|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Xmh05WeVD5iv8wEBc4OOaqZ/45XA8/y?= =?utf-8?q?geRhXJwKFUQb2cRNnP4DpyDohQ4keaDhY2RuF4kJzdHHQX+5rQc/fC1/FELXCx38v?= =?utf-8?q?MuR5j42feok+Ymy1zRA3/UAk5C5Flnba1mAXgsprJiKhTcW841A5gB0e4pTLB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?q?lXgk5scGmcFop6vAA2pXoIjW1P5J+BTLeV+UDm/mH4ZuYU0YCInK0RBm7MTxNDCA8?= =?utf-8?q?eqeoRlerS8LFmy8HPws9fW3Fo7ZpV51LJyfJG6bsdUGWZPCyyMrQHC82l0yKkiilW?= =?utf-8?q?711wLhCnID9IfAeFx7L4i3pWw8lzXZOzchVZDlKg+wViKwTsiF/6sB9aWQqsY38SU?= =?utf-8?q?1LXIblWY424CfOY5zpL+AdVByqInix2q6Yvm5vWqSu+QHfQX6/G/iWVez7wYCPmgd?= =?utf-8?q?jlUaKjZ47Byn0bnPV+ep2QDUcOJAIH9VgJB8BUAPH8xzvN7g+8B0Gg+R9m+wHJ7My?= =?utf-8?q?KbyaFDm1OUa4wPL7/eDGWP6oYfK36kO5Tsw8mDcQuHDZL0q6oyhAqNgbTp6Tl5vqS?= =?utf-8?q?utOlZSrY8A9b0UTrovqcrIhZq+WPWm6iGGJcow3xRG/LcvGgnmh66M=3D?= 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)(14060799003)(1800799024)(376014)(35042699022)(82310400026)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2025 10:50:07.4975 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ad97eb76-3190-4016-afdb-08dd571c8010 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: AM4PEPF00027A6A.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB9451 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, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org --- bfd/elf-attrs.c | 92 +++++++++++++++++++++++++++---------------------- 1 file changed, 50 insertions(+), 42 deletions(-) diff --git a/bfd/elf-attrs.c b/bfd/elf-attrs.c index 8e4d875e5bd..aa6d6284a3d 100644 --- a/bfd/elf-attrs.c +++ b/bfd/elf-attrs.c @@ -53,9 +53,18 @@ is_default_attr (obj_attribute *attr) return true; } +/* Return the vendor name for a given object attributes section. */ +static const char * +obj_attr_v1_vendor_name (bfd *abfd, int vendor) +{ + return (vendor == OBJ_ATTR_PROC + ? get_elf_backend_data (abfd)->obj_attrs_vendor + : "gnu"); +} + /* Return the size of a single attribute. */ static bfd_vma -obj_attr_size (unsigned int tag, obj_attribute *attr) +obj_attr_v1_size (unsigned int tag, obj_attribute *attr) { bfd_vma size; @@ -70,26 +79,17 @@ obj_attr_size (unsigned int tag, obj_attribute *attr) return size; } -/* Return the vendor name for a given object attributes section. */ -static const char * -vendor_obj_attr_name (bfd *abfd, int vendor) -{ - return (vendor == OBJ_ATTR_PROC - ? get_elf_backend_data (abfd)->obj_attrs_vendor - : "gnu"); -} - /* Return the size of the object attributes section for VENDOR (OBJ_ATTR_PROC or OBJ_ATTR_GNU), or 0 if there are no attributes for that vendor to record and the vendor is OBJ_ATTR_GNU. */ static bfd_vma -vendor_obj_attr_size (bfd *abfd, int vendor) +vendor_obj_attrs_v1_size (bfd *abfd, int vendor) { bfd_vma size; obj_attribute *attr; obj_attribute_list *list; int i; - const char *vendor_name = vendor_obj_attr_name (abfd, vendor); + const char *vendor_name = obj_attr_v1_vendor_name (abfd, vendor); if (!vendor_name) return 0; @@ -97,12 +97,12 @@ vendor_obj_attr_size (bfd *abfd, int vendor) attr = elf_known_obj_attributes (abfd)[vendor]; size = 0; for (i = LEAST_KNOWN_OBJ_ATTRIBUTE; i < NUM_KNOWN_OBJ_ATTRIBUTES; i++) - size += obj_attr_size (i, &attr[i]); + size += obj_attr_v1_size (i, &attr[i]); for (list = elf_other_obj_attributes (abfd)[vendor]; list; list = list->next) - size += obj_attr_size (list->tag, &list->attr); + size += obj_attr_v1_size (list->tag, &list->attr); /* NUL 0x1 */ return (size @@ -110,17 +110,22 @@ vendor_obj_attr_size (bfd *abfd, int vendor) : 0); } +static bfd_vma +bfd_elf_obj_attrs_v1_size (bfd *abfd) +{ + bfd_vma size = 0; + size = vendor_obj_attrs_v1_size (abfd, OBJ_ATTR_PROC); + size += vendor_obj_attrs_v1_size (abfd, OBJ_ATTR_GNU); + if (size > 0) + size += sizeof(uint8_t); /* */ + return size; +} + /* Return the size of the object attributes section. */ bfd_vma bfd_elf_obj_attr_size (bfd *abfd) { - bfd_vma size; - - size = vendor_obj_attr_size (abfd, OBJ_ATTR_PROC); - size += vendor_obj_attr_size (abfd, OBJ_ATTR_GNU); - - /* 'A' */ - return (size ? size + 1 : 0); + return bfd_elf_obj_attrs_v1_size (abfd); } /* Write VAL in uleb128 format to P, returning a pointer to the @@ -144,7 +149,7 @@ write_uleb128 (bfd_byte *p, uint32_t val) /* Write attribute ATTR to butter P, and return a pointer to the following byte. */ static bfd_byte * -write_obj_attribute (bfd_byte *p, unsigned int tag, obj_attribute *attr) +write_obj_attr_v1 (bfd_byte *p, unsigned int tag, obj_attribute *attr) { /* Suppress default entries. */ if (is_default_attr (attr)) @@ -168,14 +173,14 @@ write_obj_attribute (bfd_byte *p, unsigned int tag, obj_attribute *attr) /* Write the contents of the object attributes section (length SIZE) for VENDOR to CONTENTS. */ static void -vendor_set_obj_attr_contents (bfd *abfd, bfd_byte *contents, bfd_vma size, - int vendor) +write_vendor_obj_attrs_v1 (bfd *abfd, bfd_byte *contents, bfd_vma size, + int vendor) { bfd_byte *p; obj_attribute *attr; obj_attribute_list *list; int i; - const char *vendor_name = vendor_obj_attr_name (abfd, vendor); + const char *vendor_name = obj_attr_v1_vendor_name (abfd, vendor); size_t vendor_length = strlen (vendor_name) + 1; p = contents; @@ -193,37 +198,40 @@ vendor_set_obj_attr_contents (bfd *abfd, bfd_byte *contents, bfd_vma size, unsigned int tag = i; if (get_elf_backend_data (abfd)->obj_attrs_order) tag = get_elf_backend_data (abfd)->obj_attrs_order (i); - p = write_obj_attribute (p, tag, &attr[tag]); + p = write_obj_attr_v1 (p, tag, &attr[tag]); } for (list = elf_other_obj_attributes (abfd)[vendor]; list; list = list->next) - p = write_obj_attribute (p, list->tag, &list->attr); + p = write_obj_attr_v1 (p, list->tag, &list->attr); } -/* Write the contents of the object attributes section to CONTENTS. */ -void -bfd_elf_set_obj_attr_contents (bfd *abfd, bfd_byte *contents, bfd_vma size) +static void +write_obj_attr_section_v1 (bfd *abfd, bfd_byte *buffer, bfd_vma size) { - bfd_byte *p; - int vendor; - bfd_vma my_size; + bfd_byte *p = buffer; - p = contents; + /* */ *(p++) = 'A'; - my_size = 1; - for (vendor = OBJ_ATTR_FIRST; vendor <= OBJ_ATTR_LAST; vendor++) + + for (int vendor = OBJ_ATTR_FIRST; vendor <= OBJ_ATTR_LAST; ++vendor) { - bfd_vma vendor_size = vendor_obj_attr_size (abfd, vendor); - if (vendor_size) - vendor_set_obj_attr_contents (abfd, p, vendor_size, vendor); + bfd_vma vendor_size = vendor_obj_attrs_v1_size (abfd, vendor); + if (vendor_size > 0) + write_vendor_obj_attrs_v1 (abfd, p, vendor_size, vendor); p += vendor_size; - my_size += vendor_size; } - if (size != my_size) - abort (); + /* We didn't overrun the buffer. */ + BFD_ASSERT (p <= buffer + size); +} + +/* Write the contents of the object attributes section to CONTENTS. */ +void +bfd_elf_set_obj_attr_contents (bfd *abfd, bfd_byte *buffer, bfd_vma size) +{ + write_obj_attr_section_v1 (abfd, buffer, size); } /* Allocate/find an object attribute. */