[PATCH openEuler-22.09 v2 174/391] libbpf: Extend sanity checking ELF symbols with externs validation