diff options
| author | Daniel Borkmann <daniel@iogearbox.net> | 2026-08-07 23:04:17 +0200 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2026-08-07 23:04:17 +0200 |
| commit | e1d9b82db5447c88405b216f9c5c87daedaa2971 (patch) | |
| tree | 3aa8b323f87d49b0293a2ef1e69dcb5434fbb586 /scripts | |
| parent | 2b1f9f69ae25cb46d0a84ff14398596eb2bfce44 (diff) | |
| parent | a13307e97d5c54b65720bb71fa379960ded1e51a (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf 7.2-rc7
Cross-merge BPF and other fixes after downstream PR.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/package/kernel.spec | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec index c732415662ef..46e80970f723 100644 --- a/scripts/package/kernel.spec +++ b/scripts/package/kernel.spec @@ -67,7 +67,18 @@ This package provides debug information for the kernel image and modules from th %undefine _unique_debug_srcs %undefine _debugsource_packages %undefine _debuginfo_subpackages + +# Preserve .BTF and .BTF.base sections in kernel modules during debuginfo +# stripping. find-debuginfo.sh uses eu-strip which removes non-allocated ELF +# sections like .BTF by default. .BTF.base is required for BTF distillation +# support; without it, module BTF validation fails. +%global with_keep_section %(%{__find_debuginfo} --help 2>&1 | grep -c keep-section) +%if %{with_keep_section} +%global _find_debuginfo_opts -r --keep-section .BTF --keep-section .BTF.base +%else %global _find_debuginfo_opts -r +%endif + %global _missing_build_ids_terminate_build 1 %global _no_recompute_build_ids 1 %{debug_package} |
