/freebsd/contrib/elftoolchain/elfcopy/ |
H A D | symbols.c | 76 static int is_debug_symbol(unsigned char st_info); 77 static int is_global_symbol(unsigned char st_info); 78 static int is_local_symbol(unsigned char st_info); 83 static int is_weak_symbol(unsigned char st_info); 97 is_debug_symbol(unsigned char st_info) in is_debug_symbol() argument 100 if (GELF_ST_TYPE(st_info) == STT_SECTION || in is_debug_symbol() 101 GELF_ST_TYPE(st_info) == STT_FILE) in is_debug_symbol() 108 is_global_symbol(unsigned char st_info) in is_global_symbol() argument 111 if (GELF_ST_BIND(st_info) == STB_GLOBAL || in is_global_symbol() 112 GELF_ST_BIND(st_info) == STB_GNU_UNIQUE) in is_global_symbol() [all …]
|
/freebsd/sys/ddb/ |
H A D | db_main.c | 130 if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT && in X_db_search_symbol() 131 ELF_ST_TYPE(sym->st_info) != STT_FUNC && in X_db_search_symbol() 132 ELF_ST_TYPE(sym->st_info) != STT_NOTYPE) in X_db_search_symbol() 142 else if (ELF_ST_BIND(match->st_info) == STB_LOCAL && in X_db_search_symbol() 143 ELF_ST_BIND(sym->st_info) != STB_LOCAL) in X_db_search_symbol() 148 ELF_ST_TYPE(sym->st_info) == STT_FUNC && in X_db_search_symbol() 149 ELF_ST_BIND(sym->st_info) != STB_LOCAL) in X_db_search_symbol() 152 ELF_ST_BIND(sym->st_info) != STB_LOCAL) in X_db_search_symbol()
|
H A D | db_ctf.c | 59 if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT) { in sym_to_objtoff() 81 if (ELF_ST_TYPE(symp->st_info) != STT_OBJECT) { in sym_to_objtoff()
|
/freebsd/contrib/libexecinfo/ |
H A D | symtab.c | 56 uintptr_t st_info; member 142 (uintmax_t)sym.st_value, ELF_ST_BIND(sym.st_info), in symtab_create() 143 ELF_ST_TYPE(sym.st_info)); in symtab_create() 147 (unsigned)bind != ELF_ST_BIND(sym.st_info)) in symtab_create() 151 (unsigned)type != ELF_ST_TYPE(sym.st_info)) in symtab_create() 155 s->st_info = sym.st_info; in symtab_create()
|
/freebsd/contrib/elftoolchain/libelf/ |
H A D | gelf_sym.c | 86 dst->st_info = sym32->st_info; in gelf_getsym() 146 sym32->st_info = gs->st_info; in gelf_update_sym()
|
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | output.c | 248 tmpsym.st_info = 0; in check_for_weak() 251 if (GELF_ST_BIND(weak->st_info) != STB_WEAK) in check_for_weak() 261 type = GELF_ST_TYPE(sym.st_info); in check_for_weak() 266 if (GELF_ST_TYPE(weak->st_info) != type || in check_for_weak() 273 if (GELF_ST_BIND(sym.st_info) == STB_WEAK) in check_for_weak() 279 if (GELF_ST_BIND(sym.st_info) == STB_LOCAL && in check_for_weak() 313 uchar_t type = GELF_ST_TYPE(sym->st_info); in copy_from_strong() 375 match.iim_bind = GELF_ST_BIND(sym.st_info); in sort_iidescs() 377 switch (GELF_ST_TYPE(sym.st_info)) { in sort_iidescs() 414 smatch.iim_bind = GELF_ST_BIND(ssym.st_info); in sort_iidescs()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/ |
H A D | ELFHeader.h | 228 unsigned char st_info; ///< Symbol type and binding attributes. member 235 unsigned char getBinding() const { return st_info >> 4; } in getBinding() 238 unsigned char getType() const { return st_info & 0x0F; } in getType() 242 st_info = (binding << 4) + (type & 0x0F); in setBindingAndType()
|
H A D | ELFHeader.cpp | 319 idx, st_value, st_size, st_name, st_info, in Dump() 340 if (data.GetU8(offset, &st_info, 2) == nullptr) in Parse() 348 if (data.GetU8(offset, &st_info, 2) == nullptr) in Parse()
|
/freebsd/lib/libproc/ |
H A D | proc_sym.c | 124 bind1 = GELF_ST_BIND(sym1.st_info); in symvalcmp() 125 bind2 = GELF_ST_BIND(sym2.st_info); in symvalcmp() 683 if (GELF_ST_BIND(sym.st_info) == STB_LOCAL && in proc_iter_symbyaddr() 686 if (GELF_ST_BIND(sym.st_info) == STB_GLOBAL && in proc_iter_symbyaddr() 689 if (GELF_ST_BIND(sym.st_info) == STB_WEAK && in proc_iter_symbyaddr() 692 if (GELF_ST_TYPE(sym.st_info) == STT_NOTYPE && in proc_iter_symbyaddr() 695 if (GELF_ST_TYPE(sym.st_info) == STT_OBJECT && in proc_iter_symbyaddr() 698 if (GELF_ST_TYPE(sym.st_info) == STT_FUNC && in proc_iter_symbyaddr() 701 if (GELF_ST_TYPE(sym.st_info) == STT_SECTION && in proc_iter_symbyaddr() 704 if (GELF_ST_TYPE(sym.st_info) == STT_FILE && in proc_iter_symbyaddr()
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_module.c | 104 uchar_t type = ELF32_ST_TYPE(sym->st_info); in dt_module_syminit32() 113 (ELF32_ST_BIND(sym->st_info) != STB_LOCAL || sym->st_size)) { in dt_module_syminit32() 154 uchar_t type = ELF64_ST_TYPE(sym->st_info); in dt_module_syminit64() 163 (ELF64_ST_BIND(sym->st_info) != STB_LOCAL || sym->st_size)) { in dt_module_syminit64() 197 if ((ELF32_ST_TYPE(lhs->st_info) == STT_NOTYPE) != in dt_module_symcomp32() 198 (ELF32_ST_TYPE(rhs->st_info) == STT_NOTYPE)) in dt_module_symcomp32() 199 return (ELF32_ST_TYPE(lhs->st_info) == STT_NOTYPE ? 1 : -1); in dt_module_symcomp32() 201 if ((ELF32_ST_BIND(lhs->st_info) == STB_WEAK) != in dt_module_symcomp32() 202 (ELF32_ST_BIND(rhs->st_info) == STB_WEAK)) in dt_module_symcomp32() 203 return (ELF32_ST_BIND(lhs->st_info) in dt_module_symcomp32() [all...] |
H A D | dt_link.c | 238 sym->st_info = ELF32_ST_INFO(STB_GLOBAL, STT_FUNC); in prepare_elf32() 255 sym->st_info = ELF32_ST_INFO(STB_GLOBAL, STT_OBJECT); in prepare_elf32() 421 sym->st_info = GELF_ST_INFO(STB_GLOBAL, STT_FUNC); in prepare_elf64() 438 sym->st_info = GELF_ST_INFO(STB_GLOBAL, STT_OBJECT); in prepare_elf64() 779 if (GELF_ST_TYPE(sym->st_info) == STT_FUNC) { in dt_symtab_lookup() 1409 if (GELF_ST_TYPE(fsym.st_info) != STT_FUNC) { in process_obj() 1418 if (GELF_ST_BIND(fsym.st_info) == STB_WEAK) { in process_obj() 1429 if (GELF_ST_BIND(fsym.st_info) == STB_WEAK) { in process_obj() 1585 bind = GELF_ST_BIND(fsym.st_info) == STB_WEAK ? in process_obj() 1600 dsym.st_info = GELF_ST_INFO(bind, in process_obj() [all …]
|
/freebsd/cddl/contrib/opensolaris/common/ctf/ |
H A D | ctf_lookup.c | 195 if (ELF32_ST_TYPE(symp->st_info) != STT_OBJECT) in ctf_lookup_by_symbol() 199 if (ELF64_ST_TYPE(symp->st_info) != STT_OBJECT) in ctf_lookup_by_symbol() 264 if (ELF32_ST_TYPE(symp->st_info) != STT_FUNC) in ctf_func_info() 268 if (ELF64_ST_TYPE(symp->st_info) != STT_FUNC) in ctf_func_info()
|
/freebsd/sys/kern/ |
H A D | link_elf_obj.c | 1395 if (ELF_ST_BIND(sym->st_info) == STB_LOCAL) in relocate_file1() 1397 if ((ELF_ST_TYPE(sym->st_info) == STT_GNU_IFUNC || in relocate_file1() 1430 if (ELF_ST_BIND(sym->st_info) == STB_LOCAL) in relocate_file1() 1432 if ((ELF_ST_TYPE(sym->st_info) == STT_GNU_IFUNC || in relocate_file1() 1479 ELF_ST_BIND(symp->st_info) == STB_GLOBAL) { in link_elf_lookup_symbol1() 1525 if (!see_local && ELF_ST_BIND(es->st_info) == STB_LOCAL) in link_elf_symbol_values1() 1529 if (ELF_ST_TYPE(es->st_info) == STT_GNU_IFUNC) in link_elf_symbol_values1() 1631 (ELF_ST_TYPE(symp->st_info) == STT_FUNC || in link_elf_each_function_name() 1632 ELF_ST_TYPE(symp->st_info) == STT_GNU_IFUNC)) { in link_elf_each_function_name() 1653 (ELF_ST_TYPE(symp->st_info) == STT_FUNC || in link_elf_each_function_nameval() [all …]
|
H A D | link_elf.c | 1440 return (ELF_ST_TYPE(ref->st_info)); in symbol_type() 1549 (ELF_ST_TYPE(symp->st_info) == STT_FUNC || in link_elf_lookup_symbol1() 1550 ELF_ST_TYPE(symp->st_info) == STT_GNU_IFUNC))) { in link_elf_lookup_symbol1() 1552 ELF_ST_BIND(symp->st_info) != STB_LOCAL) { in link_elf_lookup_symbol1() 1591 (ELF_ST_TYPE(symp->st_info) == STT_FUNC || in link_elf_lookup_debug_symbol() 1592 ELF_ST_TYPE(symp->st_info) == STT_GNU_IFUNC))) { in link_elf_lookup_debug_symbol() 1617 (ELF_ST_TYPE(symp->st_info) == STT_FUNC || in link_elf_lookup_debug_symbol_ctf() 1618 ELF_ST_TYPE(symp->st_info) == in link_elf_lookup_debug_symbol_ctf() 1642 if (!see_local && ELF_ST_BIND(es->st_info) == STB_LOCAL) in link_elf_symbol_values1() 1646 if (ELF_ST_TYPE(es->st_info) == STT_GNU_IFUNC) in link_elf_symbol_values1() [all …]
|
/freebsd/lib/libc/gen/ |
H A D | nlist.c | 271 nl->n_type = ELF_ST_TYPE(s->st_info) == STT_FILE ? in elf_sym_to_nlist() 287 if (ELF_ST_BIND(s->st_info) == STB_GLOBAL || in elf_sym_to_nlist() 288 ELF_ST_BIND(s->st_info) == STB_WEAK) in elf_sym_to_nlist()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
H A D | ELF.h | 1275 unsigned char st_info; // Symbol's type and binding attributes member 1281 unsigned char getBinding() const { return st_info >> 4; } in getBinding() 1282 unsigned char getType() const { return st_info & 0x0f; } in getType() 1286 st_info = (b << 4) + (t & 0x0f); in setBindingAndType() 1293 unsigned char st_info; // Symbol's type and binding attributes member 1301 unsigned char getBinding() const { return st_info >> 4; } in getBinding() 1302 unsigned char getType() const { return st_info & 0x0f; } in getType() 1306 st_info = (b << 4) + (t & 0x0f); in setBindingAndType()
|
/freebsd/usr.bin/gprof/ |
H A D | elf.c | 131 type = ELF_ST_TYPE(sym->st_info); in wantsym() 132 bind = ELF_ST_BIND(sym->st_info); in wantsym()
|
/freebsd/libexec/rtld-elf/aarch64/ |
H A D | reloc.c | 285 if (ELF_ST_TYPE(def->st_info) == STT_GNU_IFUNC){ in reloc_plt() 343 if (ELF_ST_TYPE(def->st_info) == STT_GNU_IFUNC) { in reloc_jmpslots() 427 if (ELF_ST_TYPE(def->st_info) != STT_GNU_IFUNC) in reloc_gnu_ifunc() 510 if (ELF_ST_TYPE(def->st_info) == STT_GNU_IFUNC) { in reloc_non_plt()
|
/freebsd/cddl/contrib/opensolaris/tools/ctf/common/ |
H A D | symbol.c | 37 uchar_t type = GELF_ST_TYPE(sym->st_info); in ignore_symbol()
|
/freebsd/libexec/rtld-elf/riscv/ |
H A D | reloc.c | 200 if (ELF_ST_TYPE(def->st_info) == STT_GNU_IFUNC) { in reloc_jmpslots() 289 if (ELF_ST_TYPE(def->st_info) != STT_GNU_IFUNC) in reloc_gnu_ifunc() 365 if (ELF_ST_TYPE(def->st_info) == STT_GNU_IFUNC) { in reloc_non_plt()
|
/freebsd/libexec/rtld-elf/amd64/ |
H A D | reloc.c | 188 if (ELF_ST_TYPE(def->st_info) == STT_GNU_IFUNC) { in reloc_non_plt() 390 if (ELF_ST_TYPE(def->st_info) == STT_GNU_IFUNC) { in reloc_jmpslots() 496 if (ELF_ST_TYPE(def->st_info) != STT_GNU_IFUNC) in reloc_gnu_ifunc()
|
/freebsd/libexec/rtld-elf/i386/ |
H A D | reloc.c | 171 if (ELF_ST_TYPE(def->st_info) == STT_GNU_IFUNC) { in reloc_non_plt() 340 if (ELF_ST_TYPE(def->st_info) == STT_GNU_IFUNC) { in reloc_jmpslots() 440 if (ELF_ST_TYPE(def->st_info) != STT_GNU_IFUNC) in reloc_gnu_ifunc()
|
/freebsd/contrib/elftoolchain/nm/ |
H A D | nm.c | 731 if (GELF_ST_TYPE(sym->st_info) == STT_SECTION) { in get_sym_name() 751 is_local = sym->st_info >> 4 == STB_LOCAL; in get_sym_type() 759 if ((sym->st_info) >> 4 == STB_WEAK) { /* weak */ in get_sym_type() 760 if ((sym->st_info & 0xf) == STT_OBJECT) in get_sym_type() 1590 if ((ep->sym->st_info & 0xf) == STT_FUNC && func_info != NULL) { in print_lineno() 1603 if ((ep->sym->st_info & 0xf) == STT_OBJECT && var_info != NULL) { in print_lineno() 1734 switch (sym->st_info & 0xf) { in sym_elem_print_all_sysv() 1807 info = sym->st_info >> 4; in sym_elem_global_static() 1823 if (sym->st_value == 0 && (sym->st_info & 0xf) == STT_FILE) in sym_elem_nondebug()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
H A D | ELFTypes.h | 202 unsigned char st_info; // Symbol's type and binding attributes 211 unsigned char st_info; // Symbol's type and binding attributes 220 using Elf_Sym_Base<ELFT>::st_info; 227 unsigned char getBinding() const { return st_info >> 4; } 228 unsigned char getType() const { return st_info & 0x0f; } 234 st_info = (b << 4) + (t & 0x0f);
|
/freebsd/libexec/rtld-elf/ |
H A D | rtld.c | 851 sym_zero.st_info = ELF_ST_INFO(STB_GLOBAL, STT_NOTYPE); in _rtld() 1056 if (ELF_ST_TYPE(def->st_info) == STT_GNU_IFUNC) in _rtld_bind() 2019 if (ELF_ST_BIND(ref->st_info) != STB_LOCAL) { in find_symdef() 2020 if (ELF_ST_TYPE(ref->st_info) == STT_SECTION) { in find_symdef() 2042 if (def == NULL && ELF_ST_BIND(ref->st_info) == STB_WEAK) { in find_symdef() 3981 req.sym_out->st_info) != in do_dlsym() 3986 ELF_ST_BIND(def->st_info) != in do_dlsym() 4001 ELF_ST_BIND(def->st_info) == STB_WEAK) { in do_dlsym() 4039 ELF_ST_BIND(def->st_info) == STB_WEAK) { in do_dlsym() 4064 if (ELF_ST_TYPE(def->st_info) == STT_FUNC) in do_dlsym() [all …]
|