Lines Matching defs:elf
70 print_symtab(Elf *elf, const char *file)
78 if (gelf_getehdr(elf, &ehdr) == NULL) {
84 if (elf_getshdrstrndx(elf, &shstrndx) == -1) {
90 while ((scn = elf_nextscn(elf, scn)) != NULL) {
120 elf_strptr(elf, shstrndx, shdr.sh_name));
167 elf_nextscn(elf, _scn)) != NULL) {
269 elf_strptr(elf, shdr.sh_link, sym.st_name));
276 process_elf(Elf *elf, char *file, int fd, int member)
281 switch (elf_kind(elf)) {
287 print_symtab(elf, file);
298 while ((_elf = elf_begin(fd, cmd, elf)) != NULL) {
323 file, elf_kind(elf));
339 * Initialize the elf library, must be called before elf_begin()
350 Elf *elf;
363 if ((elf = elf_begin(fd, ELF_C_READ, 0)) == NULL) {
371 * Process each elf descriptor.
373 process_elf(elf, elf_fname, fd, 0);
374 (void) elf_end(elf);