Home
last modified time | relevance | path

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

/external/elfutils/src/libelf/
Dgelf_getsymshndx.c43 gelf_getsymshndx (symdata, shndxdata, ndx, dst, dstshndx) in gelf_getsymshndx() argument
44 Elf_Data *symdata; in gelf_getsymshndx()
50 Elf_Data_Scn *symdata_scn = (Elf_Data_Scn *) symdata;
55 if (symdata == NULL)
58 if (unlikely (symdata->d_type != ELF_T_SYM)
92 if (INVALID_NDX (ndx, Elf32_Sym, symdata))
98 src = &((Elf32_Sym *) symdata->d_buf)[ndx];
121 if (INVALID_NDX (ndx, GElf_Sym, symdata))
127 *dst = ((GElf_Sym *) symdata->d_buf)[ndx];
Dgelf_update_symshndx.c43 gelf_update_symshndx (symdata, shndxdata, ndx, src, srcshndx) in gelf_update_symshndx() argument
44 Elf_Data *symdata; in gelf_update_symshndx()
50 Elf_Data_Scn *symdata_scn = (Elf_Data_Scn *) symdata;
56 if (symdata == NULL)
/external/elfutils/src/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()
132 cache->symdata = elf_getdata (scn, NULL); in relocate_getsym()
134 if (unlikely (cache->symdata == NULL)) in relocate_getsym()
143 if (cache->symdata != NULL && cache->symxndxdata != NULL) in relocate_getsym()
147 if (cache->symdata == NULL) in relocate_getsym()
160 cache->symdata = mod->symdata; in relocate_getsym()
166 if (unlikely (gelf_getsymshndx (cache->symdata, cache->symxndxdata, in relocate_getsym()
225 if (m->symdata == NULL in resolve_symbol()
233 sym = gelf_getsymshndx (m->symdata, m->symxndxdata, in resolve_symbol()
Ddwfl_module_getdwarf.c818 mod->symdata = elf_getdata_rawchunk (mod->main.elf, in find_dynsym()
825 if (mod->symdata != NULL) in find_dynsym()
832 mod->symdata = NULL; in find_dynsym()
834 if (mod->symdata == NULL) in find_dynsym()
1006 if (mod->symdata != NULL || mod->aux_symdata != NULL /* Already done. */ in find_symtab()
1106 mod->symdata = elf_getdata (symscn, NULL); in find_symtab()
1107 if (mod->symdata == NULL || mod->symdata->d_buf == NULL) in find_symtab()
1112 if (mod->syments > mod->symdata->d_size / shdr->sh_entsize in find_symtab()
DlibdwflP.h175 Elf_Data *symdata; /* Data in the ELF symbol table section. */ member
/external/elfutils/src/src/
Dobjdump.c361 show_relocs_x (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *symdata, in show_relocs_x() argument
374 GElf_Sym *sym = gelf_getsymshndx (symdata, xndxdata, GELF_R_SYM (r_info), in show_relocs_x()
418 Elf_Data *symdata, Elf_Data *xndxdata, size_t symstrndx, in show_relocs_rel() argument
431 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rel()
439 Elf_Data *symdata, Elf_Data *xndxdata, size_t symstrndx, in show_relocs_rela() argument
452 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rela()
528 Elf_Data *symdata = elf_getdata (symscn, NULL); in show_relocs() local
529 if (unlikely (symshdr == NULL || symdata == NULL)) in show_relocs()
551 show_relocs_rel (ebl, shdr, data, symdata, xndxdata, in show_relocs()
554 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.c538 Elf_Data *symdata = elf_getdata (symscn, NULL); in check_rel() local
553 sym = gelf_getsym (symdata, i, &sym_mem); in check_rel()
571 sym = gelf_getsym (symdata, lowidx, &sym_mem); in check_rel()
594 sym = gelf_getsym (symdata, highidx, &sym_mem); in check_rel()
606 sym = gelf_getsym (symdata, highidx, &sym_mem); in check_rel()
Dunstrip.c570 Elf_Data *symdata = elf_getdata (symscn, NULL); in add_new_section_symbols() local
573 symdata->d_size = shdr->sh_size; in add_new_section_symbols()
574 symdata->d_buf = xmalloc (symdata->d_size); in add_new_section_symbols()
584 ELF_CHECK (gelf_update_symshndx (symdata, shndxdata, i, in add_new_section_symbols()
605 ELF_CHECK (gelf_update_symshndx (symdata, shndxdata, i, in add_new_section_symbols()
617 ELF_CHECK (gelf_update_symshndx (symdata, shndxdata, in add_new_section_symbols()
627 return symdata; in add_new_section_symbols()
759 Elf_Data *symdata = elf_getdata (symscn, NULL); in collect_symbols() local
767 GElf_Sym *sym = gelf_getsymshndx (symdata, shndxdata, i, in collect_symbols()
1580 Elf_Data *symdata = NULL; in copy_elided_sections() local
[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.c1332 size_t cnt, const GElf_Shdr *symshdr, Elf_Data *symdata, in check_one_reloc() argument
1369 GElf_Sym *sym = gelf_getsym (symdata, GELF_R_SYM (r_info), &sym_mem); in check_one_reloc()
1397 GElf_Sym *sym = gelf_getsym (symdata, GELF_R_SYM (r_info), &sym_mem); in check_one_reloc()
1472 Elf_Data *symdata = elf_getdata (symscn, NULL); in check_rela() local
1488 check_one_reloc (ebl, ehdr, shdr, idx, cnt, symshdr, symdata, in check_rela()
1523 Elf_Data *symdata = elf_getdata (symscn, NULL); in check_rel() local
1539 check_one_reloc (ebl, ehdr, shdr, idx, cnt, symshdr, symdata, in check_rel()
1899 Elf_Data *symdata = elf_getdata (symscn, NULL); in check_symtab_shndx() local
1900 if (symdata == NULL) in check_symtab_shndx()
1954 GElf_Sym *sym = gelf_getsym (symdata, cnt, &sym_data); in check_symtab_shndx()
[all …]
Dstrip.c797 Elf_Data *symdata = shdr_info[cnt].data; in handle_elf() local
826 GElf_Sym *sym = gelf_getsymshndx (symdata, xndxdata, in handle_elf()
851 shdr_info[cnt].debug_data = symdata; in handle_elf()
1701 Elf_Data *symdata, *xndxdata; in handle_elf() local
1702 symdata = (shdr_info[symt].debug_data in handle_elf()
1729 GElf_Sym *sym = gelf_getsymshndx (symdata, xndxdata, in handle_elf()
Dreadelf.c1383 Elf_Data *symdata = elf_getdata (symscn, NULL); in handle_scngrp() local
1386 || symdata == NULL) in handle_scngrp()
1398 GElf_Sym *sym = gelf_getsym (symdata, shdr->sh_info, &sym_mem); in handle_scngrp()
1761 Elf_Data *symdata = elf_getdata (symscn, NULL); in handle_relocs_rel() local
1768 if (unlikely (symshdr == NULL || symdata == NULL || destshdr == NULL)) in handle_relocs_rel()
1829 GElf_Sym *sym = gelf_getsymshndx (symdata, xndxdata, in handle_relocs_rel()
1951 Elf_Data *symdata = elf_getdata (symscn, NULL); in handle_relocs_rela() local
1958 if (unlikely (symshdr == NULL || symdata == NULL || destshdr == NULL)) in handle_relocs_rela()
2019 GElf_Sym *sym = gelf_getsymshndx (symdata, xndxdata, in handle_relocs_rela()
DChangeLog106 (show_relocs): Make sure destshdr, symshdr and symdata exists.