Searched refs:newehdr (Results 1 – 4 of 4) sorted by relevance
400 GElf_Ehdr newehdr; in main() local401 if (gelf_getehdr (elfnew, &newehdr) == NULL) in main()404 newehdr.e_ident[EI_DATA] = ehdr.e_ident[EI_DATA]; in main()405 newehdr.e_type = ehdr.e_type; in main()406 newehdr.e_machine = ehdr.e_machine; in main()407 newehdr.e_version = ehdr.e_version; in main()408 newehdr.e_entry = ehdr.e_entry; in main()409 newehdr.e_flags = ehdr.e_flags; in main()415 newehdr.e_shstrndx = newstrtabndx; in main()426 newehdr.e_shstrndx = SHN_XINDEX; in main()[all …]
579 GElf_Ehdr newehdr; in process_file() local580 if (gelf_getehdr (elfnew, &newehdr) == NULL) in process_file()586 newehdr.e_ident[EI_DATA] = ehdr.e_ident[EI_DATA]; in process_file()587 newehdr.e_type = ehdr.e_type; in process_file()588 newehdr.e_machine = ehdr.e_machine; in process_file()589 newehdr.e_version = ehdr.e_version; in process_file()590 newehdr.e_entry = ehdr.e_entry; in process_file()591 newehdr.e_flags = ehdr.e_flags; in process_file()593 if (gelf_update_ehdr (elfnew, &newehdr) == 0) in process_file()1088 if (gelf_getehdr (elfnew, &newehdr) == NULL) in process_file()[all …]
1017 GElf_Ehdr *newehdr; in handle_elf() local2524 newehdr = gelf_getehdr (newelf, &newehdr_mem); in handle_elf()2525 if (newehdr == NULL) in handle_elf()2528 memcpy (newehdr->e_ident, ehdr->e_ident, EI_NIDENT); in handle_elf()2529 newehdr->e_type = ehdr->e_type; in handle_elf()2530 newehdr->e_machine = ehdr->e_machine; in handle_elf()2531 newehdr->e_version = ehdr->e_version; in handle_elf()2532 newehdr->e_entry = ehdr->e_entry; in handle_elf()2533 newehdr->e_flags = ehdr->e_flags; in handle_elf()2534 newehdr->e_phoff = ehdr->e_phoff; in handle_elf()[all …]
45 elfw2(LIBELFBITS,newehdr) (Elf *elf) in ElfW2()91 INTDEF(elfw2(LIBELFBITS,newehdr))