[PATCH openEuler-22.09 v3 172/391] libbpf: Factor out symtab and relos sanity checks