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