Lines Matching defs:eh
301 Ehdr * eh = elf->ed_ehdr; /* must be present */
304 if (eh->e_phnum == 0)
308 if (eh->e_phentsize != fsz) {
313 fsz *= eh->e_phnum;
315 msz = _elf_msize(ELF_T_PHDR, work) * eh->e_phnum;
316 if ((eh->e_phoff == 0) ||
317 (elf->ed_fsz <= eh->e_phoff) ||
318 (elf->ed_fsz - eh->e_phoff < fsz)) {
323 if (inplace && fsz >= msz && eh->e_phoff % sizeof (ElfField) == 0) {
324 elf->ed_phdr = (Elf_Void *)(elf->ed_ident + eh->e_phoff);
333 src.d_buf = (Elf_Void *)(elf->ed_ident + eh->e_phoff);
340 if ((_elf_vm(elf, (size_t)eh->e_phoff, fsz) != OK_YES) ||
362 register Ehdr *eh = elf->ed_ehdr; /* must be present */
364 if ((eh->e_shnum == 0) && (eh->e_shoff == 0))
368 if (eh->e_shentsize != fsz) {
378 if ((scncnt = eh->e_shnum) == 0) {
380 if ((eh->e_shoff == 0) ||
381 (elf->ed_fsz <= eh->e_shoff) ||
382 (elf->ed_fsz - eh->e_shoff < fsz)) {
386 src.d_buf = (Elf_Void *)(elf->ed_ident + eh->e_shoff);
393 if ((_elf_vm(elf, (size_t)eh->e_shoff, fsz) != OK_YES) ||
402 if ((eh->e_shoff == 0) ||
403 (elf->ed_fsz <= eh->e_shoff) ||
404 (elf->ed_fsz - eh->e_shoff < fsz)) {
410 ((eh->e_shoff % sizeof (ElfField)) == 0)) {
412 elf->ed_shdr = (Shdr *)(elf->ed_ident + eh->e_shoff);
421 src.d_buf = (Elf_Void *)(elf->ed_ident + eh->e_shoff);
428 if ((_elf_vm(elf, (size_t)eh->e_shoff, fsz) != OK_YES) ||