Lines Matching refs:outelf
251 copy_elf (Elf *outelf, Elf *inelf) in copy_elf() argument
253 ELF_CHECK (gelf_newehdr (outelf, gelf_getclass (inelf)), in copy_elf()
258 ELF_CHECK (gelf_update_ehdr (outelf, ehdr), in copy_elf()
263 ELF_CHECK (gelf_newphdr (outelf, ehdr->e_phnum), in copy_elf()
268 ELF_CHECK (gelf_update_phdr (outelf, i, in copy_elf()
276 Elf_Scn *newscn = elf_newscn (outelf); in copy_elf()
748 collect_symbols (Elf *outelf, bool rel, Elf_Scn *symscn, Elf_Scn *strscn, in collect_symbols() argument
787 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (outelf, s->shndx), in collect_symbols()
1901 Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL); in handle_file() local
1902 ELF_CHECK (outelf != NULL, _("cannot create ELF descriptor: %s")); in handle_file()
1907 copy_elf (outelf, stripped); in handle_file()
1909 elf_flagelf (outelf, ELF_C_SET, ELF_F_LAYOUT); in handle_file()
1910 ELF_CHECK (elf_update (outelf, ELF_C_WRITE) > 0, in handle_file()
1915 copy_elf (outelf, unstripped); in handle_file()
1916 copy_elided_sections (outelf, stripped, stripped_ehdr, bias); in handle_file()
1919 elf_end (outelf); in handle_file()