| Message ID | 20260706094939.1788970-1-srinath.parvathaneni@arm.com |
|---|---|
| State | Committed |
| Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AA7874BA2E19 for <patchwork@sourceware.org>; Mon, 6 Jul 2026 09:51:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA7874BA2E19 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=Tfed/sy+; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=Tfed/sy+ X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from AM0PR02CU008.outbound.protection.outlook.com (mail-westeuropeazlp170130006.outbound.protection.outlook.com [IPv6:2a01:111:f403:c201::6]) by sourceware.org (Postfix) with ESMTPS id 9793A4BA5439 for <binutils@sourceware.org>; Mon, 6 Jul 2026 09:51:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9793A4BA5439 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 9793A4BA5439 Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c201::6 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1783331464; cv=pass; b=AvVUNdbg6W+jq0cGgzJ4Tg+FLCuJN3xArDaYY70nvgZgx60LTzEbHmeiQpur09Lw+ainnkL2AokjIwl3K7FamvsT7cNrvQgFhVwx5eLAxUNPw2XbVuE6Fkc8ZvWLHRiwotouNIoOSOzdedwgyXc44nULjKaOB1fylw14e2tkOOA= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1783331464; c=relaxed/simple; bh=hx8ErnfAOhooqk0W9BlCaH0sGHsRcp6ed5Fwi5gp0Yc=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=JVo58B8qUfWhrQRBVJEXhHpYm8maOE7DirElhA2xr8vEvMTdFUxSOMcrwXEOe7B4g8nQt+ou3Os2Wfl1604/ZHgxaK566VkIUBqnidMdNAgieSFqgD83xhQVlL3IcKFVCgNVu0CzP78RPjiDCTtkEWBUnM+lunajYY9ON5yud8c= ARC-Authentication-Results: i=3; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=Tfed/sy+; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=Tfed/sy+ DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9793A4BA5439 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=ogFWn+2AHd6tOEmMdBUS7iyPApUlrhxIr2pTFurZxWs66BhdIyIMp3CUHE/6IatTKNMluGVjIjZhPUV1u0Z2Uwy8fuDWs8NwQwBMgP5M9nDn+6t/7qF6rpG0JolC07wUE5EyiXr1q+P6/pwEcjrBlaJGy98hxeACpHVIZfgxw9fA5I/aEHxBhXsoGPgSM64sw3p7osyCuZLeVxthh1NcWUJH0i9mjZuQPXxjYIx1yZUeqJU5pMNhWz1rY7D6gcvcdN5JiBhX0idelMY2gCP6BTlrgJdCN+nlYb0nd41gs6pORQETtBHj/XdHL/rIdFuvGK2y24qkogVZu3Fcs5mJyg== 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=tNzmyS/aZ7lURQtpQPf+bDgacH2WKNeonbZe8nonX60=; b=J2qgX/g9aFoCoFrwIT15V9tqkTCKvhRmT8YMK7C8T5ULT5Lcx82IiaalPo81B/fA8zqXGqwzd/4j00jAsYKCM3cLKiYX26kNsbqUlMAvldq/b/g01u15lx1wBEDwv22T3SuoyVlOInK9s9qoWGNkVCYW03VLj/zSJ2Qk6bfbsydoQDMti/cBcZI0mnywStgiBOFS8jXeEwKyubpelx9SoHizXNMop4QHaYUFE6nP1BxXKH7SHtwCP012iHGIVCfp9KnK+YB/jTaX293z6tGkTVwgtR041hThLeXiYYrf1GcD61rlWphQGnQe/sXJ/qsQ61uA4ZdYM5tEINgejhMgoQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tNzmyS/aZ7lURQtpQPf+bDgacH2WKNeonbZe8nonX60=; b=Tfed/sy+PdX2JtkfSzeu5groxdOnSJ63SLGNpx7jnCgwlfyja598TmV1R9M4g0BrY0ItBZua3DzAwXxvxqVDt3ZKIGlYcW40UpmNZhYIECrwdyynWM0ngZsblkjZn05gDREgB+2LE1Uqv0EVRZRq4q489oR6yug3W6H0vrL5jtk= Received: from DUZPR01CA0103.eurprd01.prod.exchangelabs.com (2603:10a6:10:4bb::15) by GV1PR08MB8715.eurprd08.prod.outlook.com (2603:10a6:150:85::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.181.8; Mon, 6 Jul 2026 09:50:55 +0000 Received: from DU2PEPF00028D06.eurprd03.prod.outlook.com (2603:10a6:10:4bb:cafe::92) by DUZPR01CA0103.outlook.office365.com (2603:10a6:10:4bb::15) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.181.13 via Frontend Transport; Mon, 6 Jul 2026 09:50:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 4.158.2.129) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 4.158.2.129 as permitted sender) receiver=protection.outlook.com; client-ip=4.158.2.129; helo=outbound-uk1.az.dlp.m.darktrace.com; pr=C Received: from outbound-uk1.az.dlp.m.darktrace.com (4.158.2.129) by DU2PEPF00028D06.mail.protection.outlook.com (10.167.242.166) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.181.6 via Frontend Transport; Mon, 6 Jul 2026 09:50:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Pqv28IPxfmZ7/oOoLp39V2RmsY0YZoTGIpIoBI/e1FaLHtUxBoLw/YyYN0dbtOQi48zJgDTY3F8DpTLB//GX8yvv3R7mXMyPguHKAAcM9nglWUcXwkU76MJ5PN7BGyp4/7+0/H3oXtVduuLnxo8tbcXhIb+maf4d3vOcnOv0nadVkbBzPhqHdI/qssuMPqmlA3wCd7w9qVc5Uu79t9PiGNssiXhIw9GwdaXY0ZnNNZ/6FAXSDEe6v0CBobbY+3JE8cc+BYrujSWHyvicAr9ARtaupzo77sSATx4I6pSUj5mMgQ/xdGlRQnvnlitEQ2v9a2/hBkOzmh5cG9vjgTN7hA== 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=tNzmyS/aZ7lURQtpQPf+bDgacH2WKNeonbZe8nonX60=; b=AGhVcllEDAzwUWn1X6A/jNicgzCbxhpnaUDoHBNSQZdU4fGHTb8hkQ0BOQRp3GzOrQyidsnBqVELOMHdvVMtF9qWn69H5/sqKRVdtmrFB/CglQSU3C54eH4u9c4zxzlgG6elVru+o2XfaJ79xzRuvHQZQLr/wrLDn9bUkeLTe9/Jx35kgIMTRrvnOVkfoO16qwH2n41bJQhca/JPZczti9pSk7cgFRIcS+j3eXi9TvY/mwAPynvSaHBVh1yRHFpN208+GqfOii3kSnfDjQFBH/FvXQ5sxAxdCtM+Lwv9eoBZaliV11r+BUF0c1+SLH07rQAprbRg1ooOmGBpxzvX+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 172.205.89.229) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tNzmyS/aZ7lURQtpQPf+bDgacH2WKNeonbZe8nonX60=; b=Tfed/sy+PdX2JtkfSzeu5groxdOnSJ63SLGNpx7jnCgwlfyja598TmV1R9M4g0BrY0ItBZua3DzAwXxvxqVDt3ZKIGlYcW40UpmNZhYIECrwdyynWM0ngZsblkjZn05gDREgB+2LE1Uqv0EVRZRq4q489oR6yug3W6H0vrL5jtk= Received: from AS4P189CA0015.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5d7::19) by PAVPR08MB10338.eurprd08.prod.outlook.com (2603:10a6:102:30d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.181.8; Mon, 6 Jul 2026 09:49:44 +0000 Received: from AM4PEPF00025F95.EURPRD83.prod.outlook.com (2603:10a6:20b:5d7:cafe::7c) by AS4P189CA0015.outlook.office365.com (2603:10a6:20b:5d7::19) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.181.13 via Frontend Transport; Mon, 6 Jul 2026 09:49:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 172.205.89.229) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 172.205.89.229 as permitted sender) receiver=protection.outlook.com; client-ip=172.205.89.229; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (172.205.89.229) by AM4PEPF00025F95.mail.protection.outlook.com (10.167.16.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.223.0 via Frontend Transport; Mon, 6 Jul 2026 09:49:44 +0000 Received: from AZ-NEU-EXJ02.Arm.com (10.240.25.139) by AZ-NEU-EX03.Arm.com (10.240.25.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Mon, 6 Jul 2026 09:49:42 +0000 Received: from AZ-NEU-EX04.Arm.com (10.240.25.138) by AZ-NEU-EXJ02.Arm.com (10.240.25.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Mon, 6 Jul 2026 09:49:42 +0000 Received: from ip-10-249-56-67.eu-west-1.compute.internal (10.249.56.67) by mail.arm.com (10.240.25.138) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Mon, 6 Jul 2026 09:49:42 +0000 From: <srinath.parvathaneni@arm.com> To: <binutils@sourceware.org> CC: <Alice.Carlotti@arm.com>, <Richard.Earnshaw@arm.com>, Srinath Parvathaneni <srinath.parvathaneni@arm.com> Subject: [PATCH v1] aarch64: Fix %dtprel relocations size. Date: Mon, 6 Jul 2026 09:49:39 +0000 Message-ID: <20260706094939.1788970-1-srinath.parvathaneni@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM4PEPF00025F95:EE_|PAVPR08MB10338:EE_|DU2PEPF00028D06:EE_|GV1PR08MB8715:EE_ X-MS-Office365-Filtering-Correlation-Id: bf653e47-178b-4bd6-df17-08dedb441180 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|1800799024|36860700016|23010399003|376014|3023799007|6133799003|11063799006|18002099003|56012099006|13003099007; X-Microsoft-Antispam-Message-Info-Original: YGVdWM/1K2LzDTYp+y5c/3bnSI5anLyRpACTQe2x2EEK/Z/mnOwJSCuSqKWygMkR71/Ok8tEPoxpNOvk1BlULWoUbcRi2XBfPfe/L76wKknlntIyAVhmMmo7REgPE1ssGu2GFYpAgg31pbuWbZWtub/ZiqW3yatCduGqCF870ytB5N1Z6CrrcVb/jXSKpAZgvvufs1en6ZgWTOopHKLuicd4KnDxaXCCRC0TocvlkqN2ukHyG1INjHE2OO7NnxiVxyQkX6EQ9X+Tz+TJq/uH+QrYKEkQXJnDspeWBnDH1chdB3LcesbbHe/39h52fjgnjqw/7bDRjPek8Sy2ISdNfzExHwvjdL2EjUQ6oH6CYlXREpCB4g69X1XyMhY5H7APeaPgP6hVD9JPvxrIFxrKfWib3cntC1ZwTD/IvPvUMApcclNfq1FnGR4RpEa2QMoznkLd7VGcnuGFrr6cGuIrmXlXYSdfbQlNNYDgmmkea8PHGsdchXon2FDqqRB9Qu+e8kQxMEUFLQufdAbgPapqN+AsmYT78qnF0Pc3sb0RzplI/IvYq9UxrPvngxsTUQKPOLdDOaKTifZ/O1tZFLSUsR7uqPfjGF3OHtnwMGNraJ6L2MlhChH6PzGQk6Gej8Ot2tc/1dkrOKAlORp7xfldLjsKddrk+RPqQln26LvdQY30HzVU0NlIUIQ27hH0fUepkB4uURubS3HGDMxJ2+6aRQ== 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)(1800799024)(36860700016)(23010399003)(376014)(3023799007)(6133799003)(11063799006)(18002099003)(56012099006)(13003099007); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: hmpFF1Js8ulcIyBYSXvz8tB53mgUVXtSxWUqu/Bid9/tQWlgxYTlz13se9DCLDym6mZ3He1cKXMNZx9P3Xm6o5kTr9PaIrPKoBL1nK2cmx+kuSKsvBLp8nlf/LzYj2Qogdxdtvzyt6F1FEoW46ZJflB9dVMBwCF7ZmejIQ3QtzqN53OtXvQFqaRT8SI+FJ1d6RCfTTXD3/kskXY8taX1jAPwTfN5jmKL1ZYJ2Tzilsae9dgm3PwrMjxWdcciKbnl4zclxKvcEMCmLq/LIlRNosJ/5Kfrj0QSNFsWuhLMaKtUritbQUhnfH+UZotMYqvFvuYQmWQbYyVjsgo9cixUNw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB10338 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU2PEPF00028D06.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 5420bad1-f05f-4ea7-5367-08dedb43e8a2 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|23010399003|82310400026|36860700016|1800799024|14060799003|35042699022|18002099003|56012099006|3023799007|11063799006|6133799003; X-Microsoft-Antispam-Message-Info: zCk5+6rXC2otH8R++oSVbfg03NXLKk/kYABdpY2djEd/8viQD2jaxNw8f97tFVIay06RYv8eezNA3oOu3Gt8riwr4bilKfY84/Xm2bMxCcwNx1ChXFWHX0UBK3KLH1a5lDFUzVb0N9yqXVWSkbk6BSPW2J8y+1Khg3wy9o87U96OaM/NLbKkMZmdV3Ec+HEOPdq4pn6ib+4oOH8hHoRjoldSQkdA+oHQtyKNLsPUsJyJdMTtyKiMWS6dmbqnLypJgA4CEIN9yUEjxE+yx48fqCir0fHa9CQRj09kDE+O6Em83/K7KiLuCDahnOs7Zj0Cmc4pKMQGZ6E/SQHf8YJCq5Y33S2p4L8KdmUag0d8Q/03O/lJjY2HG0W6hFia7THqxqQ5XEcbyLwAL8Ubo/YGIYZfTV72FbFJBD4q8cHN3JnKWCZmFXF0F2awX76BbVmgkpqFTrS1k7rG/COTts+dUkqiNL9ogVNMiwPz141Co4wQjqWDvCNPMRhreNuy6IxRPf5pGgsIMgBcvEG+3gdBu78bw2VmwBd+7ztS8fsN6MYLoi33wQZ7dH32WR0MXg4LOGJcKPwc7yDi691fNvR2VZYuohIMYzDimL4AleD8srTnM3xfwUVW2HVVduBUkvjqHycriwCi7nClyD1oR4ZZHDR2oe8ZKVNd48xGLf4ULTuMKfr2aOzyB00KjuCyqC8lBFeGWWMPEqwr5NFsOIF4bQ== X-Forefront-Antispam-Report: CIP:4.158.2.129; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:outbound-uk1.az.dlp.m.darktrace.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(23010399003)(82310400026)(36860700016)(1800799024)(14060799003)(35042699022)(18002099003)(56012099006)(3023799007)(11063799006)(6133799003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9iCIvaKh4kju6lWm9+6BJ5HMMvnV8y/dA1UhEezsMBLQo/xxTdRGOO6+VtY/puejYiJucpEIfUEefnfwbUDhEmRH6SzACwZqT2dIVUszOGlSJIH5XI2wYu/GXTswaaJzy+NK0y+EL4pAhjKioUSA8LlsiDSDY6aZh1cVpGj58nFDXSS47H0gycW5ZZnWY4ZRpwe5Yt6n6ElqTXI5UylnsXfyzKg7YQLPMaTM/3EGAqJnO/MoNEgMP+j/+zO79apo+/1LIzjTJL8wlhRdh6x/nBKKTOUmIksx0+rSMTNylSgpMHUo+QWK8XM1pFC/4uPxhLN2UEzrMf6q/voqsDpj2vnAvBuf3th6c1Y4Wz1MvBk/0HETZQi48xKhOAmcC6CwYQfmBvtsj7P0IEBTt4zspSRlNDfasWY6JemVpvsIzaqKrC1XOjQo/bu3t36yJLoO X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2026 09:50:53.0766 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bf653e47-178b-4bd6-df17-08dedb441180 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[4.158.2.129]; Helo=[outbound-uk1.az.dlp.m.darktrace.com] X-MS-Exchange-CrossTenant-AuthSource: DU2PEPF00028D06.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB8715 X-Spam-Status: No, score=-11.7 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 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
[v1] aarch64: Fix %dtprel relocations size.
|
|
Checks
| Context | Check | Description |
|---|---|---|
| linaro-tcwg-bot/tcwg_binutils_build--master-arm | success | Build passed |
| linaro-tcwg-bot/tcwg_binutils_check--master-arm | success | Test passed |
| linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | success | Build passed |
| linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 | success | Test passed |
Commit Message
Srinath Parvathaneni
July 6, 2026, 9:49 a.m. UTC
From: Srinath Parvathaneni <srinath.parvathaneni@arm.com>
The AArch64 ELF ABI [1] requires DTPREL relocations to be
8 bytes wide, so added a check to reject %dtprel when used
with anything other than .xword.
[1] https://github.com/ARM-software/abi-aa/pull/330
Regression tested on aarch64-linux-gnu and found no regressions.
Ok for master?
Regards,
Srinath
---
gas/config/tc-aarch64.c | 7 +++++++
gas/testsuite/gas/aarch64/tls-debug-bad.d | 4 ++++
gas/testsuite/gas/aarch64/tls-debug-bad.l | 2 ++
gas/testsuite/gas/aarch64/tls-debug-bad.s | 7 +++++++
4 files changed, 20 insertions(+)
create mode 100644 gas/testsuite/gas/aarch64/tls-debug-bad.d
create mode 100644 gas/testsuite/gas/aarch64/tls-debug-bad.l
create mode 100644 gas/testsuite/gas/aarch64/tls-debug-bad.s
Comments
On Mon, Jul 06, 2026 at 09:49:39AM +0000, srinath.parvathaneni@arm.com wrote: > From: Srinath Parvathaneni <srinath.parvathaneni@arm.com> > > The AArch64 ELF ABI [1] requires DTPREL relocations to be > 8 bytes wide, so added a check to reject %dtprel when used > with anything other than .xword. > > [1] https://github.com/ARM-software/abi-aa/pull/330 > > Regression tested on aarch64-linux-gnu and found no regressions. > > Ok for master? > > Regards, > Srinath > --- > gas/config/tc-aarch64.c | 7 +++++++ > gas/testsuite/gas/aarch64/tls-debug-bad.d | 4 ++++ > gas/testsuite/gas/aarch64/tls-debug-bad.l | 2 ++ > gas/testsuite/gas/aarch64/tls-debug-bad.s | 7 +++++++ > 4 files changed, 20 insertions(+) > create mode 100644 gas/testsuite/gas/aarch64/tls-debug-bad.d > create mode 100644 gas/testsuite/gas/aarch64/tls-debug-bad.l > create mode 100644 gas/testsuite/gas/aarch64/tls-debug-bad.s > > diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c > index 2da5139d8af..43baead03e7 100644 > --- a/gas/config/tc-aarch64.c > +++ b/gas/config/tc-aarch64.c > @@ -2234,6 +2234,13 @@ s_aarch64_cons (int nbytes) > > expression (&exp); > > + if (nbytes != 8) > + { > + as_bad (_("%%dtprel relocation requires .xword")); .dword is also valid. Some suggestions: "%%dtprel relocation requires .xword or .dword" "%%dtprel relocation produces 64-bit values" "%%dtprel relocation requires 64-bit values" "%%dtprel relocation requires 64-bit values (.xword or .dword)" Ok to merge in 48 hours with any of those suggestions, unless someone comes up with a better idea first. Alice > + ignore_rest_of_line (); > + return; > + } > + > /* Ensure we have a closing parenthesis */ > if (*input_line_pointer == ')') > input_line_pointer++; > diff --git a/gas/testsuite/gas/aarch64/tls-debug-bad.d b/gas/testsuite/gas/aarch64/tls-debug-bad.d > new file mode 100644 > index 00000000000..fb1af537d95 > --- /dev/null > +++ b/gas/testsuite/gas/aarch64/tls-debug-bad.d > @@ -0,0 +1,4 @@ > +#as: > +#objdump: -r > +#target: aarch64*-*-* > +#error_output: tls-debug-bad.l > diff --git a/gas/testsuite/gas/aarch64/tls-debug-bad.l b/gas/testsuite/gas/aarch64/tls-debug-bad.l > new file mode 100644 > index 00000000000..34f24e3aa47 > --- /dev/null > +++ b/gas/testsuite/gas/aarch64/tls-debug-bad.l > @@ -0,0 +1,2 @@ > +[^ :]+: Assembler messages: > +[^ :]+:[0-9]+: Error: %dtprel relocation requires \.xword > diff --git a/gas/testsuite/gas/aarch64/tls-debug-bad.s b/gas/testsuite/gas/aarch64/tls-debug-bad.s > new file mode 100644 > index 00000000000..c4987bc3260 > --- /dev/null > +++ b/gas/testsuite/gas/aarch64/tls-debug-bad.s > @@ -0,0 +1,7 @@ > +.section .tdata,"awT",@progbits > +.globl var > +var: > + .word 0 > + > +.section .debug_info,"",@progbits > + .word %dtprel(var) > -- > 2.43.0 >
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index 2da5139d8af..43baead03e7 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -2234,6 +2234,13 @@ s_aarch64_cons (int nbytes) expression (&exp); + if (nbytes != 8) + { + as_bad (_("%%dtprel relocation requires .xword")); + ignore_rest_of_line (); + return; + } + /* Ensure we have a closing parenthesis */ if (*input_line_pointer == ')') input_line_pointer++; diff --git a/gas/testsuite/gas/aarch64/tls-debug-bad.d b/gas/testsuite/gas/aarch64/tls-debug-bad.d new file mode 100644 index 00000000000..fb1af537d95 --- /dev/null +++ b/gas/testsuite/gas/aarch64/tls-debug-bad.d @@ -0,0 +1,4 @@ +#as: +#objdump: -r +#target: aarch64*-*-* +#error_output: tls-debug-bad.l diff --git a/gas/testsuite/gas/aarch64/tls-debug-bad.l b/gas/testsuite/gas/aarch64/tls-debug-bad.l new file mode 100644 index 00000000000..34f24e3aa47 --- /dev/null +++ b/gas/testsuite/gas/aarch64/tls-debug-bad.l @@ -0,0 +1,2 @@ +[^ :]+: Assembler messages: +[^ :]+:[0-9]+: Error: %dtprel relocation requires \.xword diff --git a/gas/testsuite/gas/aarch64/tls-debug-bad.s b/gas/testsuite/gas/aarch64/tls-debug-bad.s new file mode 100644 index 00000000000..c4987bc3260 --- /dev/null +++ b/gas/testsuite/gas/aarch64/tls-debug-bad.s @@ -0,0 +1,7 @@ +.section .tdata,"awT",@progbits +.globl var +var: + .word 0 + +.section .debug_info,"",@progbits + .word %dtprel(var)