[PATCH openEuler-22.09 v2 343/391] libbpf: Fix section counting logic