mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
To: Rosen Penev <rosenp@gmail.com>, sparclinux@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>,
	Andreas Larsson	 <andreas@gaisler.com>,
	Christian Brauner <brauner@kernel.org>,
	Nathan Chancellor <nathan@kernel.org>,
	Nick Desaulniers <nick.desaulniers+lkml@gmail.com>,
	Bill Wendling	 <morbo@google.com>,
	Justin Stitt <justinstitt@google.com>,
	open list	 <linux-kernel@vger.kernel.org>,
	"open list:CLANG/LLVM BUILD
	SUPPORT:Keyword:\\b(?i:clang|llvm)\\b"	 <llvm@lists.linux.dev>
Subject: Re: [PATCH] sparc: Avoid unsupported LLD branch relocations
Date: Thu, 14 May 2026 07:03:28 +0200	[thread overview]
Message-ID: <f8a58a8d567149f514f2f5f47af25905f254f72f.camel@physik.fu-berlin.de> (raw)
In-Reply-To: <20260514041908.874355-1-rosenp@gmail.com>

Hi Rosen,

On Wed, 2026-05-13 at 21:19 -0700, Rosen Penev wrote:
> LLD does not support several SPARC branch relocation types, including
> R_SPARC_WDISP16, R_SPARC_WDISP19, and R_SPARC_WDISP22. A sparc64
> allmodconfig LLVM build can therefore fail when trap table code and
> low-level assembly leave branches to global symbols for the linker.
> 
> Use local labels for branches that stay within the same assembled
> object so the assembler can resolve them directly. Convert the
> remaining cross-object branches and tail calls to absolute set/jmpl
> sequences, which LLD handles through the usual HI22/LO10 relocations.
> 
> Disable the unused sparc32 syscall trace entry points when compat
> support is not built, and request sys_llseek for the native syscall
> table so the LLD allmodconfig build remains self-contained.

I would rather fix LLD than making such intrusive changes to the SPARC
code in the kernel. In particular, since this touches the CPU-optimized
memory routines which had been haunted by subtle bugs for years and were
only fixed recently.

Is improving LLD in this case not possible?

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

  reply	other threads:[~2026-05-14  5:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-14  4:19 Rosen Penev
2026-05-14  5:03 ` John Paul Adrian Glaubitz [this message]
2026-05-14  5:34   ` Rosen Penev
2026-05-14  5:40     ` John Paul Adrian Glaubitz
2026-05-14 12:58     ` Nathan Chancellor
2026-05-20 16:20       ` Koakuma
2026-05-20 22:31         ` Nathan Chancellor

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=f8a58a8d567149f514f2f5f47af25905f254f72f.camel@physik.fu-berlin.de \
    --to=glaubitz@physik.fu-berlin.de \
    --cc=andreas@gaisler.com \
    --cc=brauner@kernel.org \
    --cc=davem@davemloft.net \
    --cc=justinstitt@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=morbo@google.com \
    --cc=nathan@kernel.org \
    --cc=nick.desaulniers+lkml@gmail.com \
    --cc=rosenp@gmail.com \
    --cc=sparclinux@vger.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

all inboxes | Powered by JetHome®