Home
last modified time | relevance | path

Searched refs:symdata (Results 1 – 16 of 16) sorted by relevance

/external/elfutils/libelf/
Dgelf_getsymshndx.c43 gelf_getsymshndx (Elf_Data *symdata, Elf_Data *shndxdata, int ndx, in gelf_getsymshndx() argument
46 Elf_Data_Scn *symdata_scn = (Elf_Data_Scn *) symdata; in gelf_getsymshndx()
51 if (symdata == NULL) in gelf_getsymshndx()
54 if (unlikely (symdata->d_type != ELF_T_SYM) in gelf_getsymshndx()
88 if (INVALID_NDX (ndx, Elf32_Sym, symdata)) in gelf_getsymshndx()
94 src = &((Elf32_Sym *) symdata->d_buf)[ndx]; in gelf_getsymshndx()
117 if (INVALID_NDX (ndx, GElf_Sym, symdata)) in gelf_getsymshndx()
123 *dst = ((GElf_Sym *) symdata->d_buf)[ndx]; in gelf_getsymshndx()
Dgelf_update_symshndx.c43 gelf_update_symshndx (Elf_Data *symdata, Elf_Data *shndxdata, int ndx, in gelf_update_symshndx() argument
46 Elf_Data_Scn *symdata_scn = (Elf_Data_Scn *) symdata; in gelf_update_symshndx()
52 if (symdata == NULL) in gelf_update_symshndx()
/external/elfutils/libdwfl/
Ddwfl_module_getsym.c40 if (unlikely (mod->symdata == NULL)) in __libdwfl_getsym()
55 Elf_Data *symdata; in __libdwfl_getsym() local
64 symdata = mod->symdata; in __libdwfl_getsym()
73 symdata = mod->aux_symdata; in __libdwfl_getsym()
82 symdata = mod->symdata; in __libdwfl_getsym()
91 symdata = mod->aux_symdata; in __libdwfl_getsym()
95 sym = gelf_getsymshndx (symdata, symxndxdata, tndx, sym, &shndx); in __libdwfl_getsym()
Drelocate.c95 Elf_Data *symdata; member
112 if (cache->symdata == NULL) in relocate_getsym()
140 cache->symdata = elf_getdata (scn, NULL); in relocate_getsym()
142 if (unlikely (cache->symdata == NULL)) in relocate_getsym()
152 if (cache->symdata != NULL && cache->symxndxdata != NULL) in relocate_getsym()
156 if (cache->symdata == NULL) in relocate_getsym()
169 cache->symdata = mod->symdata; in relocate_getsym()
175 if (unlikely (gelf_getsymshndx (cache->symdata, cache->symxndxdata, in relocate_getsym()
259 if (m->symdata == NULL in resolve_symbol()
267 sym = gelf_getsymshndx (m->symdata, m->symxndxdata, in resolve_symbol()
Ddwfl_module_getdwarf.c790 mod->symdata = elf_getdata_rawchunk (mod->main.elf, in translate_offs()
797 if (mod->symdata != NULL) in translate_offs()
804 mod->symdata = NULL; in translate_offs()
806 if (mod->symdata == NULL) in translate_offs()
1046 if (mod->symdata != NULL || mod->aux_symdata != NULL /* Already done. */ in find_symtab()
1126 mod->symdata = NULL; in find_symtab()
1194 mod->symdata = elf_getdata (symscn, NULL); in find_symtab()
1195 if (mod->symdata == NULL || mod->symdata->d_buf == NULL) in find_symtab()
1201 || mod->syments > mod->symdata->d_size / shdr->sh_entsize in find_symtab()
DlibdwflP.h185 Elf_Data *symdata; /* Data in the ELF symbol table section. */ member
DChangeLog336 * dwfl_module_getdwarf.c (find_symtab): Explicitly clear symdata,
/external/elfutils/src/
Dobjdump.c357 show_relocs_x (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *symdata, in show_relocs_x() argument
370 GElf_Sym *sym = gelf_getsymshndx (symdata, xndxdata, GELF_R_SYM (r_info), in show_relocs_x()
414 Elf_Data *symdata, Elf_Data *xndxdata, size_t symstrndx, in show_relocs_rel() argument
427 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rel()
435 Elf_Data *symdata, Elf_Data *xndxdata, size_t symstrndx, in show_relocs_rela() argument
448 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rela()
524 Elf_Data *symdata = elf_getdata (symscn, NULL); in show_relocs() local
525 if (unlikely (symshdr == NULL || symdata == NULL)) in show_relocs()
547 show_relocs_rel (ebl, shdr, data, symdata, xndxdata, in show_relocs()
550 show_relocs_rela (ebl, shdr, data, symdata, xndxdata, in show_relocs()
Dldgeneric.c1237 Elf_Data *symdata; in add_relocatable_file() local
1255 symdata = elf_getdata (symscn, NULL); in add_relocatable_file()
1263 xelf_getsym (symdata, shdr->sh_info, sym); in add_relocatable_file()
3692 Elf_Data *symdata, struct Ebl_Strtab *strtab) in fillin_special_symbol() argument
3697 xelf_getsym_ptr (symdata, nsym, sym); in fillin_special_symbol()
3730 (void) xelf_update_sym (symdata, nsym, sym); in fillin_special_symbol()
4311 Elf_Data *symdata = NULL; in ld_generic_create_outfile() local
4345 symdata = elf_newdata (symscn); in ld_generic_create_outfile()
4346 if (symdata == NULL) in ld_generic_create_outfile()
4351 symdata->d_type = ELF_T_SYM; in ld_generic_create_outfile()
[all …]
Dfindtextrel.c539 Elf_Data *symdata = elf_getdata (symscn, NULL); in check_rel() local
554 sym = gelf_getsym (symdata, i, &sym_mem); in check_rel()
572 sym = gelf_getsym (symdata, lowidx, &sym_mem); in check_rel()
595 sym = gelf_getsym (symdata, highidx, &sym_mem); in check_rel()
607 sym = gelf_getsym (symdata, highidx, &sym_mem); in check_rel()
Dunstrip.c603 Elf_Data *symdata = elf_getdata (symscn, NULL); in add_new_section_symbols() local
606 symdata->d_size = shdr->sh_size; in add_new_section_symbols()
607 symdata->d_buf = xmalloc (symdata->d_size); in add_new_section_symbols()
608 record_new_data (symdata->d_buf); in add_new_section_symbols()
618 ELF_CHECK (gelf_update_symshndx (symdata, shndxdata, i, in add_new_section_symbols()
639 ELF_CHECK (gelf_update_symshndx (symdata, shndxdata, i, in add_new_section_symbols()
651 ELF_CHECK (gelf_update_symshndx (symdata, shndxdata, in add_new_section_symbols()
661 return symdata; in add_new_section_symbols()
793 Elf_Data *symdata = elf_getdata (symscn, NULL); in collect_symbols() local
801 GElf_Sym *sym = gelf_getsymshndx (symdata, shndxdata, i, in collect_symbols()
[all …]
Di386_ld.c395 Elf_Data *symdata = NULL; in elf_i386_finalize_plt() local
398 symdata = elf_getdata (elf_getscn (statep->outelf, statep->symscnidx), in elf_i386_finalize_plt()
400 assert (symdata != NULL); in elf_i386_finalize_plt()
476 if (symdata != NULL) in elf_i386_finalize_plt()
479 ((Elf32_Sym *) symdata->d_buf)[nsym - statep->nplt in elf_i386_finalize_plt()
766 Elf_Data *symdata = elf_getdata (scninfo[rshdr->sh_link].scn, NULL); in elf_i386_create_relocations() local
781 xelf_getsym (symdata, idx, sym); in elf_i386_create_relocations()
Delflint.c1352 size_t cnt, const GElf_Shdr *symshdr, Elf_Data *symdata, in check_one_reloc() argument
1389 GElf_Sym *sym = gelf_getsym (symdata, GELF_R_SYM (r_info), &sym_mem); in check_one_reloc()
1417 GElf_Sym *sym = gelf_getsym (symdata, GELF_R_SYM (r_info), &sym_mem); in check_one_reloc()
1492 Elf_Data *symdata = elf_getdata (symscn, NULL); in check_rela() local
1508 check_one_reloc (ebl, ehdr, shdr, idx, cnt, symshdr, symdata, in check_rela()
1543 Elf_Data *symdata = elf_getdata (symscn, NULL); in check_rel() local
1559 check_one_reloc (ebl, ehdr, shdr, idx, cnt, symshdr, symdata, in check_rel()
1930 Elf_Data *symdata = elf_getdata (symscn, NULL); in check_symtab_shndx() local
1931 if (symdata == NULL) in check_symtab_shndx()
1985 GElf_Sym *sym = gelf_getsym (symdata, cnt, &sym_data); in check_symtab_shndx()
[all …]
Dstrip.c829 Elf_Data *symdata = shdr_info[cnt].data; in handle_elf() local
857 GElf_Sym *sym = gelf_getsymshndx (symdata, xndxdata, in handle_elf()
882 shdr_info[cnt].debug_data = symdata; in handle_elf()
1798 Elf_Data *symdata, *xndxdata; in handle_elf() local
1801 symdata = (shdr_info[symt].debug_data in handle_elf()
1828 GElf_Sym *sym = gelf_getsymshndx (symdata, xndxdata, in handle_elf()
Dreadelf.c1461 Elf_Data *symdata = elf_getdata (symscn, NULL); in handle_scngrp() local
1464 || symdata == NULL) in handle_scngrp()
1476 GElf_Sym *sym = gelf_getsym (symdata, shdr->sh_info, &sym_mem); in handle_scngrp()
1849 Elf_Data *symdata = elf_getdata (symscn, NULL); in handle_relocs_rel() local
1856 if (unlikely (symshdr == NULL || symdata == NULL || destshdr == NULL)) in handle_relocs_rel()
1917 GElf_Sym *sym = gelf_getsymshndx (symdata, xndxdata, in handle_relocs_rel()
2039 Elf_Data *symdata = elf_getdata (symscn, NULL); in handle_relocs_rela() local
2046 if (unlikely (symshdr == NULL || symdata == NULL || destshdr == NULL)) in handle_relocs_rela()
2107 GElf_Sym *sym = gelf_getsymshndx (symdata, xndxdata, in handle_relocs_rela()
DChangeLog591 (show_relocs): Make sure destshdr, symshdr and symdata exists.