Lines Matching defs:sec
182 Elf_Scn *sec = NULL;
186 while ((sec = elf_nextscn(elf, sec)) != NULL) {
187 gelf_getshdr(sec, &shdr);
202 Elf_Scn *sec = NULL;
209 while ((sec = elf_nextscn(elf, sec)) != NULL) {
212 gelf_getshdr(sec, shp);
217 return sec;
225 bool filename__has_section(const char *filename, const char *sec)
244 found = !!elf_section_by_name(elf, &ehdr, &shdr, sec, NULL);
717 /* Only x86 has .plt.sec */
719 elf_section_by_name(elf, &ehdr, &plt_sec_shdr, ".plt.sec", NULL)) {
724 /* Use .plt.sec offset */
862 Elf_Scn *sec;
885 sec = elf_section_by_name(elf, &ehdr, &shdr,
887 if (sec)
890 sec = elf_section_by_name(elf, &ehdr, &shdr,
892 if (sec)
895 sec = elf_section_by_name(elf, &ehdr, &shdr,
897 if (sec)
904 data = elf_getdata(sec, NULL);
1127 Elf_Scn *sec;
1149 sec = elf_section_by_name(elf, &ehdr, &shdr,
1151 if (sec == NULL)
1154 data = elf_getdata(sec, NULL);
1498 Elf_Scn *sec, *sec_strndx;
1509 sec = syms_ss->dynsym;
1512 sec = syms_ss->symtab;
1523 syms = elf_getdata(sec, NULL);
1527 sec = elf_getscn(elf, shdr.sh_link);
1528 if (sec == NULL)
1531 symstrs = elf_getdata(sec, NULL);
1628 sec = elf_getscn(syms_ss->elf, sym.st_shndx);
1629 if (!sec)
1632 gelf_getshdr(sec, &shdr);
1654 sec = elf_getscn(runtime_ss->elf, sym.st_shndx);
1655 if (!sec)
1658 gelf_getshdr(sec, &shdr);