From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f202.google.com (mail-dy1-f202.google.com [74.125.82.202]) (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 045C93CFF5E for ; Tue, 26 May 2026 23:40:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779838844; cv=none; b=Znvyl6u86ZFiyMVDiZn9EHWYoWUlaWjQeXoXZ4ezcUfMvRDA28QgxCdKF6FFogir4ZJrLNThZIFSXl3lMlp9Nv2hTagGKHb2qraxhgyNU7f7+k5OUqCm/2igZl10Ji+hb7UrNGsn0FAyy5Z8bM3gQiIVdz+UvWjJvw+n2WBexV8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779838844; c=relaxed/simple; bh=8ddzaQpPIU1lk7nO3NywObbzd/d9fgjAwKKOFsq7vE0=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=nWU7Yssbyarwz9HleHL1T9l56okSefI7bCnJvd1yjx8lf/0pOHdAT+NmDqhGDPYIDDaN+wZLkfsxYOgGZaYeZ2beFDeev/Aqn6qH2emT9u1SOknzvXEBkxfQ8NDCkjNCCZHbyB5NQNrYDuI/6Sj5z88qNd1FzShowF1qLSF2fUM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--samitolvanen.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=hZ8Oc71G; arc=none smtp.client-ip=74.125.82.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--samitolvanen.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="hZ8Oc71G" Received: by mail-dy1-f202.google.com with SMTP id 5a478bee46e88-2ee1da7a13fso12736145eec.1 for ; Tue, 26 May 2026 16:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1779838839; x=1780443639; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=K1GQjZOhKRA0cpDt8l/K+2WDzgefBcTkUmqo1xyKi8I=; b=hZ8Oc71G7fU5tiMyiNFCQ95v17M1VdYcqfpGglul06uqFuVukWIpzgHm5zyEuVlTW4 3BR89v8i9HlKSC3TawFi9WplT70trGBII3biy3LllXpD4WYHRxX3BS/Yd+GNOW451trj KKJYFn1czHWNK1RhCGNSGuPABhTPuz3o339LDG6huzknhOrDkDcvOtwqzRpAD+ygWKyE 11KwzllGJ8XcKNXKTWLvEKYSrt+oTAFAsIid6zcN8M69sZ6PK7401tfmXIObuYcN5C7T va3NdCkvh7IQuNZrH9VjoWFbSXnYFZ/+ooWiyDlYrZ3eb22foYSvPK0bJ2ZbXas0BM2j tWZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779838839; x=1780443639; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=K1GQjZOhKRA0cpDt8l/K+2WDzgefBcTkUmqo1xyKi8I=; b=k2u5RCZQ74f/FFdxM4Oq/Nj1hnOWFaOyjxbQ5f2Xh0U6j+SluRytdifzGIj2qMlANG bH2Wq8WcRAPQV+60/Dh0lzeRznzyVCTI2oYdQEoswPI/sAJ4wNNphdV5igPDOLYpqE7S GzNShnjOFWVEVqZSwBXYUN8tQo1c0+SubuCtMW2ELaiOT6OrDI5GpbW74/CsXTo+fFt1 eZd7LqcHDry29WqqhnfqXTHJlqpguAfXvUwyLDEdzjUl84/eOlUekhWiU028Os07A0gY F8nfqX+H0EUqCaBi0tS2jZ+YPHdkMp+fTtKTtVmOZI2/8o8evl5yN9EOQI3EE+sGsNL5 b7/Q== X-Forwarded-Encrypted: i=1; AFNElJ/fIZnx+WE8EIORBgzPDxsKSnXiMVqyrFAfSSMdSv3vEBOZs69gHrkltgX2ZBJsowcKS54Zqt04ixjEqkI=@vger.kernel.org X-Gm-Message-State: AOJu0YxzhaL1Cz7+cGA8PLwuNVLhJp2NLe4txpwca6ykE7jPFxhMbV5i TL1IOwGTrCN42tx/T0wkPOOWZjfjUR1EKAJPMFTGcNQhvAQlLSeadoeNf21bsaXkJF4lHjehDxu NmRrviSbrGt6Oxn53Ct5rES+d9nabRA== X-Received: from dycrm18.prod.google.com ([2002:a05:693c:2a12:b0:2f9:af7:5053]) (user=samitolvanen job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7301:a84:b0:303:f2fc:c483 with SMTP id 5a478bee46e88-30448f30872mr9330662eec.1.1779838838965; Tue, 26 May 2026 16:40:38 -0700 (PDT) Date: Tue, 26 May 2026 23:40:38 +0000 In-Reply-To: <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 References: <20260327080023.861105-1-petr.pavlu@suse.com> X-Mailer: b4 0.14.3 Message-ID: <177983883822.35274.16490796584446355825.b4-ty@google.com> Subject: Re: [PATCH 0/4] module: force sh_addr=0 for arch-specific sections From: Sami Tolvanen To: Russell King , Catalin Marinas , Will Deacon , Geert Uytterhoeven , Paul Walmsley , Palmer Dabbelt , Albert Ou , Petr Pavlu Cc: Alexandre Ghiti , Luis Chamberlain , 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 Content-Type: text/plain; charset="utf-8" On Fri, 27 Mar 2026 08:58:59 +0100, Petr Pavlu wrote: > 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=0 for > all sections. Non-zero addresses are confusing in this context, typically > worse compressible, and may cause tools to misbehave [1]. > > Joe Lawrence previously addressed the same issue in the main > scripts/module.lds.S file [2] and we discussed that the same fix should be > also applied to architecture-specific module sections. This series > implements these changes. > > [...] Applied to modules-next, thanks! [1/4] module, arm: force sh_addr=0 for arch-specific sections commit: ffe1545ce8a0a7bb698d5f68cbbdef8f93d1fce6 [2/4] module, arm64: force sh_addr=0 for arch-specific sections commit: c5553deb577fe433f770e270fd9582b8325f12d9 [3/4] module, m68k: force sh_addr=0 for arch-specific sections commit: 9cb4d4dc82272538de1b7edb6e8cf91597ed00b0 [4/4] module, riscv: force sh_addr=0 for arch-specific sections commit: 04e17ca3f77e1722a5db068fbcd7b93c51656013 Best regards, Sami