diff --git a/samples/bpf/bpf_load.c b/samples/bpf/bpf_load.c index 396e204888b34f342bd8f01afc4e0d1a3d52f823..e04fe09d7c2efc397a8ba6435c44d72ecc3c11cc 100644 --- a/samples/bpf/bpf_load.c +++ b/samples/bpf/bpf_load.c @@ -328,6 +328,8 @@ int load_bpf_file(char *path) /* load programs that need map fixup (relocations) */ for (i = 1; i < ehdr.e_shnum; i++) { + if (processed_sec[i]) + continue; if (get_sec(elf, i, &ehdr, &shname, &shdr, &data)) continue;