/freebsd/contrib/elftoolchain/elfcopy/ |
H A D | symbols.c | 399 size_t ishstrndx, namelen, ndx, sc, symndx; in generate_symbols() local 436 symndx = 0; in generate_symbols() 448 symndx = elf_ndxscn(is); in generate_symbols() 458 if (symndx == 0) { in generate_symbols() 491 ecp->symndx = calloc(sc, sizeof(*ecp->symndx)); in generate_symbols() 492 if (ecp->symndx == NULL) in generate_symbols() 512 if ((name = elf_strptr(ecp->ein, symndx, sym.st_name)) == NULL) in generate_symbols() 575 ecp->symndx[i] = sy_buf->ngs; in generate_symbols() 577 ecp->symndx[i] = sy_buf->nls; in generate_symbols() 649 sy_buf->g32[ecp->symndx[i]].st_name += in generate_symbols() [all …]
|
H A D | elfcopy.h | 244 uint64_t *symndx; /* symbol index map. */ member
|
H A D | sections.c | 832 REL.r_info = GELF_R_INFO(ecp->symndx[GELF_R_SYM(REL.r_info)], \ in update_reloc() 1442 osh.sh_info = ecp->symndx[osh.sh_info]; in update_shdr()
|
/freebsd/contrib/elftoolchain/libdwarf/ |
H A D | libdwarf_elf_init.c | 60 size_t symndx; in _dwarf_elf_apply_rel_reloc() local 67 symndx = GELF_R_SYM(rel.r_info); in _dwarf_elf_apply_rel_reloc() 70 if (gelf_getsym(symtab_data, symndx, &sym) == NULL) in _dwarf_elf_apply_rel_reloc() 103 size_t symndx; in _dwarf_elf_apply_rela_reloc() local 109 symndx = GELF_R_SYM(rela.r_info); in _dwarf_elf_apply_rela_reloc() 112 if (gelf_getsym(symtab_data, symndx, &sym) == NULL) in _dwarf_elf_apply_rela_reloc()
|
H A D | libdwarf_sections.c | 99 Dwarf_Unsigned info, Dwarf_Unsigned *symndx, int *error) in _dwarf_pro_callback() argument 103 assert(dbg != NULL && name != NULL && symndx != NULL); in _dwarf_pro_callback() 107 symndx, &e); in _dwarf_pro_callback() 111 *symndx = isymndx; in _dwarf_pro_callback()
|
H A D | dwarf_pro_lineno.c | 73 dwarf_lne_set_address(Dwarf_P_Debug dbg, Dwarf_Addr offs, Dwarf_Unsigned symndx, in dwarf_lne_set_address() argument 79 if (dbg == NULL || symndx == 0) { in dwarf_lne_set_address() 92 ln->ln_symndx = symndx; in dwarf_lne_set_address()
|
H A D | libdwarf_reloc.c | 218 Dwarf_Unsigned offset, Dwarf_Unsigned symndx, Dwarf_Unsigned addend, in _dwarf_reloc_entry_add() argument 256 dre->dre_symndx = symndx; in _dwarf_reloc_entry_add() 267 Dwarf_Unsigned symndx, Dwarf_Unsigned esymndx, Dwarf_Unsigned symoff, in _dwarf_reloc_entry_add_pair() argument 296 dre[0].dre_symndx = symndx; in _dwarf_reloc_entry_add_pair()
|
/freebsd/contrib/elftoolchain/elfdump/ |
H A D | elfdump.c | 2336 uint32_t nbucket, nchain, symndx, maskwords, shift2; in elf_print_gnu_hash() local 2360 symndx = buf[1]; in elf_print_gnu_hash() 2371 if (symndx >= (uint32_t)dynsymcount) { in elf_print_gnu_hash() 2375 nchain = dynsymcount - symndx; in elf_print_gnu_hash() 2390 for (j = bucket[i]; j > 0 && j - symndx < nchain; j++) { in elf_print_gnu_hash() 2393 if (chain[j - symndx] & 1) in elf_print_gnu_hash() 2403 for (j = bucket[i]; j > 0 && j - symndx < nchain; j++) { in elf_print_gnu_hash() 2412 if (chain[j - symndx] & 1) in elf_print_gnu_hash() 2426 PRT("symndx: %u\n", symndx); in elf_print_gnu_hash()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
H A D | ELFTypes.h | 581 Elf_Word symndx; 596 assert(DynamicSymCount >= symndx); 597 return ArrayRef<Elf_Word>(buckets().end(), DynamicSymCount - symndx);
|
H A D | ELF.h | 800 return Table.symndx + 1; in getDynSymtabSizeFromGnuHash()
|
/freebsd/contrib/elftoolchain/libelf/ |
H A D | libelf_convert.m4 | 757 uint32_t n, nbuckets, nchains, maskwords, shift2, symndx, t32; 766 READ_WORD(src, symndx); 774 SWAP_WORD(symndx); 786 gh->gh_symndx = symndx;
|
/freebsd/contrib/elftoolchain/readelf/ |
H A D | readelf.c | 3504 uint32_t nbucket, nchain, symndx, maskwords; in dump_gnu_hash() local 3522 symndx = buf[1]; in dump_gnu_hash() 3530 if (symndx >= (uint32_t)dynsymcount) { in dump_gnu_hash() 3534 nchain = dynsymcount - symndx; in dump_gnu_hash() 3548 for (j = bucket[i]; j > 0 && (uint32_t)j - symndx < nchain; in dump_gnu_hash() 3552 if (chain[j - symndx] & 1) in dump_gnu_hash()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
H A D | ELFDumper.cpp | 2674 if (GnuHashTable->symndx < NumSyms) in getGnuHashTableChains() 2687 "the first hashed symbol index (" + Twine(GnuHashTable->symndx) + in getGnuHashTableChains() 2705 W.printNumber("First Hashed Symbol Index", GnuHashTable->symndx); in printGnuHashTable() 2809 size_t Symndx = GnuHashTable.symndx; in printGnuHashHistogram() 4469 if (SymIndex < GnuHash.symndx) { in printGnuHashTableSymbols() 4474 Twine(GnuHash.symndx) + ")"); in printGnuHashTableSymbols() 4479 if ((Values[SymIndex - GnuHash.symndx] & 1) == 1) in printGnuHashTableSymbols()
|