We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eed7818 commit 4c01925Copy full SHA for 4c01925
tools/lib/bpf/libbpf.c
@@ -2434,6 +2434,8 @@ static int bpf_object__init_btf(struct bpf_object *obj,
2434
BTF_ELF_SEC, err);
2435
goto out;
2436
}
2437
+ /* enforce 8-byte pointers for BPF-targeted BTFs */
2438
+ btf__set_pointer_size(obj->btf, 8);
2439
err = 0;
2440
2441
if (btf_ext_data) {
@@ -2542,6 +2544,8 @@ static int bpf_object__sanitize_and_load_btf(struct bpf_object *obj)
2542
2544
if (IS_ERR(kern_btf))
2543
2545
return PTR_ERR(kern_btf);
2546
2547
2548
2549
bpf_object__sanitize_btf(obj, kern_btf);
2550
2551
0 commit comments