Home
last modified time | relevance | path

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

/external/elfutils/src/tests/
Decp.c46 Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL); in main() local
47 if (outelf == NULL) in main()
51 gelf_newehdr (outelf, gelf_getclass (inelf)); in main()
55 gelf_update_ehdr (outelf, (ehdr = gelf_getehdr (inelf, &ehdr_mem))); in main()
61 if (gelf_newphdr (outelf, ehdr->e_phnum) == 0) in main()
69 gelf_update_phdr (outelf, cnt, gelf_getphdr (inelf, cnt, &phdr_mem)); in main()
76 Elf_Scn *newscn = elf_newscn (outelf); in main()
84 elf_flagelf (outelf, ELF_C_SET, ELF_F_LAYOUT); in main()
86 if (elf_update (outelf, ELF_C_WRITE) == -1) in main()
89 elf_end (outelf); in main()
/external/elfutils/src/src/
Dldgeneric.c2465 xelf_fsize (ld_state.outelf, ELF_T_DYN, 1), in ld_generic_generate_sections()
2466 xelf_fsize (ld_state.outelf, ELF_T_ADDR, 1)); in ld_generic_generate_sections()
2473 xelf_fsize (ld_state.outelf, ELF_T_SYM, 1), in ld_generic_generate_sections()
2474 xelf_fsize (ld_state.outelf, ELF_T_ADDR, 1)); in ld_generic_generate_sections()
2496 xelf_fsize (ld_state.outelf, ELF_T_ADDR, 1), in ld_generic_generate_sections()
2497 xelf_fsize (ld_state.outelf, ELF_T_ADDR, 1)); in ld_generic_generate_sections()
2503 ? xelf_fsize (ld_state.outelf, ELF_T_REL, 1) in ld_generic_generate_sections()
2504 : xelf_fsize (ld_state.outelf, ELF_T_RELA, 1), in ld_generic_generate_sections()
2505 xelf_fsize (ld_state.outelf, ELF_T_ADDR, 1)); in ld_generic_generate_sections()
2510 xelf_fsize (ld_state.outelf, ELF_T_ADDR, 1), in ld_generic_generate_sections()
[all …]
Di386_ld.c367 scn = elf_getscn (statep->outelf, statep->gotpltscnidx); in elf_i386_finalize_plt()
380 xelf_getshdr (elf_getscn (statep->outelf, statep->dynamicscnidx), shdr); in elf_i386_finalize_plt()
386 scn = elf_getscn (statep->outelf, statep->pltscnidx); in elf_i386_finalize_plt()
391 Elf_Data *dynsymdata = elf_getdata (elf_getscn (statep->outelf, in elf_i386_finalize_plt()
398 symdata = elf_getdata (elf_getscn (statep->outelf, statep->symscnidx), in elf_i386_finalize_plt()
404 scn = elf_getscn (statep->outelf, statep->pltscnidx); in elf_i386_finalize_plt()
411 scn = elf_getscn (statep->outelf, statep->pltrelscnidx); in elf_i386_finalize_plt()
715 Elf_Scn *pltscn = elf_getscn (statep->outelf, statep->pltscnidx); in elf_i386_create_relocations()
720 Elf_Scn *gotscn = elf_getscn (statep->outelf, statep->gotscnidx); in elf_i386_create_relocations()
729 Elf_Scn *gotpltscn = elf_getscn (statep->outelf, statep->gotpltscnidx); in elf_i386_create_relocations()
[all …]
Dunstrip.c250 copy_elf (Elf *outelf, Elf *inelf) in copy_elf() argument
252 ELF_CHECK (gelf_newehdr (outelf, gelf_getclass (inelf)), in copy_elf()
257 ELF_CHECK (gelf_update_ehdr (outelf, ehdr), in copy_elf()
266 ELF_CHECK (gelf_newphdr (outelf, phnum), in copy_elf()
271 ELF_CHECK (gelf_update_phdr (outelf, i, in copy_elf()
279 Elf_Scn *newscn = elf_newscn (outelf); in copy_elf()
754 collect_symbols (Elf *outelf, bool rel, Elf_Scn *symscn, Elf_Scn *strscn, in collect_symbols() argument
793 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (outelf, s->shndx), in collect_symbols()
1924 Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL); in handle_file() local
1925 ELF_CHECK (outelf != NULL, _("cannot create ELF descriptor: %s")); in handle_file()
[all …]
Dld.h784 Elf *outelf; member