Lines Matching refs:oeh
284 GElf_Ehdr oeh;
306 if (gelf_getehdr(ecp->eout, &oeh) == NULL)
310 memcpy(oeh.e_ident, ieh.e_ident, sizeof(ieh.e_ident));
311 oeh.e_ident[EI_CLASS] = ecp->oec;
312 oeh.e_ident[EI_DATA] = ecp->oed;
314 oeh.e_ident[EI_OSABI] = ecp->abi;
315 oeh.e_flags = ieh.e_flags;
316 oeh.e_machine = ieh.e_machine;
317 oeh.e_type = ieh.e_type;
318 oeh.e_entry = ieh.e_entry;
319 oeh.e_version = ieh.e_version;
378 if (gelf_update_ehdr(ecp->eout, &oeh) == 0)
398 /* Renew oeh to get the updated e_shstrndx. */
399 if (gelf_getehdr(ecp->eout, &oeh) == NULL)
416 if (oeh.e_ident[EI_OSABI] == ELFOSABI_FREEBSD)
429 oeh.e_shoff = shtab->off;
433 oeh.e_phoff = gelf_fsize(ecp->eout, ELF_T_EHDR, 1, EV_CURRENT);
434 if (oeh.e_phoff == 0)
443 oeh.e_entry += ecp->change_addr;
445 oeh.e_entry = ecp->set_start;
447 oeh.e_entry += ecp->change_start;
453 if (gelf_update_ehdr(ecp->eout, &oeh) == 0)