Commit 6709a91
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 <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Lorenz Bauer <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]1 parent 7a2fa70 commit 6709a91
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5115 | 5115 | | |
5116 | 5116 | | |
5117 | 5117 | | |
| 5118 | + | |
5118 | 5119 | | |
5119 | 5120 | | |
5120 | 5121 | | |
| |||
5141 | 5142 | | |
5142 | 5143 | | |
5143 | 5144 | | |
| 5145 | + | |
5144 | 5146 | | |
5145 | 5147 | | |
5146 | 5148 | | |
| |||
6245 | 6247 | | |
6246 | 6248 | | |
6247 | 6249 | | |
6248 | | - | |
6249 | | - | |
| 6250 | + | |
| 6251 | + | |
6250 | 6252 | | |
6251 | 6253 | | |
6252 | 6254 | | |
| |||
0 commit comments