/freebsd/usr.bin/gprof/ |
H A D | elf.c | 48 static bool wantsym(const Elf_Sym *, const char *); 65 const Elf_Sym *symtab; in elf_getnfile() 94 symtab = (const Elf_Sym *)(base + sh_symtab->sh_offset); in elf_getnfile() 111 const Elf_Sym *sym = &symtab[i]; in elf_getnfile() 126 wantsym(const Elf_Sym *sym, const char *strtab) in wantsym()
|
/freebsd/libexec/rtld-elf/ |
H A D | rtld.h | 115 const Elf_Sym *sym_out; 116 const Elf_Sym *vsymp; 180 const Elf_Sym *symtab; /* Symbol table */ 311 const Elf_Sym *sym; /* Symbol table entry */ 348 const Elf_Sym *sym_out; 388 extern Elf_Sym sym_zero; /* For resolving undefined weak refs. */ 404 const Elf_Sym *find_symdef(unsigned long, const Obj_Entry *, 414 void *rtld_resolve_ifunc(const Obj_Entry *obj, const Elf_Sym *def);
|
H A D | debug.c | 107 const Elf_Sym *sym; in dump_Elf_Rel() 129 const Elf_Sym *sym; in dump_Elf_Rela()
|
/freebsd/sys/ddb/ |
H A D | db_main.c | 86 Elf_Sym *sym; in X_db_lookup() 92 sym = (Elf_Sym *)symtab->start; in X_db_lookup() 109 Elf_Sym *sym, *match; in X_db_search_symbol() 125 for (sym = (Elf_Sym*)symtab->start; (char*)sym < symtab->end; sym++) { in X_db_search_symbol() 183 ((const Elf_Sym *)sym)->st_name; in X_db_symbol_values() 185 *valp = (db_expr_t)((const Elf_Sym *)sym)->st_value + in X_db_symbol_values()
|
H A D | db_ctf.c | 51 sym_to_objtoff(linker_ctf_t *lc, const Elf_Sym *sym, const Elf_Sym *symtab, in sym_to_objtoff() 52 const Elf_Sym *symtab_end) in sym_to_objtoff() 67 for (const Elf_Sym *symp = symtab; symp < symtab_end; symp++) { in sym_to_objtoff() 274 const Elf_Sym *symtab, *symtab_end; in db_ctf_sym_to_type() 311 sd->sym = __DECONST(Elf_Sym *, lsym); in db_ctf_find_symbol()
|
H A D | db_ctf.h | 42 Elf_Sym *sym;
|
/freebsd/sys/dev/ksyms/ |
H A D | ksyms.c | 131 const Elf_Sym *symtab; in ksyms_size_permod() 138 ts->ts_symsz += syms * sizeof(Elf_Sym); in ksyms_size_permod() 177 #define SYMBLKSZ (256 * sizeof(Elf_Sym)) 189 const Elf_Sym *symtab; in ksyms_add() 190 Elf_Sym *symp; in ksyms_add() 204 symsz = numsyms * sizeof(Elf_Sym); in ksyms_add() 221 symp = (Elf_Sym *) buf; in ksyms_add() 222 nsyms = len / sizeof(Elf_Sym); in ksyms_add() 331 hdr->kh_shdr[SHDR_SYMTAB].sh_info = ts->ts_symsz / sizeof(Elf_Sym); in ksyms_snapshot() 333 hdr->kh_shdr[SHDR_SYMTAB].sh_entsize = sizeof(Elf_Sym); in ksyms_snapshot()
|
/freebsd/sys/kern/ |
H A D | link_elf.c | 92 const Elf_Sym *symtab; /* DT_SYMTAB */ 103 const Elf_Sym *ddbsymtab; /* The symbol table we are using */ 166 static long link_elf_symtab_get(linker_file_t, const Elf_Sym **); 536 Elf_Sym *symtab; in link_elf_preload_parse_symbols() 556 symtab = (Elf_Sym *)base; in link_elf_preload_parse_symbols() 575 ef->ddbsymcnt = symcnt / sizeof(Elf_Sym); in link_elf_preload_parse_symbols() 608 ef->symtab = (Elf_Sym*) (ef->address + dp->d_un.d_ptr); in parse_dynamic() 611 if (dp->d_un.d_val != sizeof(Elf_Sym)) in parse_dynamic() 1316 ef->ddbsymcnt = symcnt / sizeof(Elf_Sym); in link_elf_load_file() 1317 ef->ddbsymtab = (const Elf_Sym *)ef->symbase; in link_elf_load_file() [all …]
|
H A D | link_elf_obj.c | 108 Elf_Sym *ddbsymtab; /* The symbol table we are using */ 152 static long link_elf_symtab_get(linker_file_t, const Elf_Sym **); 348 Elf_Sym *es; in link_elf_link_preload() 473 ef->ddbsymcnt = shdr[symtabindex].sh_size / sizeof(Elf_Sym); in link_elf_link_preload() 474 ef->ddbsymtab = (Elf_Sym *)shdr[symtabindex].sh_addr; in link_elf_link_preload() 720 Elf_Sym *es; in link_elf_load_file() 908 ef->ddbsymcnt = shdr[symtabindex].sh_size / sizeof(Elf_Sym); in link_elf_load_file() 1339 const Elf_Sym *ref; in symbol_name() 1371 const Elf_Sym *sym; in relocate_file1() 1471 const Elf_Sym *symp; in link_elf_lookup_symbol1() [all …]
|
/freebsd/lib/libc/gen/ |
H A D | nlist.c | 88 static void elf_sym_to_nlist(struct nlist *, Elf_Sym *, Elf_Shdr *, int); 129 Elf_Sym sbuf[1024]; in __elf_fdnlist() 130 Elf_Sym *s; in __elf_fdnlist() 261 elf_sym_to_nlist(struct nlist *nl, Elf_Sym *s, Elf_Shdr *shdr, int shnum) in elf_sym_to_nlist()
|
/freebsd/libexec/rtld-elf/aarch64/ |
H A D | reloc.c | 128 const Elf_Sym *srcsym; in do_copy_relocations() 129 const Elf_Sym *dstsym; in do_copy_relocations() 211 const Elf_Sym *def; in reloc_tlsdesc() 252 const Elf_Sym *def, *sym; in reloc_plt() 326 const Elf_Sym *def; in reloc_jmpslots() 414 const Elf_Sym *def; in reloc_gnu_ifunc() 470 const Elf_Sym *def; in reloc_non_plt()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
H A D | ELFObjectFile.h | 315 Expected<section_iterator> getSymbolSection(const Elf_Sym *Symb, 394 bool isExportedToOtherDSO(const Elf_Sym *ESym) const { in isExportedToOtherDSO() 458 Expected<const Elf_Sym *> getSymbol(DataRefImpl Sym) const { in getSymbol() 459 return EF.template getEntry<Elf_Sym>(Sym.d.a, Sym.d.b); in getSymbol() 555 Expected<const Elf_Sym *> SymOrErr = getSymbol(Sym); in getSymbolName() 600 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolValueImpl() 626 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolAddress() 666 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolAlignment() 689 Expected<const Elf_Sym *> SymOrErr = getSymbol(Sym); in getSymbolSize() 702 Expected<const Elf_Sym *> SymOrErr = getSymbol(Symb); in getSymbolBinding() [all …]
|
H A D | ELF.h | 320 Expected<const Elf_Sym *> getRelocationSymbol(const Elf_Rel &Rel, 349 return ArrayRef<Elf_Sym>(nullptr, nullptr); in symbols() 350 return getSectionContentsAsArray<Elf_Sym>(*Sec); in symbols() 481 Expected<uint32_t> getSectionIndex(const Elf_Sym &Sym, Elf_Sym_Range Syms, 483 Expected<const Elf_Shdr *> getSection(const Elf_Sym &Sym, 486 Expected<const Elf_Shdr *> getSection(const Elf_Sym &Sym, 491 Expected<const Elf_Sym *> getSymbol(const Elf_Shdr *Sec, 559 ELFFile<ELFT>::getSectionIndex(const Elf_Sym &Sym, Elf_Sym_Range Syms, in getSectionIndex() 576 ELFFile<ELFT>::getSection(const Elf_Sym &Sym, const Elf_Shdr *SymTab, in getSection() 586 ELFFile<ELFT>::getSection(const Elf_Sym &Sym, Elf_Sym_Range Symbols, in getSection() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/InterfaceStub/ |
H A D | ELFObjHandler.cpp | 102 using Elf_Sym = typename ELFT::Sym; typedef in llvm::ifs::__anon3dc69c9e0111::ELFSymbolTableBuilder 108 Elf_Sym S{}; in add() 117 size_t getSize() const { return Symbols.size() * sizeof(Elf_Sym); } in getSize() 120 memcpy(Buf, Symbols.data(), sizeof(Elf_Sym) * Symbols.size()); in write() 124 llvm::SmallVector<Elf_Sym, 8> Symbols; 175 using Elf_Sym = typename ELFT::Sym; typedef in llvm::ifs::__anon3dc69c9e0111::ELFStubBuilder 314 SymTab.Shdr.sh_entsize = sizeof(Elf_Sym); in fillSymTabShdr() 579 using Elf_Sym = typename ELFT::Sym; in buildStub() typedef 640 Elf_Sym_Range DynSyms = ArrayRef<Elf_Sym>( in buildStub() 641 reinterpret_cast<const Elf_Sym *>(*DynSymPtr), *SymCount); in buildStub()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/cfi/ |
H A D | cfi.cpp | 29 typedef ElfW(Sym) Elf_Sym; typedef 34 #define ElfW64_Sym Elf_Sym 37 #define ElfW32_Sym Elf_Sym 261 for (const Elf_Sym *p = (const Elf_Sym *)symtab; (Elf_Addr)p < strtab; in find_cfi_check_in_dso()
|
/freebsd/libexec/rtld-elf/riscv/ |
H A D | reloc.c | 89 const Elf_Sym *srcsym; in do_copy_relocations() 90 const Elf_Sym *dstsym; in do_copy_relocations() 183 const Elf_Sym *def; in reloc_jmpslots() 275 const Elf_Sym *def; in reloc_gnu_ifunc() 327 const Elf_Sym *def; in reloc_non_plt()
|
/freebsd/libexec/rtld-elf/amd64/ |
H A D | reloc.c | 76 const Elf_Sym *dstsym; in do_copy_relocations() 80 const Elf_Sym *srcsym; in do_copy_relocations() 138 const Elf_Sym *def; in reloc_non_plt() 380 const Elf_Sym *def; in reloc_jmpslots() 486 const Elf_Sym *def; in reloc_gnu_ifunc()
|
/freebsd/libexec/rtld-elf/i386/ |
H A D | reloc.c | 73 const Elf_Sym *dstsym; in do_copy_relocations() 77 const Elf_Sym *srcsym; in do_copy_relocations() 136 const Elf_Sym *def; in reloc_non_plt() 330 const Elf_Sym *def; in reloc_jmpslots() 430 const Elf_Sym *def; in reloc_gnu_ifunc()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
H A D | ELFDumper.cpp | 250 getOtherFlagsFromSymbol(const Elf_Ehdr &Header, const Elf_Sym &Symbol) const; 270 return DynSymRegion->template getAsArrayRef<Elf_Sym>(); in dynamic_symbols() 304 virtual void printSymbol(const Elf_Sym &Symbol, unsigned SymIndex, 326 getVersionTable(const Elf_Shdr &Sec, ArrayRef<Elf_Sym> *SymTab, 375 Expected<StringRef> getSymbolVersion(const Elf_Sym &Sym, 401 std::string getFullSymbolName(const Elf_Sym &Symbol, unsigned SymIndex, 406 getSymbolSectionIndex(const Elf_Sym &Symbol, unsigned SymIndex, 408 Expected<StringRef> getSymbolSectionName(const Elf_Sym &Symbol, 477 ELFDumper<ELFT>::getVersionTable(const Elf_Shdr &Sec, ArrayRef<Elf_Sym> *SymTab, in getVersionTable() 559 llvm::any_of(Syms, [](const Elf_Sym &S) { return S.st_other & ~0x3; }); in printSymbolsHelper() [all …]
|
/freebsd/libexec/rtld-elf/powerpc64/ |
H A D | reloc.c | 84 const Elf_Sym *dstsym; in do_copy_relocations() 88 const Elf_Sym *srcsym = NULL; in do_copy_relocations() 173 const Elf_Sym *def = NULL; in reloc_nonplt_object() 453 const Elf_Sym *def; in reloc_jmpslots() 637 const Elf_Sym *def; in reloc_gnu_ifunc()
|
/freebsd/libexec/rtld-elf/arm/ |
H A D | reloc.c | 40 const Elf_Sym *dstsym; in do_copy_relocations() 44 const Elf_Sym *srcsym; in do_copy_relocations() 139 const Elf_Sym *def; in reloc_nonplt_object() 379 const Elf_Sym *def; in reloc_jmpslots()
|
/freebsd/libexec/rtld-elf/powerpc/ |
H A D | reloc.c | 89 const Elf_Sym *dstsym; in do_copy_relocations() 93 const Elf_Sym *srcsym = NULL; in do_copy_relocations() 178 const Elf_Sym *def = NULL; in reloc_nonplt_object() 492 const Elf_Sym *def; in reloc_jmpslots() 678 const Elf_Sym *def; in reloc_gnu_ifunc()
|
/freebsd/sys/compat/linux/ |
H A D | linux_vdso.c | 106 Elf_Sym *dsym, *sym; in __elfN() 127 dsym = (Elf_Sym *)(base + shdr[i].sh_offset); in __elfN()
|
/freebsd/contrib/llvm-project/lld/ELF/ |
H A D | InputFiles.cpp | 550 using Elf_Sym = typename ELFT::Sym; in init() typedef 572 ArrayRef<Elf_Sym> eSyms = CHECK(obj.symbols(symtabSec), this); in init() 582 uint32_t ObjFile<ELFT>::getSectionIndex(const Elf_Sym &sym) const { in getSectionIndex() 1127 ArrayRef<Elf_Sym> eSyms = this->getELFSyms<ELFT>(); in initializeSymbols() 1141 const Elf_Sym &eSym = eSyms[i]; in initializeSymbols() 1178 const Elf_Sym &eSym = eSyms[i]; in initializeSymbols() 1197 ArrayRef<Elf_Sym> eSyms = this->getELFSyms<ELFT>(); in initSectionsAndLocalSyms() 1199 const Elf_Sym &eSym = eSyms[i]; in initSectionsAndLocalSyms() 1235 ArrayRef<Elf_Sym> eSyms = this->getELFSyms<ELFT>(); in postParse() 1237 const Elf_Sym &eSym = eSyms[i]; in postParse() [all …]
|
/freebsd/stand/common/ |
H A D | load_elf.c | 54 Elf_Sym *symtab; 85 Elf_Sym *sym, unsigned char type); 222 Elf_Sym sym; in is_kernphys_relocatable() 232 Elf_Sym sym; in is_tg_kernel_support() 551 Elf_Sym sym; 887 (Elf_Sym *)(uintptr_t)(dp[i].d_un.d_ptr + off); 1228 __elfN(lookup_symbol)(elf_file_t ef, const char* name, Elf_Sym *symp, 1232 Elf_Sym sym;
|