Lines Matching defs:elf
316 static int get_sec(Elf *elf, int i, GElf_Ehdr *ehdr, char **shname,
321 scn = elf_getscn(elf, i);
328 *shname = elf_strptr(elf, ehdr->e_shstrndx, shdr->sh_name);
400 Elf *elf, Elf_Data *symbols, int strtabidx)
415 /* Get data for maps section via elf index */
416 scn = elf_getscn(elf, maps_shndx);
475 map_name = elf_strptr(elf, strtabidx, sym[i].st_name);
511 Elf *elf;
530 elf = elf_begin(fd, ELF_C_READ, NULL);
532 if (!elf)
535 if (gelf_getehdr(elf, &ehdr) != &ehdr)
541 /* scan over all elf sections to get license and map info */
544 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data))
585 elf, symbols, strtabidx);
603 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data))
610 if (get_sec(elf, shdr.sh_info, &ehdr, &shname_prog,
633 if (get_sec(elf, i, &ehdr, &shname, &shdr, &data))