[PATCH openEuler-22.09 v3 273/391] libbpf: Ensure BPF prog types are set before relocations