• Home
  • Raw
  • Download

Lines Matching refs:elf

72 static void print_shdr_idx(source_t *source, Elf *elf, int idx)  in print_shdr_idx()  argument
74 print_shdr(source, elf_getscn(elf, idx)); in print_shdr_idx()
80 while ((scn = elf_nextscn (source->elf, scn)) != NULL) in print_shdrs()
92 scn = elf_getscn(source->elf, i); in print_shdrs()
149 static void create_elf_sections(source_t *source, Elf *elf) in create_elf_sections() argument
152 ASSERT(elf == NULL || source->elf == NULL || source->elf == elf); in create_elf_sections()
153 if (elf == NULL) { in create_elf_sections()
154 ASSERT(source->elf != NULL); in create_elf_sections()
155 elf = source->elf; in create_elf_sections()
163 scn = elf_newscn(elf); in create_elf_sections()
309 Elf *elf; in init_elf() local
335 elf = elf_begin(source->newelf_fd, ELF_C_WRITE, NULL); in init_elf()
336 FAILIF_LIBELF(elf == NULL, elf_begin); in init_elf()
338 elf = elf_clone(source->oldelf, ELF_C_EMPTY); in init_elf()
339 FAILIF_LIBELF(elf == NULL, elf_clone); in init_elf()
347 FAILIF_LIBELF(gelf_newehdr (elf, gelf_getclass (source->oldelf)) == 0, in init_elf()
350 && gelf_newphdr (elf, in init_elf()
356 GElf_Ehdr *ehdr = gelf_getehdr(elf, &source->ehdr_mem); in init_elf()
359 FAILIF_LIBELF(!gelf_update_ehdr(elf, ehdr), gelf_update_ehdr); in init_elf()
375 FAILIF_LIBELF(gelf_update_phdr (elf, cnt, in init_elf()
384 create_elf_sections(source, elf); in init_elf()
389 elf_flagelf (elf, ELF_C_SET, (ehdr->e_type != ET_REL ? ELF_F_LAYOUT : 0)); in init_elf()
391 return elf; in init_elf()
429 scn = elf_getscn(source->elf, scnidx); in do_init_source()
480 source->strtab.scn = elf_getscn(source->elf, in do_init_source()
573 size_t symsize = gelf_fsize (source->elf, in do_init_source()
695 source->elf = (ADJUST_ELF || source->dry_run) ? in init_source()
698 FAILIF_LIBELF(0 == gelf_getehdr(source->elf, &source->elf_hdr), in init_source()
708 source->ebl = ebl_openbackend (source->elf); in init_source()
711 FAILIF_LIBELF(0 != arm_init(source->elf, source->elf_hdr.e_machine, in init_source()
751 if (source->oldelf != source->elf) { in destroy_source()
755 FAILIF_LIBELF(elf_update(source->elf, ELF_C_WRITE) == -1, in destroy_source()
761 FAILIF_LIBELF(elf_end(source->elf), elf_end); in destroy_source()
872 int lib_symidx = hash_lookup(lib->elf, in hash_lookup_global_or_weak_symbol()
892 ((char *)elf_getdata(elf_getscn(lib->elf, in hash_lookup_global_or_weak_symbol()
899 elf_strptr(lib->elf, lib->symtab.shdr.sh_link, in hash_lookup_global_or_weak_symbol()
947 sym_source->elf, in lookup_symbol_in_dependencies()
954 elf_strptr(sym_source->elf, in lookup_symbol_in_dependencies()
1009 symname = elf_strptr(source->elf, in do_prelink()
1081 sym_source->elf, in do_prelink()
1088 elf_strptr(sym_source->elf, in do_prelink()
1276 elf_getscn(sym_source->elf, in do_prelink()
1280 elf_strptr(sym_source->elf, in do_prelink()
1578 size_t relsize = gelf_fsize(source->elf, in adjust_dynamic_segment_entry_size()
1772 size_t relsize = gelf_fsize(source->elf, in adjust_dynamic_segment_for()
2008 elf_newscn(source->elf)) == NULL, elf_newscn); in drop_sections()
2209 elf_getscn(source->elf, in process_file()
2213 elf_strptr (source->elf, in process_file()
2324 ASSERT(source->elf == source->oldelf); in process_file()
2350 source->elf = init_elf(source, false); in process_file()
2354 ASSERT(source->elf != source->oldelf); in process_file()
2356 source->ebl = ebl_openbackend (source->elf); in process_file()
2359 FAILIF_LIBELF(0 != arm_init(source->elf, in process_file()
2392 source->elf, source->name, in process_file()