Lines Matching refs:elf
122 _elf_armem(Elf *elf, char *file, size_t fsz) in _elf_armem() argument
137 for (l = elf->ed_memlist, ol = l; l; ol = l, l = l->m_next) in _elf_armem()
155 if ((elf->ed_memlist == 0) || (ol->m_free == ol->m_end)) { in _elf_armem()
166 if (elf->ed_memlist == 0) in _elf_armem()
167 elf->ed_memlist = l; in _elf_armem()
203 if (j < elf->ed_arstrsz) in _elf_armem()
204 m->m_hdr.ar_name = elf->ed_arstr + j; in _elf_armem()
268 _elf_arinit(Elf * elf) in _elf_arinit() argument
270 char *base = elf->ed_ident; in _elf_arinit()
271 register char *end = base + elf->ed_fsz; in _elf_arinit()
278 elf->ed_status = ES_COOKED; in _elf_arinit()
279 elf->ed_nextoff = SARMAG; in _elf_arinit()
284 (_elf_vm(elf, (size_t)(SARMAG), in _elf_arinit()
298 elf->ed_arsym = mem; in _elf_arinit()
299 elf->ed_arsymsz = sz; in _elf_arinit()
300 elf->ed_arsymoff = (char *)a - base; in _elf_arinit()
305 if (_elf_vm(elf, (size_t)(mem - elf->ed_ident), in _elf_arinit()
308 if (elf->ed_vm == 0) { in _elf_arinit()
315 elf->ed_myflags |= EDF_ASTRALLOC; in _elf_arinit()
319 elf->ed_arstr = mem; in _elf_arinit()
320 elf->ed_arstrsz = sz; in _elf_arinit()
321 elf->ed_arstroff = (char *)a - base; in _elf_arinit()
333 elf->ed_arsym = mem; in _elf_arinit()
334 elf->ed_arsymsz = sz; in _elf_arinit()
335 elf->ed_arsymoff = (char *)a - base; in _elf_arinit()
336 elf->ed_myflags |= EDF_ARSYM64; in _elf_arinit()