Lines Matching refs:scn
580 Elf_Scn *scn; in bpf_object__init_maps() local
589 scn = elf_getscn(obj->efile.elf, obj->efile.maps_shndx); in bpf_object__init_maps()
590 if (scn) in bpf_object__init_maps()
591 data = elf_getdata(scn, NULL); in bpf_object__init_maps()
592 if (!scn || !data) { in bpf_object__init_maps()
715 Elf_Scn *scn; in section_have_execinstr() local
718 scn = elf_getscn(obj->efile.elf, idx); in section_have_execinstr()
719 if (!scn) in section_have_execinstr()
722 if (gelf_getshdr(scn, &sh) != &sh) in section_have_execinstr()
735 Elf_Scn *scn = NULL; in bpf_object__elf_collect() local
745 while ((scn = elf_nextscn(elf, scn)) != NULL) { in bpf_object__elf_collect()
751 if (gelf_getshdr(scn, &sh) != &sh) { in bpf_object__elf_collect()
766 data = elf_getdata(scn, 0); in bpf_object__elf_collect()