From: Heiko Carstens <hca@linux.ibm.com>
To: Nathan Chancellor <nathan@kernel.org>
Cc: gor@linux.ibm.com, agordeev@linux.ibm.com,
borntraeger@linux.ibm.com, svens@linux.ibm.com, morbo@google.com,
justinstitt@google.com, linux-s390@vger.kernel.org,
llvm@lists.linux.dev, patches@lists.linux.dev
Subject: Re: [PATCH] s390/boot: Workaround current 'llvm-objdump -t -j ...' behavior
Date: Wed, 21 Feb 2024 10:16:12 +0100 [thread overview]
Message-ID: <20240221091612.7561-A-hca@linux.ibm.com> (raw)
In-Reply-To: <20240220-s390-work-around-llvm-objdump-t-j-v1-1-47bb0366a831@kernel.org>
Hi Nathan,
On Tue, Feb 20, 2024 at 01:44:48PM -0700, Nathan Chancellor wrote:
> When building with OBJDUMP=llvm-objdump, there are a series of warnings
> from the section comparisons that arch/s390/boot/Makefile performs
> between vmlinux and arch/s390/boot/vmlinux:
...
> It may be possible to change llvm-objdump's behavior to match GNU
> objdump's behavior but the difficulty of that task has not yet been
> explored. The combination of '$(OBJDUMP) -t -j' is not common in the
> kernel tree on a whole, so workaround this tool difference by grepping
> for the sections in the full symbol table output in a similar manner to
> the sed invocation. This results in no visible change for GNU objdump
> users while fixing the warnings for OBJDUMP=llvm-objdump, further
> enabling use of LLVM=1 for ARCH=s390 with versions of LLVM that have
> support for s390 in ld.lld and llvm-objcopy.
>
> Reported-by: Heiko Carstens <hca@linux.ibm.com>
> Closes: https://lore.kernel.org/20240219113248.16287-C-hca@linux.ibm.com/
> Link: https://github.com/ClangBuiltLinux/linux/issues/859
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
> ---
> s390 llvm-objcopy support may be backported to LLVM 18.1.0 in time for
> the final release.
>
> https://github.com/llvm/llvm-project/pull/82324
>
> s390 ld.lld has already made it into release/18.x:
>
> https://github.com/llvm/llvm-project/commit/0a44c3792a6ff799df5f100670d7e19d1bc49f03
>
> If the objcopy change makes 18.1.0 final, features + this change should
> build cleanly with LLVM 18.1.0+ using LLVM=1 :)
> ---
> arch/s390/boot/Makefile | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
This seems to work like expected (also verified with a couple of scenarios
where things are supposed to break).
So compiling the kernel with LLVM=1 finally works on s390!
Patch applied - Thanks a lot!
next prev parent reply other threads:[~2024-02-21 9:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-20 20:44 [PATCH] s390/boot: Workaround current 'llvm-objdump -t -j ...' behavior Nathan Chancellor
2024-02-21 9:16 ` Heiko Carstens [this message]
2024-02-21 16:48 ` 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=20240221091612.7561-A-hca@linux.ibm.com \
--to=hca@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=justinstitt@google.com \
--cc=linux-s390@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=morbo@google.com \
--cc=nathan@kernel.org \
--cc=patches@lists.linux.dev \
--cc=svens@linux.ibm.com \
/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;
as well as URLs for NNTP newsgroup(s).