Lines Matching refs:outelf
233 copy_elf (Elf *outelf, Elf *inelf)
235 ELF_CHECK (gelf_newehdr (outelf, gelf_getclass (inelf)),
250 Elf_Scn *scn0 = elf_getscn (outelf, 0);
260 ELF_CHECK (gelf_update_ehdr (outelf, ehdr),
269 ELF_CHECK (gelf_newphdr (outelf, phnum),
274 ELF_CHECK (gelf_update_phdr (outelf, i,
282 Elf_Scn *newscn = elf_newscn (outelf);
844 collect_symbols (Elf *outelf, bool rel, Elf_Scn *symscn, Elf_Scn *strscn,
887 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (outelf, s->shndx),
2197 Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL);
2198 ELF_CHECK (outelf != NULL, _("cannot create ELF descriptor: %s"));
2203 copy_elf (outelf, stripped);
2205 elf_flagelf (outelf, ELF_C_SET, ELF_F_LAYOUT);
2206 ELF_CHECK (elf_update (outelf, ELF_C_WRITE) > 0,
2211 copy_elf (outelf, unstripped);
2212 copy_elided_sections (outelf, stripped, stripped_ehdr, bias);
2215 elf_end (outelf);