Home
last modified time | relevance | path

Searched refs:elfp (Results 1 – 2 of 2) sorted by relevance

/titanic_41/usr/src/cmd/boot/symdef/
H A Dsymdef.c62 Elf *elfp = NULL; in main() local
87 elfp = elf_begin(fd, ELF_C_READ, NULL); in main()
88 if ((elfp == NULL) || (elf_kind(elfp) != ELF_K_ELF) || in main()
89 ((gelf_getehdr(elfp, &ehdr)) == NULL) || in main()
90 (elf_getshstrndx(elfp, &shstrndx) == 0)) in main()
93 while ((scn = elf_nextscn(elfp, scn)) != NULL) { in main()
104 (strcmp(argv[2], elf_strptr(elfp, shdr.sh_link, in main()
112 if (elfp) in main()
113 (void) elf_end(elfp); in main()
/titanic_41/usr/src/cmd/fs.d/cachefs/cachefspack/
H A Delfrd.c112 Elf *elfp; in get_share_obj() local
179 if ((elfp = elf_begin(fd, ELF_C_READ, (Elf *)0)) == NULL) { in get_share_obj()
184 file_type = elf_kind(elfp); in get_share_obj()
193 if ((Ehdr = elf32_getehdr(elfp)) == NULL) { in get_share_obj()
204 while ((scn = elf_nextscn(elfp, scn)) != 0) { in get_share_obj()
226 name = (char *)elf_strptr(elfp, in get_share_obj()
250 name = (char *)elf_strptr(elfp, in get_share_obj()
341 elf_end(elfp); in get_share_obj()