Lines Matching refs:scn
61 /* Return next ELF section of sh_type after scn, or first of that type if scn is NULL. */
62 static Elf_Scn *elf_find_next_scn_by_type(Elf *elf, int sh_type, Elf_Scn *scn)
64 while ((scn = elf_nextscn(elf, scn)) != NULL) {
67 if (!gelf_getshdr(scn, &sh))
70 return scn;
100 Elf_Scn *scn = NULL;
111 scn = elf_find_next_scn_by_type(elf, sh_type, NULL);
112 if (!scn) {
118 if (!gelf_getshdr(scn, &sh))
122 iter->syms = elf_getdata(scn, 0);
136 scn = elf_find_next_scn_by_type(elf, SHT_GNU_versym, NULL);
137 if (!scn)
139 iter->versyms = elf_getdata(scn, 0);
141 scn = elf_find_next_scn_by_type(elf, SHT_GNU_verdef, NULL);
142 if (!scn)
145 iter->verdefs = elf_getdata(scn, 0);
146 if (!iter->verdefs || !gelf_getshdr(scn, &sh)) {