Lines Matching refs:elf
37 elf_rawfile(Elf *elf, size_t *ptr) in elf_rawfile() argument
42 if (elf == 0) { in elf_rawfile()
48 ELFWLOCK(elf) in elf_rawfile()
49 if ((sz = elf->ed_fsz) == 0) { in elf_rawfile()
52 ELFUNLOCK(elf) in elf_rawfile()
56 if (elf->ed_raw != 0) in elf_rawfile()
57 p = elf->ed_raw; in elf_rawfile()
58 else if (elf->ed_status == ES_COOKED) { in elf_rawfile()
59 if ((p = _elf_read(elf->ed_fd, elf->ed_baseoff, sz)) != 0) { in elf_rawfile()
60 elf->ed_raw = p; in elf_rawfile()
61 elf->ed_myflags |= EDF_RAWALLOC; in elf_rawfile()
65 p = elf->ed_raw = elf->ed_ident; in elf_rawfile()
66 elf->ed_status = ES_FROZEN; in elf_rawfile()
67 if (_elf_vm(elf, (size_t)0, elf->ed_fsz) != OK_YES) { in elf_rawfile()
74 ELFUNLOCK(elf) in elf_rawfile()