diff options
| author | Alan Maguire <alan.maguire@oracle.com> | 2026-10-12 15:06:39 +0100 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-10-13 13:38:42 +0000 |
| commit | 35369ca4954c65f6423d02fad624997d72beec30 (patch) | |
| tree | ca8c5e44cc76d1d02a6b2cf425ce38bd01c10be2 /scripts | |
| parent | f6b6c87262da0ce58e9f24883cf6f7b2a3f2c338 (diff) | |
selftests/bpf: Fix btf_inline to use .text section as base
Relative addresses in LOCSEC are relative to the associated
ELF section for the LOCSEC "inline<section>"; in the case of
this test, it is ".text". Fix the test to compute the address
via the section base rather than the overall module base address.
Since addresses in BTF inline LOC_PARAMs can be module base-relative,
do not remove the module base calcuation function.
Fixes: 400f0881c912 ("selftests/bpf: Add a test verifying inline information")
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261012140640.2932195-3-alan.maguire@oracle.com
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
