Re: [PATCH v1 1/3] objtool/LoongArch: Fix fall through warning about efi_boot_kernel()

From: Tiezhu Yang
Date: Wed Sep 03 2025 - 22:18:57 EST


On 2025/9/4 上午3:17, Josh Poimboeuf wrote:
On Mon, Sep 01, 2025 at 04:31:36PM +0800, Tiezhu Yang wrote:
On 2025/9/1 下午4:16, Peter Zijlstra wrote:
On Mon, Sep 01, 2025 at 03:21:54PM +0800, Tiezhu Yang wrote:
When compiling with LLVM and CONFIG_LTO_CLANG is set, there exists
the following objtool warning:

...

Josh suggested to do something so that the EFI stub code isn't linked into
vmlinux.o [2], it needs to modify the link process and seems too
complicated and expensive for this warning to some extent.

So I did this change for objtool.

I don't like adding these workarounds to objtool. Is it really that
complicated to link efistub separately? That seems like the proper
design. vmlinux.o should only have real kernel code.

OK, I see. If this is the only proper direction, I will do it
in the next version.

Thanks,
Tiezhu