From nobody Thu Apr 2 18:47:37 2026 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 748873CE4A2 for ; Fri, 27 Mar 2026 08:01:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774598466; cv=none; b=FzYRFBe/J+TAunOvkgwmbrM6YRJmGbI+0YLwANNjPLR4ktjlrpQ8gfP3WyaZ4vCMUgblEKfL2PfPCJxp0eutWy1aqlRg+TYeoTPlnSfuXmjcxVH6alMcCswuerxep3YyE3gdWEqUpzjQF1UHqNUJa7kI2sHGOF5WfcDCtH0LJEA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774598466; c=relaxed/simple; bh=JWfjR/RTCXmZyEk+4Tx2iEnYpR1e4qTFsejI1js9qmM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ILb5IWZ1dyvHgisG4BLiXnUIHCFW5yCOWa0EITlq82Jj/FQIoPNe+0zgGcKx3nrqrAxzc37/g3YSN0DrXUrFvhEAoVuLSY1HAzulO0Nor6DV79NaxgeNEgxr7K7eaCQRYfekFSnWr30l+LhxaUNYyjwZCrJDx8ewSvWB6Hk/n4g= 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=asSHicuA; arc=none smtp.client-ip=209.85.128.49 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="asSHicuA" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-486b9675d36so15983355e9.0 for ; Fri, 27 Mar 2026 01:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1774598458; x=1775203258; 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=K4moBxHVs6SiILsKE/Pxveo5RaXduWTr95oeVQa3H18=; b=asSHicuAgkTGUEaBuYI1pK/H2Fzu1ZZdsIgrBp4rkN+fykqRLJox6DOtm7rqPOui4K f4R7iwzB+Sb7oTg9FM5p6Nt4BtV4R8nFWPShDqmAgm7ZHgNpiyTfZegUTu/g6IXRqUEF QHh7cpEeRQLPdY8X/JW0UkALoGYwYtw5KIO3u+5lksUV0hlO7NB0w1myMglA36nOmX+S 19b3EDc3fPpEt5zSYQyVb6l/VORM0sO9w1AkhKuoxCqBm66MOgIU+iJ8w6RK2HDDdq0+ 2GCoJ0oekPr3LtYIlHGBALb4O5nwS7Ja8RfLfbCipwJsqBvR0JlAqJhmZB8qUqtQEH4R axqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774598458; x=1775203258; 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=K4moBxHVs6SiILsKE/Pxveo5RaXduWTr95oeVQa3H18=; b=hhzPnIuWcROSpbVFMXI53FkIAfYCbuePuZ/YWICuPEhgbehxqV/8Xku+VapacoAyL0 RwtIyWvMpZLwzbn2RyBe29soTMf5eYo5GCAdYKxBVzaHxN4Ti3ZBCpq3bvTjmPibxmGR uFXIKsQfT/9/VM6kLICY3B82IY7OfpwS6rHjmugz8InD2s4U1kO+dx7X38y+UswVWXjD cQamBBCh4DqNrCBl63MRmkkuNrrmSWwDxf7B+56x58LhFeMwyG76oxAVoPQh8XiV4oN2 trNVXPi65o5Xed6Nev0HVLLDZyldSKsux9FJF0Ks22u7UuqA5j6XCbkHCbnj1NZ9CSmr 640g== X-Forwarded-Encrypted: i=1; AJvYcCXg73L2wYbI0YeiEGZ4HNllPTyv2nr4VEiSpNU0kNTOQeERPKXHIs8SlGvJImrI2Q655vn+6UV10BCBF4Y=@vger.kernel.org X-Gm-Message-State: AOJu0YwngvQ8htZB3vl7mCOxpHpPIOzrgugTAn4zG1IHXVc9oGcsgOJM rfE9xzuRInOszrpDOT3ydHoeX/NWHhEDNfWKIVYorh2Nuf9ceYTHw+32DASy0PDGTHI= X-Gm-Gg: ATEYQzz0UMh88YwVXudh61s4RkBTkvgZEe43WroEC+ysjDIO8dMf0GfSxN3BUTefkKH EkwJ7y6Utnmdc/gNj8SCeezRaahYn2Bka7DjqpJmWzrJOZ2yp4Ry8ZVF7QX5T0UYd4pq60/yKz0 c/bUca+fUt4564YO95BeylNFVCM7Dx4HQYzbaUr2zlBGjlPeRFzeY2ciM/ol7/sbAbOxMSTnAL0 WAVp03GC2UdiVjtM9E7YnqmAI33zAOhtr0oTQatKdFBQc7A6P9IN5JCw1PEFrhA6+IiavljK7sd /iB+n0axi+LYgsgCaum5BV9qoOFASmmz26AWMQCzCTseWNzeRJxIJViLd4/EtFkb/zdA8YjRpCA AYqz5bUBRapugYcx3PYXCRLz6IodvlKZGGQLHQxuhdGevVRDRi2zWjJWivqli5XjRN+1OwHhRkE e6nUu5/58Xj5orGfhnJYSSeI2XvbU6++vaQCmTNjCe X-Received: by 2002:a05:600c:19cf:b0:487:1108:48bc with SMTP id 5b1f17b1804b1-48727ec7695mr24399785e9.17.1774598458048; Fri, 27 Mar 2026 01:00:58 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2026 01:00:57 -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 3/4] module, m68k: force sh_addr=0 for arch-specific sections Date: Fri, 27 Mar 2026 08:59:02 +0100 Message-ID: <20260327080023.861105-4-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 m68k-specific module sections. Link: https://sourceware.org/bugzilla/show_bug.cgi?id=3D33958 [1] Signed-off-by: Petr Pavlu --- arch/m68k/include/asm/module.lds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/include/asm/module.lds.h b/arch/m68k/include/asm/mod= ule.lds.h index fda94fa38243..fcd08689b282 100644 --- a/arch/m68k/include/asm/module.lds.h +++ b/arch/m68k/include/asm/module.lds.h @@ -1,5 +1,5 @@ SECTIONS { - .m68k_fixup : { + .m68k_fixup 0 : { __start_fixup =3D .; *(.m68k_fixup) __stop_fixup =3D .; --=20 2.53.0