Lines Matching refs:elf
50 built_source_types(Elf *elf, char const *file) in built_source_types() argument
55 if ((si = symit_new(elf, file)) == NULL) in built_source_types()
87 read_file(Elf *elf, char *file, char *label, read_cb_f *func, void *arg, in read_file() argument
96 if ((ctfscnidx = findelfsecidx(elf, file, ".SUNW_ctf")) < 0) { in read_file()
98 (built_source_types(elf, file) & SOURCE_C)) { in read_file()
105 if ((ctfscn = elf_getscn(elf, ctfscnidx)) == NULL || in read_file()
110 if ((si = symit_new(elf, file)) == NULL) { in read_file()
130 read_archive(int fd, Elf *elf, char *file, char *label, read_cb_f *func, in read_archive() argument
138 while ((melf = elf_begin(fd, cmd, elf)) != NULL) { in read_archive()
188 Elf *elf; in read_ctf_common() local
198 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) in read_ctf_common()
201 switch (elf_kind(elf)) { in read_ctf_common()
203 found = read_archive(fd, elf, file, label, in read_ctf_common()
208 found = read_file(elf, file, label, in read_ctf_common()
213 terminate("%s: Unknown elf kind %d\n", file, elf_kind(elf)); in read_ctf_common()
216 (void) elf_end(elf); in read_ctf_common()
251 count_archive(int fd, Elf *elf, char *file) in count_archive() argument
258 while ((melf = elf_begin(fd, cmd, elf)) != NULL) { in count_archive()
282 Elf *elf; in count_files() local
296 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { in count_files()
304 switch (elf_kind(elf)) { in count_files()
306 if ((rc = count_archive(fd, elf, file)) < 0) in count_files()
319 (void) elf_end(elf); in count_files()
343 symit_new(Elf *elf, const char *file) in symit_new() argument
349 if ((symtabidx = findelfsecidx(elf, file, ".symtab")) < 0) in symit_new()
354 if ((scn = elf_getscn(elf, symtabidx)) == NULL || in symit_new()
359 if ((scn = elf_getscn(elf, si->si_shdr.sh_link)) == NULL || in symit_new()