[PATCH 5.15 166/565] libbpf: fix sym_is_subprog() logic for weak global subprogs