Lines Matching refs:scn
49 /* Return next ELF section of sh_type after scn, or first of that type if scn is NULL. */
50 static Elf_Scn *elf_find_next_scn_by_type(Elf *elf, int sh_type, Elf_Scn *scn)
52 while ((scn = elf_nextscn(elf, scn)) != NULL) {
55 if (!gelf_getshdr(scn, &sh))
58 return scn;
83 Elf_Scn *scn = NULL;
94 scn = elf_find_next_scn_by_type(elf, sh_type, NULL);
95 if (!scn) {
101 if (!gelf_getshdr(scn, &sh))
105 iter->syms = elf_getdata(scn, 0);