From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.175.24.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796478063; b=b35bbuC3Ra3y6ZiXsIIQP2whgNuBnG+d7lS+0v93TIxA/Cy08+KvmrcJdRXUW/9UFsJ8 CrqYXyYkAE3ZPN37au9n5WPSq0db1Z9jWK0IagFOn/qNTK0/piEl8VLK7zm6YuQzaziZx OqVQUZIkMI2V1tQ09+fLwxOocOHwHSaNDDNOwjTeIWqhcZOISfUikf2l5XuTOkxpHlUO0 U26AGIDwDZRg81El39WOanb7VrXKWSxun68yeVFhSLDCwKtUOnlXNoI6M5yJRwrg7uq7R GinrunbFXf0HwYG7wSNBZK1B7jq1rLePTjFQ475Fvh6eUjOAVpJDZFcTiFTuIcuz1GQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796478063; h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=G9qrOPPppwZYF7qzHNSTbYyzfoGa/DBdjqCU1PZjXX0=; b=dNQM3tIj1IPCkoVONa7PaQZWQRgVcc3ZH1vz3FZEsNyPVHIgwGtRtbJ78XXxNsaupXUV BHQVuCeaveX3ofGMxtscv+8FYbRizBwlqzQEG1cO33ZHx0Qp5dZqmA7OTDDkRNuDK4DBo 8OGFQnajwRH5uV2XOQlHDF66ELVKhavMVDNAXg69Un9nuPg6IXV8GB2+W3vMYR5XkoM7Z FfMe7rl7wtvnXeKE/hzKlRXEu0lkx4lXLt/Kf1o0O5m/IU1b9IuAsBM6OaRKQQYw+lJoE 8PDyIV7d8cDC+oBjMMXLgCGG7rqY5v9UxaUQLEYM6vDkfmB4S7EelMPPixhTXIxb/0g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.remote-ip=193.175.24.41 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAF22606A322; Sat, 5 Dec 2026 13:41:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DAF22606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: by elvis.franken.de (Postfix, from userid 10) id E0CFD100451; Sat, 5 Dec 2026 14:41:00 +0100 (CET) Received: by alpha.franken.de (Postfix, from userid 1000) id E9D7EC0193; Sat, 5 Dec 2026 14:40:50 +0100 (CET) Date: Sat, 5 Dec 2026 14:40:50 +0100 From: Thomas Bogendoerfer To: Imre Kaloz Cc: linux-mips@vger.kernel.org, Nathan Chancellor , Nicolas Schier , Nicolas Schier , "Lorenzo Stoakes (ARM)" , Kees Cook , linux-kbuild@vger.kernel.org Subject: Re: [PATCH] MIPS: vmlinux.lds.S: Keep .sbss in every vmlinux link Message-ID: References: <20261130151047.14743-1-kaloz@kernel.org> X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261130151047.14743-1-kaloz@kernel.org> On Mon, Nov 30, 2026 at 04:10:45PM +0100, Imre Kaloz wrote: > Since commit 8050568e0a46 ("kbuild: only emit vmlinux relocations when > required"), MIPS CONFIG_RELOCATABLE builds with zero-sized local > objects, such as a lock_class_key without LOCKDEP, fail with > "Inconsistent kallsyms data". > > gas puts a local common in .sbss when its size is at most -G, so with > -G 0 every zero-sized one lands there. ld drops an empty .sbss and its > symbols, except in the final link that emits relocations. > > Keep .sbss in every link with ". = .", which means open-coding > BSS_SECTION(). A non-relocatable vmlinux gains an empty .sbss. > Fixes: 8050568e0a46 ("kbuild: only emit vmlinux relocations when required") is this a problem in MIPS gas or with the commit ? Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]