Re: [PATCH bpf-next] scripts/gen-btf.sh: Fix .btf.o generation when compiling for RISCV
From: patchwork-bot+netdevbpf
Date: Tue Dec 30 2025 - 13:43:24 EST
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Mon, 29 Dec 2025 12:28:23 -0800 you wrote:
> gen-btf.sh emits a .btf.o file with BTF sections to be linked into
> vmlinux in link-vmlinux.sh
>
> This .btf.o file is created by compiling an emptystring with ${CC},
> and then adding BTF sections into it with ${OBJCOPY}.
>
> To ensure the .btf.o is linkable when cross-compiling with LLVM, we
> have to also pass ${KBUILD_FLAGS}, which in particular control the
> target word size.
>
> [...]
Here is the summary with links:
- [bpf-next] scripts/gen-btf.sh: Fix .btf.o generation when compiling for RISCV
https://git.kernel.org/bpf/bpf-next/c/600605853f87
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html