Lines Matching refs:elf
42 gelf_getphdr (Elf *elf, int ndx, GElf_Phdr *dst) in gelf_getphdr() argument
46 if (elf == NULL) in gelf_getphdr()
49 if (unlikely (elf->kind != ELF_K_ELF)) in gelf_getphdr()
61 rwlock_rdlock (elf->lock); in gelf_getphdr()
63 if (elf->class == ELFCLASS32) in gelf_getphdr()
66 Elf32_Phdr *phdr = elf->state.elf32.phdr; in gelf_getphdr()
70 rwlock_unlock (elf->lock); in gelf_getphdr()
71 phdr = INTUSE(elf32_getphdr) (elf); in gelf_getphdr()
75 rwlock_rdlock (elf->lock); in gelf_getphdr()
80 if (__elf_getphdrnum_chk_rdlock (elf, &phnum) != 0 in gelf_getphdr()
106 Elf64_Phdr *phdr = elf->state.elf64.phdr; in gelf_getphdr()
110 rwlock_unlock (elf->lock); in gelf_getphdr()
111 phdr = INTUSE(elf64_getphdr) (elf); in gelf_getphdr()
115 rwlock_rdlock (elf->lock); in gelf_getphdr()
120 if (__elf_getphdrnum_chk_rdlock (elf, &phnum) != 0 in gelf_getphdr()
132 rwlock_unlock (elf->lock); in gelf_getphdr()