Linux kbuild/kconfig development
 help / color / mirror / Atom feed
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Imre Kaloz <kaloz@kernel.org>
Cc: linux-mips@vger.kernel.org, Nathan Chancellor <nathan@kernel.org>,
	Nicolas Schier <nsc@kernel.org>,
	Nicolas Schier <n.schier@fritz.com>,
	"Lorenzo Stoakes (ARM)" <ljs@kernel.org>,
	Kees Cook <kees@kernel.org>,
	linux-kbuild@vger.kernel.org
Subject: Re: [PATCH] MIPS: vmlinux.lds.S: Keep .sbss in every vmlinux link
Date: Sat, 5 Dec 2026 14:40:50 +0100	[thread overview]
Message-ID: <axQUYnYcyxOQHSrt@alpha.franken.de> (raw)
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 ]

      reply	other threads:[~2026-12-05 13:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 15:10 [PATCH] MIPS: vmlinux.lds.S: Keep .sbss in every vmlinux link Imre Kaloz
2026-12-05 13:40 ` Thomas Bogendoerfer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=axQUYnYcyxOQHSrt@alpha.franken.de \
    --to=tsbogend@alpha.franken.de \
    --cc=kaloz@kernel.org \
    --cc=kees@kernel.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=ljs@kernel.org \
    --cc=n.schier@fritz.com \
    --cc=nathan@kernel.org \
    --cc=nsc@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox