| Message ID | 20260415080521.84647-2-evgeny.karpov@arm.com |
|---|---|
| State | Superseded |
| 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 [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 46BE04BA23D7 for <patchwork@sourceware.org>; Wed, 15 Apr 2026 08:07:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 46BE04BA23D7 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=c1Gu9/md; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=c1Gu9/md X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from OSPPR02CU001.outbound.protection.outlook.com (mail-norwayeastazlp170130007.outbound.protection.outlook.com [IPv6:2a01:111:f403:c20f::7]) by sourceware.org (Postfix) with ESMTPS id A7E044BA2E15 for <binutils@sourceware.org>; Wed, 15 Apr 2026 08:06:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A7E044BA2E15 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 A7E044BA2E15 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c20f::7 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1776240411; cv=pass; b=xtJ0R+r9mf6MkrIRiHOJMcAIVXj1nbxyj7tXwin5dsgVtEaw1AIoTIPj8r1Ewd+HwdK7DXvq0MxRwJpNQKEDgsvHWIWer8fjHo2R7UT2nk2gMIjhzM7yDoq7cOEhGUywe12SfyfR69hPzLSdKqM5Roqb2xqppbZUzjfpMHp9ab0= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1776240411; c=relaxed/simple; bh=ndCOLhoH0RjUyRNUsyGKkj8Cgob0qYxhOSr2r0x1lr8=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=hRGWsc9B47LgSkDLecDHcgvnAUF/RLwPGZcnFW2Mi+PM/KsP/XwOJgtQX6hDxfPkEAE4B7Uu6GSEVJJn3Oa6SoNTnHcGK3PyU/uUO+t2B0/Try3EAkaDSibJsqJI7G+BNxVcZDeuWFLofXNyYk0fMDjuOkHXwrjzfnsGMs4TYfg= ARC-Authentication-Results: i=3; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A7E044BA2E15 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=QyDq7KhAimjrHHu4wQMJ+aR7EBfRY4ZoCAYn1w231xrO+Ok+elLSgjxfgl3Ub5UFlHeCj6XOkd9r7X8omyCwazwkzj/LEZar6qzqQfdMKn7lsLPNe9uOYFjHTxr9LwOESSTV+68u3apNAr8mbQNMXtyz6+66ubgS9fOZJHUcleLKRWXmxRCOx4JdspPoLYqKZ3353Ums6ioYEg32OrdpnKkf/r0vfrb5HIX7WzsKAYbPEBW08zIWV172B7jhlmo+OOgavMYgIYOaa7oFoYgHYFjT7OJrNzKEI7RhwawP6x66/NA2U05ezJCuK7yDWLAAxeloosv1a3Hbm6vj/6QouA== 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=6wBUIq5ecDIVdtwVTa92+/05n8z78wtsbECro4fY5mo=; b=lCNg/t+rxeH3Ac8IdySWRTuNj/0mq4FQGoTnT7gCs3KpDkGJQkBB8E4SLs7LwNoHy8kBTUrWeaKDUwPWt2q+zs0giiObRdupZSdqyImhmA9dPaRVPQFpBPOISCjk9jgqztOgOhC0ptVr6+ltfdgctLZG2xi0Xn8JvND22Hop8k/rA1/VwPXP/t8b0vGhRp3YAzOWiwdgt8ECYMG2fmju/SdRKC8ZqV5+oZbk5BEuPaCD85HundlBXvLvx4b3XG6zr4zQTCWC7RAkIwCtoBY4HgT5xAXOw+rv+HraWQRLgayfZ+uwmchxL+OkC+ZBmsbQteT1UwKcbu3qlYZ5nXPgmg== 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=6wBUIq5ecDIVdtwVTa92+/05n8z78wtsbECro4fY5mo=; b=c1Gu9/mdjCKRK7j28XQPtxklV0QkmAaigm3ZH2qSWvg3onRb310pnrY8VBPFFc8TrVbmCEIBT7klMNltoFgalmOhgdZeiaabfsIDmZ5IJQyZ8pGDpvG0GR6TVplrZbVCzKEFDnhC1IU3MZxZ1RPOzaCdPcnkDIqKF2JM9glIllI= Received: from DUZP191CA0028.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:4f8::24) by PA4PR08MB7571.eurprd08.prod.outlook.com (2603:10a6:102:270::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.48; Wed, 15 Apr 2026 08:06:36 +0000 Received: from DU6PEPF00009529.eurprd02.prod.outlook.com (2603:10a6:10:4f8:cafe::33) by DUZP191CA0028.outlook.office365.com (2603:10a6:10:4f8::24) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9769.50 via Frontend Transport; Wed, 15 Apr 2026 08:06: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 DU6PEPF00009529.mail.protection.outlook.com (10.167.8.10) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9769.17 via Frontend Transport; Wed, 15 Apr 2026 08:06:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nUjF7EUz7QBzgLKhP35+WshG4tnZX1aPrwvz6h5VvkCLOo2u9o3kufOd+aUnUev38Y94t+2gVPYUUnwc7eVv9fn9SoMUb5lDlSn/ot++zHfrih6cWToOD0kSnw+3MxdiBiwmAzojmvFbiitZLnXgQZoihHegBzxn+5+/rousnQGIRu/Uf8g70znBdNpI69brQGERWBEHn6Ia4EirEcjw0XR5rNUboafcpxoxZopo5lEl9N4Q8YiR1ndAa3j/pB786rSIIZ6khrffTUi7/vq7DmRCEYDHlNhJtSiZ9WCwE0pM9Clb4RiK5bnOdLzC5i9fTE5UyX9begDIHvu6f84TDg== 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=6wBUIq5ecDIVdtwVTa92+/05n8z78wtsbECro4fY5mo=; b=kOBBG23HOum22Lh5olayT037eGZsE7WSnE5hmfY7HGAknSz5AqBQKutCJnOl1ktprG0MKs3K5gU+tgwsmhdxrd1RQ5s8aKbX1dja+yvaV4cjJI+FLAmu3gMb3ntDCOy64SOQ4qRrbvfgE1C66gYKiUWYtH3+l7bXLa5NPwofqHpGqE7hdF8AzDTzdulzvjQAq/O2At8AouRFqYZdGr71WAPpiXGw6q7bBcwUDb44bYhg6tNDVsjR3/37L4n64E1ve2UlrgPy2k0RyqHYyNWPOHHHgoSRdZBNkUqO/XEouS7vv8jlpNtS4YTfhDSfGelu1rOV0WO3PRpOnOG/KEiexQ== 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=6wBUIq5ecDIVdtwVTa92+/05n8z78wtsbECro4fY5mo=; b=c1Gu9/mdjCKRK7j28XQPtxklV0QkmAaigm3ZH2qSWvg3onRb310pnrY8VBPFFc8TrVbmCEIBT7klMNltoFgalmOhgdZeiaabfsIDmZ5IJQyZ8pGDpvG0GR6TVplrZbVCzKEFDnhC1IU3MZxZ1RPOzaCdPcnkDIqKF2JM9glIllI= Received: from AS4PR09CA0009.eurprd09.prod.outlook.com (2603:10a6:20b:5e0::12) by DB4PR08MB9310.eurprd08.prod.outlook.com (2603:10a6:10:3f6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.48; Wed, 15 Apr 2026 08:05:30 +0000 Received: from AM1PEPF000252DB.eurprd07.prod.outlook.com (2603:10a6:20b:5e0:cafe::d0) by AS4PR09CA0009.outlook.office365.com (2603:10a6:20b:5e0::12) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9769.50 via Frontend Transport; Wed, 15 Apr 2026 08:05:30 +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 AM1PEPF000252DB.mail.protection.outlook.com (10.167.16.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.17 via Frontend Transport; Wed, 15 Apr 2026 08:05:30 +0000 Received: from AZ-NEU-EX03.Arm.com (10.240.25.137) by AZ-NEU-EX04.Arm.com (10.240.25.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Wed, 15 Apr 2026 08:05:27 +0000 Received: from LD2C7QYYTH.emea.arm.com (10.34.124.40) by mail.arm.com (10.240.25.137) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Wed, 15 Apr 2026 08:05:26 +0000 From: Evgeny Karpov <evgeny.karpov@arm.com> To: <binutils@sourceware.org> CC: <jbeulich@suse.com>, <alice.carlotti@arm.com>, <Richard.Earnshaw@arm.com> Subject: [PATCH v2 1/1] Fix IAT (Import Address Table) alignment on AArch64 Date: Wed, 15 Apr 2026 10:05:21 +0200 Message-ID: <20260415080521.84647-2-evgeny.karpov@arm.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260415080521.84647-1-evgeny.karpov@arm.com> References: <20260415080521.84647-1-evgeny.karpov@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM1PEPF000252DB:EE_|DB4PR08MB9310:EE_|DU6PEPF00009529:EE_|PA4PR08MB7571:EE_ X-MS-Office365-Filtering-Correlation-Id: 48091e7f-2922-4625-3f52-08de9ac5ea29 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|36860700016|376014|1800799024|82310400026|18002099003|13003099007|56012099003|22082099003; X-Microsoft-Antispam-Message-Info-Original: OT5cppmlZKJvaVrPbffRN2OzYyDGihnkUb/uidWbESHejP9KdVYadGLWUHPMOPa7TuIv90yMWA4nWxX+vbvyFy4zan1Dnv+9i+pep4rBFYO7WXjQxr5U/n0zhe/G1WpZJ8V7nGFTgl6R9j0lkr/vRH65qywf+xRZbHz2qTWWMrMphho3Yo4mlxK+fqyVLWI6lANygz6+cLvgLsuE39y/6V8B1E1eegjhfDHyAt74/3oZCN/dLIETQxmKoLAaJGkKfKNdynQhg1R++sFy6KaxHpx2BuaVlp41x09WZdzfAcgASnVnRlZMUAnTUWOAO0PNH/skDinb/wKEcuug62LmusTqtMBufhtmF19eLthehn8TDwRciWyZIISfkne/OEzZYXg0HHRFAcuZXLB+2I0KxQbOlAHiGxFKQhV5wBfkudCfR/XEiPAEYtBd622jKX1yHJ8+KSCQIKigZo3wElVCP08XBQqaAHooBcsBbI8ryYB7KbH68Dif8bQvpDKQe1FSotxrTwfkOGIZhSU7Uoa4ZIyQWqN7LpCXjbw1bFLqQukBokO/rrIinoR0Lp/aDWwJU02GBaldrVHxmppa6pGd72rocgkNNxTd+5uptI+dh/7w3liee+qRou80uXPj6d/jCSM1Asm9o9gVekc1nMaoW4t5TygKnjENsE05Hn/Y+nYAON5aSLlIGxYZaqGn2KWDhPucbti8pahEvzAvRgC5Yx7XqN+Q5Qbepf8q1ILTPQU4K2PS12y5xXXsMZKoiozhes2Faa0zHRPe1q+iQf6C0w== 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)(36860700016)(376014)(1800799024)(82310400026)(18002099003)(13003099007)(56012099003)(22082099003); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: Gn7yP+obAu+OwmH30qC0kmh5jIgwBRkhtYMBaihfNAajyEgyEGN0D6whBTDxAjey1ZZzG7ws/l+YTEFXME7eeXpN3aPXIMhQQ2sXa3H8R1Skl6bVV4G+Nf6ygdYUQsD2gm+gmrzJN1FKKb2OHGC1UdFuirWhGgbx3llzk094iKIjZw17HWcebIIv8A+R1cUrA/HRZv0cYUpK5ucmi5GqVo80+nyJyCQOEIkqywTzW3o7Jr4f+QNTG3OYD32QI/SWD8gjJZHWwFZIBwqc+zWKgaQKqp7Q7Dy08CNlTztL+5nljUjgDeGAwLXXaa7htrPPMwz5If7PUm6WLh0Ndx+gyA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR08MB9310 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU6PEPF00009529.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: c062e132-473a-40d8-ed5c-08de9ac5c2d3 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|36860700016|14060799003|35042699022|82310400026|22082099003|18002099003|13003099007|56012099003; X-Microsoft-Antispam-Message-Info: GiXjp1nwFmPfW4CSPqzVmeE52l+JFb6ur43PQWuDnpwPmo1llQM2MrZQK1Qts0R2W2xgSo4wkbKWCh/bq+B6fa47L5jJx0A4uXlPmO/K+5U0TVhN2lo9sox79o8YUGP41mjVX8JQW32IZMG8nAucvVZ4BkLYLsCLZT5bAmoHx95G3wDAAmilx9dAoyd6riVmMLuYChXQQEJkUa/TQgbj/On9uw0hCEeX2KtsELkM86B/rzoIrLzEwXqf5zM+Q+5ZQRAhvkkN2dtKW6GZQ/xUvGyNNXdmUO+W4gJEOPGtWm08MOXZh0+GwO/ZlQ9sfsokX6YMrHkM3qyY2I2mZpDGm4iS+EOHY3BsTd3OTLh+fp0dIBeAI0eLAtY+OXSTgZ87o4LZBUzmJBy9wsu2n4WNhzAHL7xBmhucE0CUOW6q44YMwCXjPIMvUBjWaOtEMCWDvHlHCaey1ruX5y2V6GJNBJwAvU8YyRY5D+e0B+0bYG4cnmTnIx1CVvsS7qDXLG++bSQpHIa+W6XdJKZLawPi4+ltF1LlydGGgTptjg/wDg8Vemc7NKCi9xYqwwU070COE/Yqn5h+Twbo/2IIFbI5mQO5+wmzBdpoahLq2roDy5NrkeuWXY9riUHsesJk39nIasLZW6MczmggSBqs+9JWhekuEuU9CbcFixxBVKxEy2a0BFo0d4vkZaRDfbkHob3nR3ykoZkMq7q1e7mHGSfNLF3sfBl6sB1TG6ctzzVh/NZgno4pqCkKhDQKa7eNBT44qMBLaLOS6YR5tGYEbu34MQ== 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)(1800799024)(376014)(36860700016)(14060799003)(35042699022)(82310400026)(22082099003)(18002099003)(13003099007)(56012099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jTsM77Wjpv7wQ/ipBFwkaiP7if+vQcRMjFvk3HOaP8+OAMvsvRTRzkVzWuArCCBz8klgvmYeT2hPGyq/Z0fzleAmKtR/E2xJSRR3k52xVhBQJDoOWIQTxFgz+ekm0dvh42UpBbu77MfEdwWCfhOO2h53ok5O8SAJ5CXrnIA/WN4C8L57DRqdFXlrxlf2hI8A7FELz4eGTFPlEWR+pwW2bboH4HGRdP4iRDSChStnugwBaJXvC1UG1kl+pSrCPrSqQouRKws4icFHH5EfmD0lnXllmaZBlW/JRy16AIxVE7TvGYnroNx4i/6EPoFRo7HEdL0ZuRgg5JnmPO+dNrEi9VBVHLfm+cJDI3i56eEI/UQQdZ/UUg49N6Oy0VCzxdzvM82zs1xIthz/+QA8g0klI8lsdJ+VwE6TpGv0hXDRGjcnDbHX2K7s22zZyD91C5fb X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2026 08:06:36.0327 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 48091e7f-2922-4625-3f52-08de9ac5ea29 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: DU6PEPF00009529.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB7571 X-Spam-Status: No, score=-9.5 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 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 |
Fix IAT (Import Address Table) alignment on AArch64
|
|
Checks
| Context | Check | Description |
|---|---|---|
| linaro-tcwg-bot/tcwg_binutils_build--master-arm | success | Build passed |
| linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | success | Build passed |
| linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 | success | Test passed |
| linaro-tcwg-bot/tcwg_binutils_check--master-arm | success | Test passed |
Commit Message
Evgeny Karpov
April 15, 2026, 8:05 a.m. UTC
The IAT should be aligned to 8 bytes in aarch64-w64-mingw32, otherwise, it might result in relocation issues. When a function is imported from DLL, it generates the following code: adrp x19, __imp_fn ldr x19, [x19, #:lo12:__imp_fn] 8 byte alignment is required for ldr relocation. Addresses are placed in IAT. The size of the chunk on AArch64 is 8 bytes. If IAT is not aligned to 8 bytes, the relocation issue appears. This patch fixes this issue by aligning IAT to 8 bytes on AArch64. binutils/ChangeLog: * dlltool.c (make_head): Add 8 byte alignment on AArch64. --- binutils/dlltool.c | 6 ++++++ 1 file changed, 6 insertions(+)
Comments
On 15.04.2026 10:05, Evgeny Karpov wrote: > --- a/binutils/dlltool.c > +++ b/binutils/dlltool.c > @@ -2735,6 +2735,12 @@ make_head (void) > if (!no_idata5) > { > fprintf (f, "\t.section\t.idata$5\n"); > + > + /* Align IAT (Import Address Table) to 8 bytes on AArch64. > + https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#import-address-table. */ > + if (machine == MAARCH64) > + fprintf (f, "\t.p2align 3\n"); Hmm, so we're back to square 1 as far as the actual code change is concerned. Further, I don't see how the link is related here. As you said yourself in a reply on the v1 thread, there's no talk of alignment there. Neither your text nor what is said there really addresses what I asked for in [1]. I also continue to be unhappy about the adhoc, hard-coded 3 in here. As indicated, imo the function would better consult secdata_plain[], with that in turn getting edited suitably (either at runtime, or by splitting the "align" field into a pair of fields, one for PE32 and the other for PE32+). The tool as a whole really wants to be self-consistent. Yet further, as also indicated already, I don't follow why .idata$4 wouldn't need (or at least want) treating the same. It also contains 8-byte elements in PE32+. Finally you still leave make_delay_head() entirely alone, when - as indicated before as well - it clearly has the same issue. IOW - I, for one, am not going to approve the change in its present shape. I could make a patch (or perhaps rather a pair of patches) myself along the lines of the above, if need be. Jan [1] https://sourceware.org/pipermail/binutils/2026-April/148874.html
On Fri, Apr 17, 2026, Jan Beulich wrote: > Hmm, so we're back to square 1 as far as the actual code change is concerned. > Further, I don't see how the link is related here. As you said yourself in a > reply on the v1 thread, there's no talk of alignment there. Neither your text > nor what is said there really addresses what I asked for in [1]. v3 will contain more generic changes to apply alignment to the IAT for PE32+. > I also continue to be unhappy about the adhoc, hard-coded 3 in here. As > indicated, imo the function would better consult secdata_plain[], with that > in turn getting edited suitably (either at runtime, or by splitting the > "align" field into a pair of fields, one for PE32 and the other for PE32+). > The tool as a whole really wants to be self-consistent. secdata*.align will be adjusted for PE32+. > Yet further, as also indicated already, I don't follow why .idata$4 wouldn't > need (or at least want) treating the same. It also contains 8-byte elements > in PE32+. .idata$4 emits the Import Lookup Table, which was not the purpose of this patch to resolve issues with relocating symbols from IAT when the function is called. > Finally you still leave make_delay_head() entirely alone, when - as > indicated before as well - it clearly has the same issue. v3 will contain changes in make_delay_head. Regards, Evgeny
On 05.05.2026 10:14, Evgeny Karpov wrote: > On Fri, Apr 17, 2026, Jan Beulich wrote: >> Hmm, so we're back to square 1 as far as the actual code change is concerned. >> Further, I don't see how the link is related here. As you said yourself in a >> reply on the v1 thread, there's no talk of alignment there. Neither your text >> nor what is said there really addresses what I asked for in [1]. > > v3 will contain more generic changes to apply alignment to the IAT for PE32+. > >> I also continue to be unhappy about the adhoc, hard-coded 3 in here. As >> indicated, imo the function would better consult secdata_plain[], with that >> in turn getting edited suitably (either at runtime, or by splitting the >> "align" field into a pair of fields, one for PE32 and the other for PE32+). >> The tool as a whole really wants to be self-consistent. > > secdata*.align will be adjusted for PE32+. > >> Yet further, as also indicated already, I don't follow why .idata$4 wouldn't >> need (or at least want) treating the same. It also contains 8-byte elements >> in PE32+. > > .idata$4 emits the Import Lookup Table, which was not the purpose of this patch to resolve > issues with relocating symbols from IAT when the function is called. > >> Finally you still leave make_delay_head() entirely alone, when - as >> indicated before as well - it clearly has the same issue. > > v3 will contain changes in make_delay_head. Btw, may I ask that you configure your mail program so that it properly identifies replies? Just now I had "[PATCH v2 1/1] Fix IAT (Import Address Table) alignment on AArch64" and "[PATCH v3 1/1] Fix IAT (Import Address Table) alignment on AArch64" in my inbox. Clearly indicating that the latter was an almost instant re-submission of the former (when really the former was a reply on an old thread). In such an event I would simply delete the obviously obsolete version, without even opening it. It was only when looking at v3 0/1 that I recalled that your emails lack the usual "Re:" prefix (or whichever translated version thereof). Jan
diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 94805fcd334..44823e120af 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -2735,6 +2735,12 @@ make_head (void) if (!no_idata5) { fprintf (f, "\t.section\t.idata$5\n"); + + /* Align IAT (Import Address Table) to 8 bytes on AArch64. + https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#import-address-table. */ + if (machine == MAARCH64) + fprintf (f, "\t.p2align 3\n"); + if (use_nul_prefixed_import_tables) { if (create_for_pep)