Lines Matching refs:elf
35 elf_rawfile(Elf *elf, size_t *ptr) in elf_rawfile() argument
40 if (elf == 0) { in elf_rawfile()
46 ELFWLOCK(elf) in elf_rawfile()
47 if ((sz = elf->ed_fsz) == 0) { in elf_rawfile()
50 ELFUNLOCK(elf) in elf_rawfile()
54 if (elf->ed_raw != 0) in elf_rawfile()
55 p = elf->ed_raw; in elf_rawfile()
56 else if (elf->ed_status == ES_COOKED) { in elf_rawfile()
57 if ((p = _elf_read(elf->ed_fd, elf->ed_baseoff, sz)) != 0) { in elf_rawfile()
58 elf->ed_raw = p; in elf_rawfile()
59 elf->ed_myflags |= EDF_RAWALLOC; in elf_rawfile()
63 p = elf->ed_raw = elf->ed_ident; in elf_rawfile()
64 elf->ed_status = ES_FROZEN; in elf_rawfile()
65 if (_elf_vm(elf, (size_t)0, elf->ed_fsz) != OK_YES) { in elf_rawfile()
72 ELFUNLOCK(elf) in elf_rawfile()