Lines Matching defs:elf
40 Elf *elf;
53 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) {
58 if (gelf_getehdr(elf, &ehdr) == NULL) {
64 (void) elf_end(elf);
159 is_function(Elf *elf, GElf_Sym *sym)
201 scn = elf_getscn(elf, sym->st_shndx);
211 fetch_symtab(Elf *elf, char *filename, mod_info_t *module)
230 while ((symtab_found == 0) && ((scn = elf_nextscn(elf, scn)) != NULL)) {
319 name = elf_strptr(elf, strndx, gsym.st_name);
324 if (is_function(elf, &gsym)) {
357 get_txtorigin(Elf *elf, char *filename)
365 if (gelf_getehdr(elf, &ehdr) == NULL) {
372 if (gelf_getphdr(elf, ndx, &phdr) == NULL)
391 Elf *elf;
403 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) {
408 if (gelf_getclass(elf) != ELFCLASS64) {
414 mi->txt_origin = get_txtorigin(elf, filename);
416 fetch_symtab(elf, filename, mi);