Searched refs:outelf (Results 1 - 2 of 2) sorted by relevance
/third_party/elfutils/tests/ |
H A D | ecp.c | 50 Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL); in main() local 51 if (outelf == NULL) in main() 55 gelf_newehdr (outelf, gelf_getclass (inelf)); in main() 59 gelf_update_ehdr (outelf, (ehdr = gelf_getehdr (inelf, &ehdr_mem))); in main() 65 if (gelf_newphdr (outelf, ehdr->e_phnum) == 0) in main() 73 gelf_update_phdr (outelf, cnt, gelf_getphdr (inelf, cnt, &phdr_mem)); in main() 80 Elf_Scn *newscn = elf_newscn (outelf); in main() 88 elf_flagelf (outelf, ELF_C_SET, ELF_F_LAYOUT); in main() 90 if (elf_update (outelf, ELF_C_WRITE) == -1) in main() 93 elf_end (outelf); in main() [all...] |
/third_party/elfutils/src/ |
H A D | unstrip.c | 233 copy_elf (Elf *outelf, Elf *inelf) in copy_elf() 235 ELF_CHECK (gelf_newehdr (outelf, gelf_getclass (inelf)), in copy_elf() 250 Elf_Scn *scn0 = elf_getscn (outelf, 0); in copy_elf() 260 ELF_CHECK (gelf_update_ehdr (outelf, ehdr), in copy_elf() 269 ELF_CHECK (gelf_newphdr (outelf, phnum), in copy_elf() 274 ELF_CHECK (gelf_update_phdr (outelf, i, in copy_elf() 282 Elf_Scn *newscn = elf_newscn (outelf); in copy_elf() 844 collect_symbols (Elf *outelf, bool rel, Elf_Scn *symscn, Elf_Scn *strscn, in collect_symbols() 887 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (outelf, s->shndx), in collect_symbols() 2197 Elf *outelf in handle_file() 232 copy_elf(Elf *outelf, Elf *inelf) copy_elf() argument 842 collect_symbols(Elf *outelf, bool rel, Elf_Scn *symscn, Elf_Scn *strscn, const size_t nent, const GElf_Addr bias, const size_t scnmap[], struct symbol *table, size_t *map, struct section *split_bss) collect_symbols() argument 2195 Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL); handle_file() local [all...] |
Completed in 4 milliseconds