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