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