[PATCH openEuler-22.09 177/379] libbpf: Factor out symtab and relos sanity checks