Lines Matching defs:elf
38 elf_getscn(Elf * elf, size_t index)
45 if (elf == 0)
48 ELFRLOCK(elf)
49 tabsz = elf->ed_scntabsz;
50 if (elf->ed_hdscn == 0) {
51 ELFUNLOCK(elf)
52 ELFWLOCK(elf)
53 if ((elf->ed_hdscn == 0) && (_elf_cook(elf) != OK_YES)) {
54 ELFUNLOCK(elf);
57 ELFUNLOCK(elf);
58 ELFRLOCK(elf)
66 s = &elf->ed_hdscn[index];
67 ELFUNLOCK(elf);
73 s = &elf->ed_hdscn[tabsz - 1];
75 s = elf->ed_hdscn;
85 ELFUNLOCK(elf);
90 ELFUNLOCK(elf)
100 ELFUNLOCK(elf);