Commit c81eec7
libbpf: support BTF_KIND_FLOAT during type compatibility checks in CO-RE
Add BTF_KIND_FLOAT support when doing CO-RE field type compatibility check.
Without this, relocations against float/double fields will fail.
Also adjust one error message to emit instruction index instead of less
convenient instruction byte offset.
Fixes: 22541a9 ("libbpf: Add BTF_KIND_FLOAT support")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>1 parent 578b453 commit c81eec7
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5141 | 5141 | | |
5142 | 5142 | | |
5143 | 5143 | | |
| 5144 | + | |
5144 | 5145 | | |
5145 | 5146 | | |
5146 | 5147 | | |
| |||
6245 | 6246 | | |
6246 | 6247 | | |
6247 | 6248 | | |
6248 | | - | |
6249 | | - | |
| 6249 | + | |
| 6250 | + | |
6250 | 6251 | | |
6251 | 6252 | | |
6252 | 6253 | | |
| |||
0 commit comments