| /NextBSD/contrib/elftoolchain/elfcopy/ |
| HD | symbols.c | 69 static int is_debug_symbol(unsigned char st_info); 70 static int is_global_symbol(unsigned char st_info); 71 static int is_local_symbol(unsigned char st_info); 76 static int is_weak_symbol(unsigned char st_info); 91 is_debug_symbol(unsigned char st_info) in is_debug_symbol() argument 94 if (GELF_ST_TYPE(st_info) == STT_SECTION || in is_debug_symbol() 95 GELF_ST_TYPE(st_info) == STT_FILE) in is_debug_symbol() 102 is_global_symbol(unsigned char st_info) in is_global_symbol() argument 105 if (GELF_ST_BIND(st_info) == STB_GLOBAL) in is_global_symbol() 112 is_weak_symbol(unsigned char st_info) in is_weak_symbol() argument [all …]
|
| /NextBSD/sys/ddb/ |
| HD | db_main.c | 117 if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT && in X_db_search_symbol() 118 ELF_ST_TYPE(sym->st_info) != STT_FUNC && in X_db_search_symbol() 119 ELF_ST_TYPE(sym->st_info) != STT_NOTYPE) in X_db_search_symbol() 129 else if (ELF_ST_BIND(match->st_info) == STB_LOCAL && in X_db_search_symbol() 130 ELF_ST_BIND(sym->st_info) != STB_LOCAL) in X_db_search_symbol() 135 ELF_ST_TYPE(sym->st_info) == STT_FUNC && in X_db_search_symbol() 136 ELF_ST_BIND(sym->st_info) != STB_LOCAL) in X_db_search_symbol() 139 ELF_ST_BIND(sym->st_info) != STB_LOCAL) in X_db_search_symbol()
|
| /NextBSD/contrib/libexecinfo/ |
| HD | symtab.c | 56 uintptr_t st_info; member 131 (unsigned)bind != ELF_ST_BIND(sym.st_info)) in symtab_create() 135 (unsigned)type != ELF_ST_TYPE(sym.st_info)) in symtab_create() 139 s->st_info = sym.st_info; in symtab_create()
|
| /NextBSD/contrib/elftoolchain/libelf/ |
| HD | gelf_sym.c | 86 dst->st_info = sym32->st_info; in gelf_getsym() 146 sym32->st_info = gs->st_info; in gelf_update_sym()
|
| /NextBSD/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| HD | 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()
|
| /NextBSD/contrib/llvm/tools/lldb/source/Plugins/ObjectFile/ELF/ |
| HD | ELFHeader.h | 230 unsigned char st_info; ///< Symbol type and binding attributes. member 237 unsigned char getBinding() const { return st_info >> 4; } in getBinding() 240 unsigned char getType() const { return st_info & 0x0F; } in getType() 244 st_info = (binding << 4) + (type & 0x0F); in setBindingAndType()
|
| HD | ELFHeader.cpp | 325 st_info, in Dump() 351 if (data.GetU8(offset, &st_info, 2) == NULL) in Parse() 361 if (data.GetU8(offset, &st_info, 2) == NULL) in Parse()
|
| /NextBSD/contrib/binutils/bfd/ |
| HD | elf-vxworks.c | 69 sym->st_info = ELF_ST_INFO (STB_WEAK, ELF_ST_TYPE (sym->st_info)); in elf_vxworks_add_symbol_hook() 141 sym->st_info = ELF_ST_INFO (STB_GLOBAL, ELF_ST_TYPE (sym->st_info)); in elf_vxworks_link_output_symbol_hook()
|
| HD | elf64-sparc.c | 426 if (ELF_ST_TYPE (sym->st_info) == STT_REGISTER) in elf64_sparc_add_symbol_hook() 495 p->bind = ELF_ST_BIND (sym->st_info); in elf64_sparc_add_symbol_hook() 502 && ELF_ST_BIND (sym->st_info) == STB_GLOBAL) in elf64_sparc_add_symbol_hook() 521 unsigned char type = ELF_ST_TYPE (sym->st_info); in elf64_sparc_add_symbol_hook() 585 sym.st_info = ELF_ST_INFO (app_regs [reg].bind, STT_REGISTER); in elf64_sparc_output_arch_syms() 600 if (ELF_ST_TYPE (elf_sym->st_info) == STT_REGISTER) in elf64_sparc_get_symbol_type() 615 if (elfsym->internal_elf_sym.st_info in elf64_sparc_symbol_processing() 740 if (ELF_ST_TYPE (((elf_symbol_type *) symbol)->internal_elf_sym.st_info) in elf64_sparc_print_symbol_all()
|
| HD | elflink.c | 453 && ELF_ST_TYPE (sym->st_info) == STT_OBJECT))) in bfd_elf_link_mark_dynamic_symbol() 655 entry->isym.st_info in bfd_elf_link_record_local_dynamic_symbol() 656 = ELF_ST_INFO (STB_LOCAL, ELF_ST_TYPE (entry->isym.st_info)); in bfd_elf_link_record_local_dynamic_symbol() 857 bind = ELF_ST_BIND (sym->st_info); in _bfd_elf_merge_symbol() 861 if (ELF_ST_TYPE (sym->st_info) == STT_TLS in _bfd_elf_merge_symbol() 980 && ELF_ST_TYPE (sym->st_info) != h->type in _bfd_elf_merge_symbol() 981 && ELF_ST_TYPE (sym->st_info) != STT_NOTYPE in _bfd_elf_merge_symbol() 983 && !(bed->is_function_type (ELF_ST_TYPE (sym->st_info)) in _bfd_elf_merge_symbol() 992 if ((ELF_ST_TYPE (sym->st_info) == STT_TLS || h->type == STT_TLS) in _bfd_elf_merge_symbol() 993 && ELF_ST_TYPE (sym->st_info) != h->type in _bfd_elf_merge_symbol() [all …]
|
| /NextBSD/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| HD | dt_module.c | 103 uchar_t type = ELF32_ST_TYPE(sym->st_info); in dt_module_syminit32() 112 (ELF32_ST_BIND(sym->st_info) != STB_LOCAL || sym->st_size)) { in dt_module_syminit32() 153 uchar_t type = ELF64_ST_TYPE(sym->st_info); in dt_module_syminit64() 162 (ELF64_ST_BIND(sym->st_info) != STB_LOCAL || sym->st_size)) { in dt_module_syminit64() 196 if ((ELF32_ST_TYPE(lhs->st_info) == STT_NOTYPE) != in dt_module_symcomp32() 197 (ELF32_ST_TYPE(rhs->st_info) == STT_NOTYPE)) in dt_module_symcomp32() 198 return (ELF32_ST_TYPE(lhs->st_info) == STT_NOTYPE ? 1 : -1); in dt_module_symcomp32() 200 if ((ELF32_ST_BIND(lhs->st_info) == STB_WEAK) != in dt_module_symcomp32() 201 (ELF32_ST_BIND(rhs->st_info) == STB_WEAK)) in dt_module_symcomp32() 202 return (ELF32_ST_BIND(lhs->st_info) == STB_WEAK ? 1 : -1); in dt_module_symcomp32() [all …]
|
| HD | dt_link.c | 269 sym->st_info = ELF32_ST_INFO(STB_GLOBAL, STT_FUNC); in prepare_elf32() 286 sym->st_info = ELF32_ST_INFO(STB_GLOBAL, STT_OBJECT); in prepare_elf32() 465 sym->st_info = GELF_ST_INFO(STB_GLOBAL, STT_FUNC); in prepare_elf64() 482 sym->st_info = GELF_ST_INFO(STB_GLOBAL, STT_OBJECT); in prepare_elf64() 805 if (GELF_ST_TYPE(sym->st_info) == STT_FUNC) { in dt_symtab_lookup() 816 if (GELF_ST_BIND(sym->st_info) == STB_GLOBAL) in dt_symtab_lookup() 1413 if (GELF_ST_BIND(fsym.st_info) != STB_LOCAL) in process_obj() 1427 if (GELF_ST_TYPE(fsym.st_info) != STT_FUNC) { in process_obj() 1576 assert(GELF_ST_TYPE(fsym.st_info) == STT_FUNC); in process_obj() 1590 if (GELF_ST_BIND(fsym.st_info) == STB_LOCAL) { in process_obj() [all …]
|
| /NextBSD/contrib/llvm/include/llvm/Support/ |
| HD | ELF.h | 765 unsigned char st_info; // Symbol's type and binding attributes member 771 unsigned char getBinding() const { return st_info >> 4; } in getBinding() 772 unsigned char getType() const { return st_info & 0x0f; } in getType() 776 st_info = (b << 4) + (t & 0x0f); in setBindingAndType() 783 unsigned char st_info; // Symbol's type and binding attributes member 791 unsigned char getBinding() const { return st_info >> 4; } in getBinding() 792 unsigned char getType() const { return st_info & 0x0f; } in getType() 796 st_info = (b << 4) + (t & 0x0f); in setBindingAndType()
|
| /NextBSD/lib/libproc/ |
| HD | proc_sym.c | 593 if (GELF_ST_BIND(sym.st_info) == STB_LOCAL && in proc_iter_symbyaddr() 596 if (GELF_ST_BIND(sym.st_info) == STB_GLOBAL && in proc_iter_symbyaddr() 599 if (GELF_ST_BIND(sym.st_info) == STB_WEAK && in proc_iter_symbyaddr() 602 if (GELF_ST_TYPE(sym.st_info) == STT_NOTYPE && in proc_iter_symbyaddr() 605 if (GELF_ST_TYPE(sym.st_info) == STT_OBJECT && in proc_iter_symbyaddr() 608 if (GELF_ST_TYPE(sym.st_info) == STT_FUNC && in proc_iter_symbyaddr() 611 if (GELF_ST_TYPE(sym.st_info) == STT_SECTION && in proc_iter_symbyaddr() 614 if (GELF_ST_TYPE(sym.st_info) == STT_FILE && in proc_iter_symbyaddr()
|
| /NextBSD/cddl/contrib/opensolaris/common/ctf/ |
| HD | ctf_lookup.c | 192 if (ELF32_ST_TYPE(symp->st_info) != STT_OBJECT) in ctf_lookup_by_symbol() 196 if (ELF64_ST_TYPE(symp->st_info) != STT_OBJECT) in ctf_lookup_by_symbol() 255 if (ELF32_ST_TYPE(symp->st_info) != STT_FUNC) in ctf_func_info() 259 if (ELF64_ST_TYPE(symp->st_info) != STT_FUNC) in ctf_func_info()
|
| /NextBSD/libexec/rtld-elf/mips/ |
| HD | reloc.c | 216 assert(ELF_ST_BIND(sym->st_info) == STB_LOCAL); in _rtld_relocate_nonplt_self() 286 if (sym[i].st_info == ELF_ST_INFO(STB_LOCAL, STT_NOTYPE)) in reloc_non_plt() 311 if (ELF_ST_TYPE(sym->st_info) == STT_FUNC && in reloc_non_plt() 332 if (ELF_ST_TYPE(sym->st_info) == STT_FUNC && in reloc_non_plt() 355 } else if (sym->st_info == ELF_ST_INFO(STB_GLOBAL, STT_SECTION)) { in reloc_non_plt() 437 if (def->st_info == in reloc_non_plt()
|
| /NextBSD/contrib/llvm/include/llvm/Object/ |
| HD | ELFTypes.h | 146 unsigned char st_info; // Symbol's type and binding attributes 155 unsigned char st_info; // Symbol's type and binding attributes 164 using Elf_Sym_Base<ELFT>::st_info; 171 unsigned char getBinding() const { return st_info >> 4; } 172 unsigned char getType() const { return st_info & 0x0f; } 177 st_info = (b << 4) + (t & 0x0f);
|
| /NextBSD/contrib/binutils/include/elf/ |
| HD | external.h | 132 unsigned char st_info[1]; /* Type and binding attributes */ member 139 unsigned char st_info[1]; /* Type and binding attributes */ member
|
| /NextBSD/usr.bin/gprof/ |
| HD | elf.c | 135 type = ELF_ST_TYPE(sym->st_info); in wantsym() 136 bind = ELF_ST_BIND(sym->st_info); in wantsym()
|
| /NextBSD/lib/libc/gen/ |
| HD | nlist.c | 384 nl->n_type = ELF_ST_TYPE(s->st_info) == STT_FILE ? in elf_sym_to_nlist() 400 if (ELF_ST_BIND(s->st_info) == STB_GLOBAL || in elf_sym_to_nlist() 401 ELF_ST_BIND(s->st_info) == STB_WEAK) in elf_sym_to_nlist()
|
| /NextBSD/libexec/rtld-elf/amd64/ |
| HD | reloc.c | 175 if (ELF_ST_TYPE(def->st_info) == STT_GNU_IFUNC) { in reloc_non_plt() 367 if (ELF_ST_TYPE(def->st_info) == STT_GNU_IFUNC) { in reloc_jmpslots() 439 if (ELF_ST_TYPE(def->st_info) != STT_GNU_IFUNC) in reloc_gnu_ifunc()
|
| /NextBSD/libexec/rtld-elf/i386/ |
| HD | reloc.c | 160 if (ELF_ST_TYPE(def->st_info) == STT_GNU_IFUNC) { in reloc_non_plt() 324 if (ELF_ST_TYPE(def->st_info) == STT_GNU_IFUNC) { in reloc_jmpslots() 392 if (ELF_ST_TYPE(def->st_info) != STT_GNU_IFUNC) in reloc_gnu_ifunc()
|
| /NextBSD/libexec/rtld-elf/ |
| HD | rtld.c | 578 sym_zero.st_info = ELF_ST_INFO(STB_GLOBAL, STT_NOTYPE); in _rtld() 741 if (ELF_ST_TYPE(def->st_info) == STT_GNU_IFUNC) in _rtld_bind() 1612 if (ELF_ST_BIND(ref->st_info) != STB_LOCAL) { in find_symdef() 1613 if (ELF_ST_TYPE(ref->st_info) == STT_SECTION) { in find_symdef() 1635 if (def == NULL && ELF_ST_BIND(ref->st_info) == STB_WEAK) { in find_symdef() 3202 ELF_ST_BIND(req.sym_out->st_info) != STB_WEAK) { in do_dlsym() 3205 if (ELF_ST_BIND(def->st_info) != STB_WEAK) in do_dlsym() 3215 if (def == NULL || ELF_ST_BIND(def->st_info) == STB_WEAK) { in do_dlsym() 3250 if (def == NULL || ELF_ST_BIND(def->st_info) == STB_WEAK) { in do_dlsym() 3276 if (ELF_ST_TYPE(def->st_info) == STT_FUNC) in do_dlsym() [all …]
|
| /NextBSD/cddl/contrib/opensolaris/tools/ctf/common/ |
| HD | symbol.c | 37 uchar_t type = GELF_ST_TYPE(sym->st_info); in ignore_symbol()
|
| /NextBSD/contrib/elftoolchain/nm/ |
| HD | nm.c | 692 if (GELF_ST_TYPE(sym->st_info) == STT_SECTION) { in get_sym_name() 712 is_local = sym->st_info >> 4 == STB_LOCAL; in get_sym_type() 720 if ((sym->st_info) >> 4 == STB_WEAK) { /* weak */ in get_sym_type() 721 if ((sym->st_info & 0xf) == STT_OBJECT) in get_sym_type() 1547 if ((ep->sym->st_info & 0xf) == STT_FUNC && func_info != NULL) { in print_lineno() 1560 if ((ep->sym->st_info & 0xf) == STT_OBJECT && var_info != NULL) { in print_lineno() 1691 switch (sym->st_info & 0xf) { in sym_elem_print_all_sysv() 1764 info = sym->st_info >> 4; in sym_elem_global_static() 1780 if (sym->st_value == 0 && (sym->st_info & 0xf) == STT_FILE) in sym_elem_nondebug()
|