[PATCH openEuler-22.09 272/379] libbpf: Ensure BPF prog types are set before relocations