Searched refs:ehdr (Results 1 – 5 of 5) sorted by relevance
/build/tools/soslim/ |
D | common.c | 20 Elf32_Ehdr *ehdr; in map_over_segments() local 24 ehdr = elf32_getehdr(elf); in map_over_segments() 28 ehdr->e_phnum); in map_over_segments() 30 for (index = ehdr->e_phnum; index; index--) { in map_over_segments()
|
D | soslim.c | 36 GElf_Ehdr ehdr_mem, *ehdr; /* store ELF header of original library */ in clone_elf() local 58 ehdr = gelf_getehdr (elf, &ehdr_mem); in clone_elf() 59 FAILIF_LIBELF(NULL == ehdr, gelf_getehdr); in clone_elf() 63 (ehdr->e_type != ET_REL && gelf_newphdr (newelf, in clone_elf() 64 ehdr->e_phnum) == 0), in clone_elf() 71 *elf_little = (ehdr->e_ident[EI_DATA] == ELFDATA2LSB); in clone_elf() 81 phdr_info = (GElf_Phdr *)CALLOC(ehdr->e_phnum, sizeof(GElf_Phdr)); in clone_elf() 82 for (cnt = 0; cnt < ehdr->e_phnum; ++cnt) { in clone_elf() 187 FAILIF_LIBELF(0 != arm_init(elf, ehdr->e_machine, ebl, sizeof(Ebl)), in clone_elf() 210 if (SECTION_STRIP_P (ebl, elf, ehdr, &shdr_info[cnt].shdr, in clone_elf() [all …]
|
D | symfilter.c | 78 GElf_Ehdr *ehdr, ehdr_mem; in build_symfilter() local 79 ehdr = gelf_getehdr(elf, &ehdr_mem); in build_symfilter() 80 size_t symsize = gelf_fsize (elf, ELF_T_SYM, 1, ehdr->e_version); in build_symfilter() 117 ehdr->e_version); in build_symfilter()
|
D | main.c | 244 GElf_Ehdr ehdr; in print_dynamic_symbols() local 245 FAILIF_LIBELF(0 == gelf_getehdr(elf, &ehdr), gelf_getehdr); in print_dynamic_symbols() 269 elsize = gelf_fsize(elf, ELF_T_SYM, 1, ehdr.e_version); in print_dynamic_symbols()
|
/build/tools/apriori/ |
D | apriori.c | 356 GElf_Ehdr *ehdr = gelf_getehdr(elf, &source->ehdr_mem); in init_elf() local 357 FAILIF_LIBELF(NULL == ehdr, gelf_getehdr); in init_elf() 358 memcpy(ehdr, oldehdr, sizeof(GElf_Ehdr)); in init_elf() 359 FAILIF_LIBELF(!gelf_update_ehdr(elf, ehdr), gelf_update_ehdr); in init_elf() 367 source->phdr_info = (GElf_Phdr *)CALLOC(ehdr->e_phnum, in init_elf() 369 for (cnt = 0; cnt < ehdr->e_phnum; ++cnt) { in init_elf() 389 elf_flagelf (elf, ELF_C_SET, (ehdr->e_type != ET_REL ? ELF_F_LAYOUT : 0)); in init_elf()
|