Lines Matching defs:elf
48 #include <sys/elf.h>
114 Elf *elf;
120 elf = elf_begin(fd, ELF_C_READ, NULL);
121 if (gelf_getehdr(elf, &ehdr) == (GElf_Ehdr *)NULL) {
123 (void) elf_end(elf);
127 while ((scn = elf_nextscn(elf, scn)) != 0) {
140 if ((scn_name = elf_strptr(elf, ehdr.e_shstrndx,
502 Elf *elf;
514 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) {
519 switch (elf_kind(elf)) {
528 (void) elf_end(elf);
532 if (gelf_getehdr(elf, &ehdr) == (GElf_Ehdr *)NULL) {
534 (void) elf_end(elf);
539 (void) elf_end(elf);
543 (void) elf_end(elf);