Home
last modified time | relevance | path

Searched refs:outelf (Results 1 – 5 of 5) sorted by relevance

/external/elfutils/tests/
Decp.c54 Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL); in main() local
55 if (outelf == NULL) in main()
59 gelf_newehdr (outelf, gelf_getclass (inelf)); in main()
63 gelf_update_ehdr (outelf, (ehdr = gelf_getehdr (inelf, &ehdr_mem))); in main()
69 if (gelf_newphdr (outelf, ehdr->e_phnum) == 0) in main()
77 gelf_update_phdr (outelf, cnt, gelf_getphdr (inelf, cnt, &phdr_mem)); in main()
84 Elf_Scn *newscn = elf_newscn (outelf); in main()
92 elf_flagelf (outelf, ELF_C_SET, ELF_F_LAYOUT); in main()
94 if (elf_update (outelf, ELF_C_WRITE) == -1) in main()
97 elf_end (outelf); in main()
/external/elfutils/src/
Dldgeneric.c2475 xelf_fsize (ld_state.outelf, ELF_T_DYN, 1), in ld_generic_generate_sections()
2476 xelf_fsize (ld_state.outelf, ELF_T_ADDR, 1)); in ld_generic_generate_sections()
2483 xelf_fsize (ld_state.outelf, ELF_T_SYM, 1), in ld_generic_generate_sections()
2484 xelf_fsize (ld_state.outelf, ELF_T_ADDR, 1)); in ld_generic_generate_sections()
2506 xelf_fsize (ld_state.outelf, ELF_T_ADDR, 1), in ld_generic_generate_sections()
2507 xelf_fsize (ld_state.outelf, ELF_T_ADDR, 1)); in ld_generic_generate_sections()
2513 ? xelf_fsize (ld_state.outelf, ELF_T_REL, 1) in ld_generic_generate_sections()
2514 : xelf_fsize (ld_state.outelf, ELF_T_RELA, 1), in ld_generic_generate_sections()
2515 xelf_fsize (ld_state.outelf, ELF_T_ADDR, 1)); in ld_generic_generate_sections()
2520 xelf_fsize (ld_state.outelf, ELF_T_ADDR, 1), in ld_generic_generate_sections()
[all …]
Di386_ld.c375 scn = elf_getscn (statep->outelf, statep->gotpltscnidx); in elf_i386_finalize_plt()
388 xelf_getshdr (elf_getscn (statep->outelf, statep->dynamicscnidx), shdr); in elf_i386_finalize_plt()
394 scn = elf_getscn (statep->outelf, statep->pltscnidx); in elf_i386_finalize_plt()
399 Elf_Data *dynsymdata = elf_getdata (elf_getscn (statep->outelf, in elf_i386_finalize_plt()
406 symdata = elf_getdata (elf_getscn (statep->outelf, statep->symscnidx), in elf_i386_finalize_plt()
412 scn = elf_getscn (statep->outelf, statep->pltscnidx); in elf_i386_finalize_plt()
419 scn = elf_getscn (statep->outelf, statep->pltrelscnidx); in elf_i386_finalize_plt()
723 Elf_Scn *pltscn = elf_getscn (statep->outelf, statep->pltscnidx); in elf_i386_create_relocations()
728 Elf_Scn *gotscn = elf_getscn (statep->outelf, statep->gotscnidx); in elf_i386_create_relocations()
737 Elf_Scn *gotpltscn = elf_getscn (statep->outelf, statep->gotpltscnidx); in elf_i386_create_relocations()
[all …]
Dunstrip.c251 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()
[all …]
Dld.h792 Elf *outelf; member