Home
last modified time | relevance | path

Searched refs:symdata (Results 1 – 14 of 14) 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.c44 if (unlikely (mod->symdata == NULL)) in __libdwfl_getsym()
59 Elf_Data *symdata; in __libdwfl_getsym() local
68 symdata = mod->symdata; in __libdwfl_getsym()
77 symdata = mod->aux_symdata; in __libdwfl_getsym()
86 symdata = mod->symdata; in __libdwfl_getsym()
95 symdata = mod->aux_symdata; in __libdwfl_getsym()
99 sym = gelf_getsymshndx (symdata, symxndxdata, tndx, sym, &shndx); in __libdwfl_getsym()
Drelocate.c100 Elf_Data *symdata; member
117 if (cache->symdata == NULL) in relocate_getsym()
145 cache->symdata = elf_getdata (scn, NULL); in relocate_getsym()
147 if (unlikely (cache->symdata == NULL)) in relocate_getsym()
157 if (cache->symdata != NULL && cache->symxndxdata != NULL) in relocate_getsym()
161 if (cache->symdata == NULL) in relocate_getsym()
174 cache->symdata = mod->symdata; in relocate_getsym()
180 if (unlikely (gelf_getsymshndx (cache->symdata, cache->symxndxdata, in relocate_getsym()
264 if (m->symdata == NULL in resolve_symbol()
272 sym = gelf_getsymshndx (m->symdata, m->symxndxdata, in resolve_symbol()
Ddwfl_module_getdwarf.c797 mod->symdata = elf_getdata_rawchunk (mod->main.elf, in translate_offs()
804 if (mod->symdata != NULL) in translate_offs()
811 mod->symdata = NULL; in translate_offs()
813 if (mod->symdata == NULL) in translate_offs()
1055 if (mod->symdata != NULL || mod->aux_symdata != NULL /* Already done. */ in find_symtab()
1135 mod->symdata = NULL; in find_symtab()
1203 mod->symdata = elf_getdata (symscn, NULL); in find_symtab()
1204 if (mod->symdata == NULL || mod->symdata->d_buf == NULL) in find_symtab()
1210 || mod->syments > mod->symdata->d_size / shdr->sh_entsize in find_symtab()
DlibdwflP.h182 Elf_Data *symdata; /* Data in the ELF symbol table section. */ member
DChangeLog667 * dwfl_module_getdwarf.c (find_symtab): Explicitly clear symdata,
/external/elfutils/src/
Dobjdump.c345 show_relocs_x (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *symdata, in show_relocs_x() argument
358 GElf_Sym *sym = gelf_getsymshndx (symdata, xndxdata, GELF_R_SYM (r_info), in show_relocs_x()
402 Elf_Data *symdata, Elf_Data *xndxdata, size_t symstrndx, in show_relocs_rel() argument
415 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rel()
423 Elf_Data *symdata, Elf_Data *xndxdata, size_t symstrndx, in show_relocs_rela() argument
436 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rela()
512 Elf_Data *symdata = elf_getdata (symscn, NULL); in show_relocs() local
513 if (unlikely (symshdr == NULL || symdata == NULL)) in show_relocs()
535 show_relocs_rel (ebl, shdr, data, symdata, xndxdata, in show_relocs()
538 show_relocs_rela (ebl, shdr, data, symdata, xndxdata, in show_relocs()
Dunstrip.c632 Elf_Data *symdata = elf_getdata (symscn, NULL); in add_new_section_symbols() local
635 symdata->d_size = shdr->sh_size; in add_new_section_symbols()
636 symdata->d_buf = xmalloc (symdata->d_size); in add_new_section_symbols()
637 record_new_data (symdata->d_buf); in add_new_section_symbols()
647 ELF_CHECK (gelf_update_symshndx (symdata, shndxdata, i, in add_new_section_symbols()
668 ELF_CHECK (gelf_update_symshndx (symdata, shndxdata, i, in add_new_section_symbols()
680 ELF_CHECK (gelf_update_symshndx (symdata, shndxdata, in add_new_section_symbols()
690 return symdata; in add_new_section_symbols()
835 Elf_Data *symdata = elf_getdata (symscn, NULL); in collect_symbols() local
843 GElf_Sym *sym = gelf_getsymshndx (symdata, shndxdata, i, in collect_symbols()
[all …]
Dfindtextrel.c525 Elf_Data *symdata = elf_getdata (symscn, NULL); in check_rel() local
541 sym = gelf_getsym (symdata, i, &sym_mem); in check_rel()
559 sym = gelf_getsym (symdata, lowidx, &sym_mem); in check_rel()
582 sym = gelf_getsym (symdata, highidx, &sym_mem); in check_rel()
594 sym = gelf_getsym (symdata, highidx, &sym_mem); in check_rel()
Delflint.c1369 size_t cnt, const GElf_Shdr *symshdr, Elf_Data *symdata, in check_one_reloc() argument
1406 GElf_Sym *sym = gelf_getsym (symdata, GELF_R_SYM (r_info), &sym_mem); in check_one_reloc()
1434 GElf_Sym *sym = gelf_getsym (symdata, GELF_R_SYM (r_info), &sym_mem); in check_one_reloc()
1509 Elf_Data *symdata = elf_getdata (symscn, NULL); in check_rela() local
1525 check_one_reloc (ebl, ehdr, shdr, idx, cnt, symshdr, symdata, in check_rela()
1560 Elf_Data *symdata = elf_getdata (symscn, NULL); in check_rel() local
1576 check_one_reloc (ebl, ehdr, shdr, idx, cnt, symshdr, symdata, in check_rel()
1947 Elf_Data *symdata = elf_getdata (symscn, NULL); in check_symtab_shndx() local
1948 if (symdata == NULL) in check_symtab_shndx()
2003 GElf_Sym *sym = gelf_getsym (symdata, cnt, &sym_data); in check_symtab_shndx()
[all …]
Dstrip.c513 Elf_Data *symdata, *xndxdata; in remove_debug_relocations() local
515 symdata = elf_getdata (symscn, NULL); in remove_debug_relocations()
517 if (symdata == NULL) in remove_debug_relocations()
543 GElf_Sym *sym = gelf_getsymshndx (symdata, xndxdata, in remove_debug_relocations()
1423 Elf_Data *symdata = shdr_info[cnt].data; in handle_elf() local
1451 GElf_Sym *sym = gelf_getsymshndx (symdata, xndxdata, in handle_elf()
1487 shdr_info[cnt].debug_data = symdata; in handle_elf()
Dreadelf.c1553 Elf_Data *symdata = elf_getdata (symscn, NULL); in handle_scngrp() local
1556 || symdata == NULL) in handle_scngrp()
1568 GElf_Sym *sym = gelf_getsym (symdata, shdr->sh_info, &sym_mem); in handle_scngrp()
1946 Elf_Data *symdata = elf_getdata (symscn, NULL); in handle_relocs_rel() local
1953 if (unlikely (symshdr == NULL || symdata == NULL || destshdr == NULL)) in handle_relocs_rel()
2014 GElf_Sym *sym = gelf_getsymshndx (symdata, xndxdata, in handle_relocs_rel()
2136 Elf_Data *symdata = elf_getdata (symscn, NULL); in handle_relocs_rela() local
2143 if (unlikely (symshdr == NULL || symdata == NULL || destshdr == NULL)) in handle_relocs_rela()
2204 GElf_Sym *sym = gelf_getsymshndx (symdata, xndxdata, in handle_relocs_rela()
DChangeLog1654 (show_relocs): Make sure destshdr, symshdr and symdata exists.