Commit 6d6dbac
libbpf: Fix parsing of multi-split BTF
When creating multi-split BTF we correctly set the start string offset
to be the size of the base string section plus the base BTF start
string offset; the latter is needed for multi-split BTF since the
offset is non-zero there.
Unfortunately the BTF parsing case needed that logic and it was
missed.
Fixes: 4e29128 ("libbpf/btf: Fix string handling to support multi-split BTF")
Signed-off-by: Alan Maguire <[email protected]>1 parent 9a71dd4 commit 6d6dbac
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1061 | 1061 | | |
1062 | 1062 | | |
1063 | 1063 | | |
1064 | | - | |
| 1064 | + | |
1065 | 1065 | | |
1066 | 1066 | | |
1067 | 1067 | | |
| |||
5818 | 5818 | | |
5819 | 5819 | | |
5820 | 5820 | | |
5821 | | - | |
| 5821 | + | |
5822 | 5822 | | |
5823 | 5823 | | |
5824 | 5824 | | |
| |||
0 commit comments