| Message ID | 20260706094728.1788418-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 EE60A4BA2E16 for <patchwork@sourceware.org>; Mon, 6 Jul 2026 09:49:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE60A4BA2E16 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=gYxCI/7C; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=gYxCI/7C X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c200::1]) by sourceware.org (Postfix) with ESMTPS id A0E6A4BA2E12 for <binutils@sourceware.org>; Mon, 6 Jul 2026 09:48:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A0E6A4BA2E12 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 A0E6A4BA2E12 Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c200::1 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1783331330; cv=pass; b=j2OfWUc0nSyw3F+QWTW1gw+odJ8PnZjSKhnZzEJydk75mnKuTXUIMZusVDzeja6Drt1w1avXJXDufttYjg32U1xWMz8T/QrOfGHB5FW37uS+X8MlYwiAj60sGsM35rKlcPiCVFdbt7SThw3TYZRQjwxYTiVX9PLSxh0EEs/LthU= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1783331330; c=relaxed/simple; bh=5QuPvkMQQ6XP9BYp7Mgsz+suESKIn0nauJHOTlfD0+Q=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=pNvSUfWXddSsB+2+NJLrQXCFhgDTF6Xgcufn4CTl4dxZ/Um9JpTBM/5LN1DHAheYBMB38EqXZs/a7+T0webAU4eh3Wd7iyZ81OVDXFk1VQXSRRKTgICNkcsdlroVaAc7xZtZwJkpY5GQjIwWTlPwWdtK0rjz9bEn5jJ19HaSVeY= 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=gYxCI/7C; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=gYxCI/7C DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0E6A4BA2E12 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=M3bx9mB+BtUhspA9xG9SfH7nvxx53Xl0pi/Dknoq3UsJ/SSxH7D9zgBxtmI2F07B6yxiB6JF3VWF495RpMaE0jQENJBQI791CpV3acnu48+SnelMpH/QoWMlYJBXb3tDXwMCDaN/OlhCSsYIVdNORHZ75Rcx/HGRIEpczp8ASgNNj41aB9HNDwGHjuklGdH/8u/awP4x/4Lp/3LgJ1mzq0wokerZfjxh6kZfKzlyvY8JTO3qqcOYaWTNLmWVYpybBdCjz5Nvtq7zK9NlSG9IgIiexnigCdPPTvY/KdcBOmqGjozMbUitfNwQ9QHErpO03jDFFBgI4bRKz64Qgr2lhw== 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=fRWnekRaOBBFhG+yzxszkpDPGHgScgtp/4yNHl7bVHk=; b=pQubYjHRCPZfgBN3z5RMmHNu0ThaQYtD+iN5o7x1xTpqonkszBEbwz7zhVWWQadfsMzIjKulacxusX1dfaHq/Sz6oQYFFdX2blrtqXTfXSarmFK47YWl76oEJLVlE2sSKV3A+HrGLJ5NHxnS9DXlWu90RZ2M1jNwwmbesb2RcON5O51dRbGCQVyY8z7MywR42vWaaF0uPnexAH86MOVylkOyhni2Kj6sWprTJkJtbqcU4wFSiTZm5e6mFB7L4V3Oo0anC/4uru6Ot8IKekrkE1A9Aowc9a/FbJVMc0SfcPYnFyXAUuowh2z/1UKsbo2QyAybNrYzpNdhhnpXi0CRdA== 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=fRWnekRaOBBFhG+yzxszkpDPGHgScgtp/4yNHl7bVHk=; b=gYxCI/7CsZfa2bs4BfP+Ixelb8ZuzH65Ok40oNJ4zyZeZhSAy+G/Mn8Q0x49AjZFmlwlunVmZWUlF1PbVxEDdHEuSav/TiVPN8vggYugdo8CVlvQsCb0HtrLVp+ca9S7MMbzDrR+HXUnNT+oGypIaMs7hPHD6ES3SVjfPk4r89A= Received: from AS4P192CA0001.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:5da::15) by VE1PR08MB5616.eurprd08.prod.outlook.com (2603:10a6:800:1a1::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.181.13; Mon, 6 Jul 2026 09:48:37 +0000 Received: from AM4PEPF00027A68.eurprd04.prod.outlook.com (2603:10a6:20b:5da:cafe::63) by AS4P192CA0001.outlook.office365.com (2603:10a6:20b:5da::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:48:36 +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 AM4PEPF00027A68.mail.protection.outlook.com (10.167.16.85) 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:48:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=K7FWy46HJVHbC1qwVRSXfKeOHuoW7PPg5LT4VAyNP2pgI3ofusXS5CtP4MRXNZ7yoQ4JzQAA9zcVaaXVcJ5vi1yhIFc+f+9p+usSsYRMP3No6T0qdzc0hXQw5exr5q/QHzlgDUgtaG+waZEP2k5stRu3gO0un4fJ6DSV8+u36uh8ohNCTHsDvUDVSQF2zcpJZ4loKG4iEjs/FKYLPWRcYvZ6QDkwT+MsrgSsx8CBC3bkhkJe4i/Q0jtsI9FIFXBjCywlMD5LHQpyTcdKfzbYilpj2f1Nnt6BVjL9kB4rmcOMJn/BLxzdAA1n8qRJzoB2WLQJKtJo4QodAPxX5wXdJw== 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=fRWnekRaOBBFhG+yzxszkpDPGHgScgtp/4yNHl7bVHk=; b=b4BfmvGn5kySS+q8RRK+wnylatwtXIDpvXevRnWHP/l8/6oUMAQj431gBJEtmQNV1yAjnJHboTpM8vlgUofGfrI2FEXJtEpJRmzTJOIQzErAtVu+qrJ08Pun+VvUiXqI/K7mF/2ZkcgZOu/lxLcUGbaYiiokhyCc46JjPCAvl5YyD6kjVjNNwb/Bsq2Zdqp5T/fzyRlUBbIcAZfNkevLduehq/y63BY7AancGKsG9ViyznfNnVKYvaUxv8MkVYN/WezkL60ucdD2+eMRvLrBCG1AWD1fMcAbd/K6/Gp/NT5xtfzsKQ4hoLpVCJy4hnutraCPQnXpwcE7bPHxSHoROQ== 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=fRWnekRaOBBFhG+yzxszkpDPGHgScgtp/4yNHl7bVHk=; b=gYxCI/7CsZfa2bs4BfP+Ixelb8ZuzH65Ok40oNJ4zyZeZhSAy+G/Mn8Q0x49AjZFmlwlunVmZWUlF1PbVxEDdHEuSav/TiVPN8vggYugdo8CVlvQsCb0HtrLVp+ca9S7MMbzDrR+HXUnNT+oGypIaMs7hPHD6ES3SVjfPk4r89A= Received: from AS4P189CA0015.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5d7::19) by AMDPR08MB11483.eurprd08.prod.outlook.com (2603:10a6:20b:716::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.181.9; Mon, 6 Jul 2026 09:47:34 +0000 Received: from AM4PEPF00025F95.EURPRD83.prod.outlook.com (2603:10a6:20b:5d7:cafe::38) 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:47:34 +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:47:34 +0000 Received: from AZ-NEU-EX04.Arm.com (10.240.25.138) 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:47:31 +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:47:31 +0000 From: <srinath.parvathaneni@arm.com> To: <binutils@sourceware.org> CC: <Alice.Carlotti@arm.com>, <Richard.Earnshaw@arm.com>, <pinskia@gcc.gnu.org>, Srinath Parvathaneni <srinath.parvathaneni@arm.com> Subject: [PATCH v1] aarch64: Fix assembler internal error for %dtprel relocations Date: Mon, 6 Jul 2026 09:47:28 +0000 Message-ID: <20260706094728.1788418-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_|AMDPR08MB11483:EE_|AM4PEPF00027A68:EE_|VE1PR08MB5616:EE_ X-MS-Office365-Filtering-Correlation-Id: fb86eb99-52ae-4a90-b860-08dedb43c030 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|36860700016|23010399003|376014|1800799024|6133799003|11063799006|56012099006|18002099003; X-Microsoft-Antispam-Message-Info-Original: t9b4UqDD3+yiiMbjadM2B18JLWXp0OBozZZHYraJ+KQVekEG8L8glWNItqTT/8AIzejB+ss8O6rdx1crGw3hjumQyY1rxJUV/IlOrnbHKNsUgDjosaOpJ9EiEJbFuG+UHBInz4fhR3YeD+L4LEbPBfftjP1EWaICuOlC35FktSpU7bYFtXEVwMkwjyVIQAtz1KQVk9ZnEK1FWaM+hsgWQTa2TNgH0WXs/r1h1qSIqup25/c9qNqJznwzXhHP6O6PTlALpoZxeAF6fwaCI8I/Eo1QrUn4ta87Igqw6rtGareZJawnMes53ECUDG8T4vZhRTTY3OsBzJGrZgG5OIXWTAovKg469x3seULSCrSQ1uipSGGU8x7s8lOXkVT8Fjjj2dsZoaDCvgA4UsuqZbwpZcnQLCGrfNkqABK5tQLhGDrIYCIzDGlwnsGwwt0aqjJXQhwKxmjT03ugONDYKE8F6dLkXv3+Gnc/w/YQXd9rXKFIvu0Moboa4m0dVLELPAGgGWUMpg7XGIr6plP1KZYeR0Dgn3gsA7y8oqVkB5d2gIQ7q39YF4lllcLzGt9ZNSO5/CZ5Us3tCE+4xsP3mJWdN6gNiCZYmnBaUGPMjNaCyKxMgmptorrwntdGWwBohcXIWeWar+npJWoUOFVgO6kizmCKmf/N59j5fjkSYbGTHEwjh28MERYInDEs9iNYYDjMsC3bROqtNJigvtB9PaddJQ== 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)(36860700016)(23010399003)(376014)(1800799024)(6133799003)(11063799006)(56012099006)(18002099003); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: miouM+7Bdyuv/CSEBYbY0giZ+xJhQdSTQomiFFcRfqfDObh9on9tSiiGV6aj3sabxJS458OVCDvQGY3MxfGGf008auf9KJZCgyI9AiS6Nxr40rcIkyIb62dF+qAalAdANJulHAms+GF7OEQbNseC0vvH4sA63RFklsRHTy3EYYOtd2FQ9bdaebZo9zlnGiUlZQwuRY7azaxyUeVE8uUWk2NBT/lFfWtBgZnR+XmNZfVtSzTJpgRkGj8ug37eArRwXXUgn4D3K26SfP7CjmcjdWw9PZOfperkYSq177EhcBVHlS0KgOLeraFyoPEG7x5jIqr+OK8ATl3uETVr/pE0aw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AMDPR08MB11483 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM4PEPF00027A68.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 18f73069-e450-4d5a-498b-08dedb439ada X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700016|82310400026|1800799024|376014|35042699022|14060799003|23010399003|18002099003|6133799003|56012099006|11063799006; X-Microsoft-Antispam-Message-Info: qtQTUnJpUlskSvy00YyL65wLNuMAh6waXTjOyAU6lZWZkUBP9lPOFPyKO8IKpfHzTO1tFXrw/4skCFDuG8s9niLAKJ6ZjkM+ah5Q/U4qlxL+ezuO4CfV9BrMtnpLBKx02MRfz9ifJzE+kxOG+2T8qwHEffH4zztgXCl5cD0Mhu4klapexKLxZoQg6OG2wdY2ZfjE4AvY7fh30GCh8ItLcnrcK9JbVrLWUymAQCCaL4FqfNhiQjT99IEFQGEcSuwtAhT0wvw1yVNp9nh/ovWAdQC445/R1RqFa/miTsM5q/JYdDbvR9DKd/CWrc5+rYxQSpsr9xoPJjx29GtgKbnFMtRUd0Ayz6ecym694Rb+SO3W58qUPWG5XBNbOjuNedWbxuxKJL9w0CyC13ho8CjNRamRdQILERHd+J/OwTW2dRSZmtDDni11FdW/EKBtyVOqp2qQnO2pwWGRwDgifeciiNAxLX0k1oNatl8QvFUGA/kjzb6PMRXpO5oYXHpIamcVEWmGQ1arR4/A4vzs+ixnWVNCx6tVEc/nMbD2mEXzMuZ/7GYQJQlV7kbYRuJl97z0l1vSVhTHQYV5s6Psm2DUd3IeqQqLdNl9qZHlQpk+WOJkkyAYAcy49qNIof94I0apZciSVJ6wa5C7urMFOE0tKf7Wpn03rQRv4kWkcD4UlE42+3I2CVh+rwBYSOUeacqwqgN7FdhRlZs80q7f6YsI4Q== 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)(36860700016)(82310400026)(1800799024)(376014)(35042699022)(14060799003)(23010399003)(18002099003)(6133799003)(56012099006)(11063799006); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gPVW9YSMwnCbM/oX8A+k8Dc+5D8DF/bfW+cuE9AW00dumwzp3CEwX/jUfLBvihKeDBUp+9SvzwaY2Mgar328PZof60yoDR8o4qKuL74sFlgdLKoFDYBiaga/k2Pgb6xQEL0AE42luUsi4E7k3lp9PskY9SSVMv4rkg3b204fw0eBdKS3u2HqMxLkQctkGSv2SK5rU3dS+yiPIeFYhZH8gkp+K403ooVlyd/x43OVEmJ/fft2ZkxhYZOtWjLqo0D7j3OW9VavgzveRb++/xIqWOtxYNnY9ArrXN4gjVSWtzXPzKCaYmd3AUcgdxDC6o9ouPlbULUwD5BMELPJgVtR/h+1HOJA6f5dLgwT6QybHXgzvzFHyhPXP2ueMQYoUHgTzd7IYy82B6mtG6nUraAoTOF+43beJZUC+Ri8McjbvPU0YxTJltyDnKccnzH35IE1 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2026 09:48:36.6486 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fb86eb99-52ae-4a90-b860-08dedb43c030 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: AM4PEPF00027A68.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5616 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=unavailable 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 assembler internal error for %dtprel relocations
|
|
Checks
| Context | Check | Description |
|---|---|---|
| linaro-tcwg-bot/tcwg_binutils_build--master-arm | fail | Patch failed to apply |
| linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | fail | Patch failed to apply |
Commit Message
Srinath Parvathaneni
July 6, 2026, 9:47 a.m. UTC
From: Srinath Parvathaneni <srinath.parvathaneni@arm.com>
The current implementation creates the DTPREL fixup before reserving
the storage for the corresponding ".xword". GCC's "%dtprel" support
for TLS DWARF debug information exposed this during an AArch64 bootstrap,
where the libsanitizer/tsan DWARF layout places the DTPREL fixup at a
frag boundary. Reserving the storage before creating the fixup avoids
this corner case.
The simplest reproducer (tsan_interceptors_posix-bad.s from libsanitizer/tsan)
is 50k lines and I'm avoid attaching that hugh testfile to this patch.
gas/
PR binutils/34357
* config/tc-aarch64.c (s_aarch64_cons) : Fix the storage order for
DTPREL.
Regression tested on aarch64-linux-gnu and found no regressions.
Ok for master?
Regards,
Srinath
---
gas/config/tc-aarch64.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
Comments
On Mon, Jul 06, 2026 at 09:47:28AM +0000, srinath.parvathaneni@arm.com wrote: > From: Srinath Parvathaneni <srinath.parvathaneni@arm.com> > > The current implementation creates the DTPREL fixup before reserving > the storage for the corresponding ".xword". GCC's "%dtprel" support > for TLS DWARF debug information exposed this during an AArch64 bootstrap, > where the libsanitizer/tsan DWARF layout places the DTPREL fixup at a > frag boundary. Reserving the storage before creating the fixup avoids > this corner case. > > The simplest reproducer (tsan_interceptors_posix-bad.s from libsanitizer/tsan) > is 50k lines and I'm avoid attaching that hugh testfile to this patch. > > gas/ > PR binutils/34357 > * config/tc-aarch64.c (s_aarch64_cons) : Fix the storage order for > DTPREL. > > Regression tested on aarch64-linux-gnu and found no regressions. > > Ok for master? OK, looks good. > Regards, > Srinath > --- > gas/config/tc-aarch64.c | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c > index 715df4de4bf..2da5139d8af 100644 > --- a/gas/config/tc-aarch64.c > +++ b/gas/config/tc-aarch64.c > @@ -2244,15 +2244,13 @@ s_aarch64_cons (int nbytes) > return; > } > > - addressT where = frag_now_fix (); > - fix_new_exp (frag_now, where, nbytes, &exp, 0, > - BFD_RELOC_AARCH64_TLS_DTPREL); > - > char *dest = frag_more (nbytes); > memset (dest, 0, nbytes); > + > + fix_new_exp (frag_now, dest - frag_now->fr_literal, nbytes, > + &exp, 0, BFD_RELOC_AARCH64_TLS_DTPREL); > continue; > } > - > else > { > as_bad (_("unknown relocation operator")); > -- > 2.43.0
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index 715df4de4bf..2da5139d8af 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -2244,15 +2244,13 @@ s_aarch64_cons (int nbytes) return; } - addressT where = frag_now_fix (); - fix_new_exp (frag_now, where, nbytes, &exp, 0, - BFD_RELOC_AARCH64_TLS_DTPREL); - char *dest = frag_more (nbytes); memset (dest, 0, nbytes); + + fix_new_exp (frag_now, dest - frag_now->fr_literal, nbytes, + &exp, 0, BFD_RELOC_AARCH64_TLS_DTPREL); continue; } - else { as_bad (_("unknown relocation operator"));