Lines Matching refs:elf
63 __elf_getshnum_rdlock (elf, dst) in __elf_getshnum_rdlock() argument
64 Elf *elf; in __elf_getshnum_rdlock()
70 if (elf == NULL)
73 if (unlikely (elf->kind != ELF_K_ELF))
79 idx = elf->state.elf.scns_last->cnt;
81 || (elf->state.elf.scns_last
82 != (elf->class == ELFCLASS32
85 ? &elf->state.elf32.scns : &elf->state.elf64.scns)))
87 *dst = 1 + elf->state.elf.scns_last->data[idx - 1].index;
95 elf_getshnum (elf, dst) in elf_getshnum() argument
96 Elf *elf; in elf_getshnum()
101 if (elf == NULL)
104 rwlock_rdlock (elf->lock);
105 result = __elf_getshnum_rdlock (elf, dst);
106 rwlock_unlock (elf->lock);