From nobody Thu Apr 2 18:47:39 2026 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 793963264ED for ; Fri, 27 Mar 2026 08:00:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774598464; cv=none; b=XzyhS3dZGyGuztN/K286gNLzbPki3uFitrbyPRguTbHXZIFMfG7jBGYKrX3Be6gLqfElJrmy/EFVb5NiYNC5IrYF4FDv0Kb2Pk8Ijdr+ta9F1OLo5gdbZ9lMljxvkOA2GNN/5bFyN8MrslDbthOY7QXfujIIP6FdRcDFHvaK9h0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774598464; c=relaxed/simple; bh=R5/wNfEI166VxEYxX5DKzfd4I8QXDSJZsCGNJsyOgQc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MzBIxzPRvQjVlF9Xw7LemlR0BaWH/ctofsdPT34o3zF/qob+7kLnnG4+UvcydNE1nlPuz8Fh6ehLcipUt/N8ReEG+puGZqjRbYEixZ9NhdvNbTIlw4VMgoh0gd+jplVlllo0kwU7/CqzMHDljR2sxuEy0wOvLeDaacBmKWcEBwU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=DAY2h5TO; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="DAY2h5TO" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-483487335c2so19482965e9.2 for ; Fri, 27 Mar 2026 01:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1774598456; x=1775203256; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2HryrWoWtiuMl3LNqbcdlk98yeRL5cKfDbuBDTCXl6o=; b=DAY2h5TOMKov2CabcY/xMzl5MjApL7TEya7MtwI2A827RoEvHaJc1Fux9/Y3fkb/DG VmRKazIkTATzc+PD0cwklr9SxZGlYWa9H855RRXrNRFem2f7knlaiwXKqFr5M7Ay/Uq2 vZwxnjW5xL95MvpUtxAclndmsi7EM5WDAS9EhPwPeZi9X2M1s/28tkEABAGd/qvex6Iq D0ppovJJoHdCPXD0isVSO7JobhfcYh85q/y5AxEnO7HUNCvmsRKtJexy1vMmlPY0ONPT 0/bvyaR3m062Cn4R4hxpezPIE00vUH3qUQvynjjxSXTUgpxdQMdOi9BGv6FpLKxkAnFo EdNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774598456; x=1775203256; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=2HryrWoWtiuMl3LNqbcdlk98yeRL5cKfDbuBDTCXl6o=; b=fNYrLRF9VlocHoO3psMDqat1w2bvCrjCdsRJFq1J816Ujc3z+VH935DDyMvT7odwda 91BsnBS74vnOeGxxx3XpEtLgeUXBLP7JmnJTruzeSsZfMjZFfFWRkflIg+N+PxyZX2Gu cUKghGgWv3hgUuIBpDZc6JkEqdYcfRAVkVEhSA4Q7YqUHWUHEmSM4I67NOpHSTf9TNE2 6EUkFshoCf2dFtht7VQ/uoDqEZneOTfGO/Kg7Qh0JV1vr8flD4OttIU6eAiZPa1XSshQ Dh0PGRs9pAfdL83a6oWSjxg+JXhidegZpgvGQhDxkVAMuzQJS6mCuSNuZ5WDBOSsYXGW GnEw== X-Forwarded-Encrypted: i=1; AJvYcCWkaXkMY97VeLcgJwvnSWImAqPDKUXbS0EG8SzC47KnTyCgcp9GsjmWlU/5e0+7Iww3AwcSLbvFDiVXqEs=@vger.kernel.org X-Gm-Message-State: AOJu0YwTN+nTBRshbf3rT2B7smui9o8XZ/deg15qxl+AymPZzM/OfQDd ZcdHPszHKKLjo3nAJGjt6VbcBDJIDjVH9PKRkwzuTwjSiW2UwZL+MPAcSelPMQg945E= X-Gm-Gg: ATEYQzwXuBV0mbzPVl54FMjneCOjMOt0DsH93bYkOHhPexMkoK+B1qNTlw5+RxglPDe ZFtPZjoClMzjrSwME6JwIQO6uwgnHab4YE70GGvZCWI479B8bPT0dBf9rgD6xIdjo9laUyixSoj gUWFhgB8R/fYOk9A1JNyH+J2se3Q5+HomuO5pD/Wy452gLws5kiwriB6ZJUESJ0xwZ851xQAd1u rper6sZr0OSohip4O9IPHkAfJPfqOBENM5fZK4fAsHhsfDV3InrioUJEpLsdavNEellO0H8gqa5 KlcDfZfj8hQWix0QPnp+Sf+gUQnMd99o5p/qGcydb+sInyEXFXSbpgjFl78GN6sPp/9rxLg80AM 2EbrhcU38HP18FClDiNIw5aYs3axSHAS0uABRDRKSEx6y1jLd9mq0vKcc+mvR2GI3O1lg03tmbf V7ke1xm8vtK57ItXIl152rEGuyL7dtiFUcjvtW5SaP X-Received: by 2002:a05:600c:5249:b0:487:386:3714 with SMTP id 5b1f17b1804b1-48727f7bb08mr24460995e9.17.1774598456054; Fri, 27 Mar 2026 01:00:56 -0700 (PDT) Received: from zovi.suse.cz (nat2.prg.suse.com. [195.250.132.146]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48725fc4827sm12089735e9.11.2026.03.27.01.00.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2026 01:00:55 -0700 (PDT) From: Petr Pavlu To: Russell King , Catalin Marinas , Will Deacon , Geert Uytterhoeven , Paul Walmsley , Palmer Dabbelt , Albert Ou , Sami Tolvanen Cc: Alexandre Ghiti , Luis Chamberlain , Petr Pavlu , Daniel Gomez , Aaron Tomlin , Joe Lawrence , linux-arm-kernel@lists.infradead.org, linux-m68k@lists.linux-m68k.org, linux-riscv@lists.infradead.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] module, arm: force sh_addr=0 for arch-specific sections Date: Fri, 27 Mar 2026 08:59:00 +0100 Message-ID: <20260327080023.861105-2-petr.pavlu@suse.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260327080023.861105-1-petr.pavlu@suse.com> References: <20260327080023.861105-1-petr.pavlu@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" When linking modules with 'ld.bfd -r', sections defined without an address inherit the location counter, resulting in non-zero sh_addr values in the resulting .ko files. Relocatable objects are expected to have sh_addr=3D0 f= or all sections. Non-zero addresses are confusing in this context, typically worse compressible, and may cause tools to misbehave [1]. Force sh_addr=3D0 for all arm-specific module sections. Link: https://sourceware.org/bugzilla/show_bug.cgi?id=3D33958 [1] Signed-off-by: Petr Pavlu --- arch/arm/include/asm/module.lds.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/module.lds.h b/arch/arm/include/asm/modul= e.lds.h index 0e7cb4e314b4..f9ad774b2889 100644 --- a/arch/arm/include/asm/module.lds.h +++ b/arch/arm/include/asm/module.lds.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0 */ #ifdef CONFIG_ARM_MODULE_PLTS SECTIONS { - .plt : { BYTE(0) } - .init.plt : { BYTE(0) } + .plt 0 : { BYTE(0) } + .init.plt 0 : { BYTE(0) } } #endif --=20 2.53.0