| /freebsd-11-stable/contrib/elftoolchain/elfcopy/ |
| HD | symbols.c | 208 if (s->st_shndx != SHN_UNDEF && s->st_shndx < SHN_LORESERVE && in is_remove_symbol() 209 ecp->secndx[s->st_shndx] == 0) in is_remove_symbol() 532 if (sym.st_shndx != SHN_UNDEF && in generate_symbols() 538 sym.st_shndx != SHN_UNDEF && in generate_symbols() 543 sym.st_shndx != SHN_UNDEF && in generate_symbols() 579 sym.st_shndx, sym.st_info, sym.st_other, 0); in generate_symbols() 589 sym.st_shndx < SHN_LORESERVE) { in generate_symbols() 590 assert(ecp->secndx[sym.st_shndx] < (uint64_t)ecp->nos); in generate_symbols() 591 BIT_SET(ecp->v_secsym, ecp->secndx[sym.st_shndx]); in generate_symbols() 874 uint64_t st_size, uint16_t st_shndx, unsigned char st_info, in add_to_symtab() argument [all …]
|
| /freebsd-11-stable/contrib/elftoolchain/libelf/ |
| HD | gelf_sym.c | 88 dst->st_shndx = sym32->st_shndx; in gelf_getsym() 148 sym32->st_shndx = gs->st_shndx; in gelf_update_sym()
|
| /freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Object/ |
| HD | ELFTypes.h | 172 Elf_Half st_shndx; // Which section (header table index) it's defined in 181 Elf_Half st_shndx; // Which section (header table index) it's defined in 189 using Elf_Sym_Base<ELFT>::st_shndx; 216 bool isAbsolute() const { return st_shndx == ELF::SHN_ABS; } 219 return getType() == ELF::STT_COMMON || st_shndx == ELF::SHN_COMMON; 225 return st_shndx >= ELF::SHN_LOPROC && st_shndx <= ELF::SHN_HIPROC; 229 return st_shndx >= ELF::SHN_LOOS && st_shndx <= ELF::SHN_HIOS; 235 return st_shndx >= ELF::SHN_LORESERVE; 238 bool isUndefined() const { return st_shndx == ELF::SHN_UNDEF; }
|
| HD | ELFObjectFile.h | 501 if (ESym->st_shndx == ELF::SHN_ABS) in getSymbolValueImpl() 518 switch (ESym->st_shndx) { in getSymbolAddress() 546 if (Sym->st_shndx == ELF::SHN_COMMON) in getSymbolAlignment() 620 if (ESym->st_shndx == ELF::SHN_ABS) in getSymbolFlags() 647 if (ESym->st_shndx == ELF::SHN_UNDEF) in getSymbolFlags() 650 if (ESym->getType() == ELF::STT_COMMON || ESym->st_shndx == ELF::SHN_COMMON) in getSymbolFlags()
|
| /freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/common/ |
| HD | symbol.c | 43 if (sym->st_shndx == SHN_UNDEF || sym->st_name == 0) in ignore_symbol() 58 if (type == STT_OBJECT && sym->st_shndx == SHN_ABS && in ignore_symbol()
|
| /freebsd-11-stable/contrib/binutils/bfd/ |
| HD | elf32-cr16.c | 715 if (isym->st_shndx == sec_shndx in elf32_cr16_relax_delete_bytes() 982 if (isym->st_shndx == SHN_UNDEF) in elf32_cr16_get_relocated_section_contents() 984 else if (isym->st_shndx == SHN_ABS) in elf32_cr16_get_relocated_section_contents() 986 else if (isym->st_shndx == SHN_COMMON) in elf32_cr16_get_relocated_section_contents() 989 isec = bfd_section_from_elf_index (input_bfd, isym->st_shndx); in elf32_cr16_get_relocated_section_contents() 1105 if (isym->st_shndx == SHN_UNDEF) in elf32_cr16_relax_section() 1107 else if (isym->st_shndx == SHN_ABS) in elf32_cr16_relax_section() 1109 else if (isym->st_shndx == SHN_COMMON) in elf32_cr16_relax_section() 1112 sym_sec = bfd_section_from_elf_index (abfd, isym->st_shndx); in elf32_cr16_relax_section() 1384 return bfd_section_from_elf_index (sec->owner, sym->st_shndx); in elf32_cr16_gc_mark_hook()
|
| HD | elfcode.h | 188 dst->st_shndx = H_GET_16 (abfd, src->st_shndx); in elf_swap_symbol_in() 189 if (dst->st_shndx == SHN_XINDEX) in elf_swap_symbol_in() 193 dst->st_shndx = H_GET_32 (abfd, shndx->est_shndx); in elf_swap_symbol_in() 214 tmp = src->st_shndx; in elf_swap_symbol_out() 222 H_PUT_16 (abfd, tmp, dst->st_shndx); in elf_swap_symbol_out() 1213 if (isym->st_shndx == SHN_UNDEF) in elf_slurp_symbol_table() 1217 else if (isym->st_shndx < SHN_LORESERVE in elf_slurp_symbol_table() 1218 || isym->st_shndx > SHN_HIRESERVE) in elf_slurp_symbol_table() 1221 isym->st_shndx); in elf_slurp_symbol_table() 1230 else if (isym->st_shndx == SHN_ABS) in elf_slurp_symbol_table() [all …]
|
| HD | elflink.c | 612 if (entry->isym.st_shndx != SHN_UNDEF in bfd_elf_link_record_local_dynamic_symbol() 613 && (entry->isym.st_shndx < SHN_LORESERVE in bfd_elf_link_record_local_dynamic_symbol() 614 || entry->isym.st_shndx > SHN_HIRESERVE)) in bfd_elf_link_record_local_dynamic_symbol() 618 s = bfd_section_from_elf_index (input_bfd, entry->isym.st_shndx); in bfd_elf_link_record_local_dynamic_symbol() 2877 if (sym->st_shndx == SHN_UNDEF) in is_global_data_symbol_definition() 2887 if (sym->st_shndx >= SHN_LORESERVE && sym->st_shndx < SHN_ABS) in is_global_data_symbol_definition() 3802 if (isym->st_shndx != SHN_UNDEF && !common) in elf_link_add_object_symbols() 3812 if (isym->st_shndx == SHN_UNDEF) in elf_link_add_object_symbols() 3814 else if (isym->st_shndx < SHN_LORESERVE in elf_link_add_object_symbols() 3815 || isym->st_shndx > SHN_HIRESERVE) in elf_link_add_object_symbols() [all …]
|
| HD | elf32-mep.c | 724 && ! ((sym->st_shndx <= 0 || sym->st_shndx >= SHN_LORESERVE) in mep_elf_gc_mark_hook() 725 && sym->st_shndx != SHN_COMMON)) in mep_elf_gc_mark_hook() 726 return bfd_section_from_elf_index (sec->owner, sym->st_shndx); in mep_elf_gc_mark_hook()
|
| HD | elf.c | 444 && isym->st_shndx < elf_numsections (abfd) in bfd_elf_sym_name() 445 && !(isym->st_shndx >= SHN_LORESERVE && isym->st_shndx <= SHN_HIRESERVE)) in bfd_elf_sym_name() 447 iname = elf_elfsections (abfd)[isym->st_shndx]->sh_name; in bfd_elf_sym_name() 2298 if ((isym.st_shndx != SHN_UNDEF && isym.st_shndx < SHN_LORESERVE) in bfd_section_from_r_symndx() 2299 || isym.st_shndx > SHN_HIRESERVE) in bfd_section_from_r_symndx() 2302 s = bfd_section_from_elf_index (abfd, isym.st_shndx); in bfd_section_from_r_symndx() 6223 shndx = isym->internal_elf_sym.st_shndx; in _bfd_elf_copy_private_symbol_data() 6234 osym->internal_elf_sym.st_shndx = shndx; in _bfd_elf_copy_private_symbol_data() 6317 sym.st_shndx = SHN_UNDEF; in swap_out_syms() 6369 sym.st_shndx = _bfd_elf_section_from_bfd_section in swap_out_syms() [all …]
|
| /freebsd-11-stable/contrib/binutils/include/elf/ |
| HD | external.h | 134 unsigned char st_shndx[2]; /* Associated section index */ member 141 unsigned char st_shndx[2]; /* Associated section index */ member
|
| /freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/ |
| HD | ELFHeader.cpp | 315 st_shndx, sectionIndexToCString(st_shndx, section_list), in Dump() 338 if (data.GetU16(offset, &st_shndx, 1) == nullptr) in Parse() 346 if (data.GetU16(offset, &st_shndx, 1) == nullptr) in Parse()
|
| /freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| HD | output.c | 276 if (sym.st_shndx != weak->st_shndx) in check_for_weak() 633 if (sym.st_shndx >= SHN_LORESERVE) in write_file() 636 if ((newscn = secxlate[sym.st_shndx]) != in write_file() 637 sym.st_shndx) { in write_file() 638 sym.st_shndx = in write_file()
|
| /freebsd-11-stable/contrib/elftoolchain/nm/ |
| HD | nm.c | 695 if (sec_table != NULL && sym->st_shndx < sec_table_size) in get_sym_name() 696 sym_name = sec_table[sym->st_shndx]; in get_sym_name() 716 if (sym->st_shndx == SHN_ABS) /* absolute */ in get_sym_type() 719 if (sym->st_shndx == SHN_COMMON) /* common */ in get_sym_type() 724 return (sym->st_shndx == SHN_UNDEF ? 'v' : 'V'); in get_sym_type() 726 return (sym->st_shndx == SHN_UNDEF ? 'w' : 'W'); in get_sym_type() 729 if (sym->st_shndx == SHN_UNDEF) /* undefined */ in get_sym_type() 732 return (is_local == true && type_table[sym->st_shndx] != 'N' ? in get_sym_type() 733 tolower((unsigned char) type_table[sym->st_shndx]) : in get_sym_type() 734 type_table[sym->st_shndx]); in get_sym_type() [all …]
|
| /freebsd-11-stable/lib/libc/gen/ |
| HD | nlist.c | 378 switch (s->st_shndx) { in elf_sym_to_nlist() 388 if (s->st_shndx >= shnum) in elf_sym_to_nlist() 391 Elf_Shdr *sh = shdr + s->st_shndx; in elf_sym_to_nlist()
|
| /freebsd-11-stable/sys/compat/linux/ |
| HD | linux_vdso.c | 209 if (sym->st_shndx == SHN_UNDEF || in __elfN() 210 sym->st_shndx == SHN_ABS) in __elfN()
|
| /freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| HD | dt_module.c | 118 if (is_elf_obj && sym->st_shndx != SHN_UNDEF && in dt_module_syminit32() 119 sym->st_shndx < ehdr.e_shnum) in dt_module_syminit32() 121 dmp->dm_sec_offsets[sym->st_shndx]; in dt_module_syminit32() 167 if (is_elf_obj && sym->st_shndx != SHN_UNDEF && in dt_module_syminit64() 168 sym->st_shndx < ehdr.e_shnum) in dt_module_syminit64() 170 dmp->dm_sec_offsets[sym->st_shndx]; in dt_module_syminit64() 293 dst->st_shndx = src->st_shndx; in dt_module_symgelf32() 1508 symp->st_shndx = SHN_UNDEF; in dtrace_lookup_by_name() 1696 if (symp->st_shndx == SHN_UNDEF && dmp->dm_extern != NULL) { in dtrace_symbol_type()
|
| HD | dt_link.c | 269 sym->st_shndx = SHN_UNDEF; in prepare_elf32() 286 sym->st_shndx = ESHDR_DOF; in prepare_elf32() 453 sym->st_shndx = SHN_UNDEF; in prepare_elf64() 470 sym->st_shndx = ESHDR_DOF; in prepare_elf64() 789 opd_scn = elf_getscn(elf, sym->st_shndx); in dt_symtab_lookup() 794 if ((uses_funcdesc || shn == sym->st_shndx) && in dt_symtab_lookup() 1655 if (rsym.st_shndx != SHN_SUNW_IGNORE) { in process_obj() 1656 rsym.st_shndx = SHN_SUNW_IGNORE; in process_obj()
|
| /freebsd-11-stable/sys/kern/ |
| HD | link_elf_obj.c | 410 if (es->st_shndx != i) in link_elf_link_preload() 916 if (es->st_shndx != i) in link_elf_load_file() 1218 if (symp->st_shndx != SHN_UNDEF && strcmp(name, strp) == 0) { in link_elf_lookup_symbol() 1371 if (sym->st_shndx == SHN_FBSD_CACHED) { in elf_obj_cleanup_globals_cache() 1372 sym->st_shndx = SHN_UNDEF; in elf_obj_cleanup_globals_cache() 1402 if (sym->st_shndx != SHN_UNDEF) { in elf_obj_lookup() 1440 sym->st_shndx = SHN_FBSD_CACHED; in elf_obj_lookup() 1471 if (sym->st_shndx != SHN_UNDEF) in link_elf_fix_link_set() 1497 sym->st_shndx = i; in link_elf_fix_link_set()
|
| /freebsd-11-stable/contrib/gdb/gdb/ |
| HD | mipsread.c | 158 unsigned char st_shndx[2]; /* Associated section index */ member 340 sym_shndx = bfd_h_get_16 (abfd, (bfd_byte *) x_symp->st_shndx); in read_alphacoff_dynamic_symtab()
|
| /freebsd-11-stable/contrib/binutils/binutils/ |
| HD | readelf.c | 1253 if (psym->st_shndx < SHN_LORESERVE) in dump_relocations() 1254 sec_index = psym->st_shndx; in dump_relocations() 1255 else if (psym->st_shndx > SHN_HIRESERVE) in dump_relocations() 1256 sec_index = psym->st_shndx - (SHN_HIRESERVE + 1 in dump_relocations() 1261 else if (psym->st_shndx == SHN_ABS) in dump_relocations() 1263 else if (psym->st_shndx == SHN_COMMON) in dump_relocations() 1266 && psym->st_shndx == SHN_MIPS_SCOMMON) in dump_relocations() 1269 && psym->st_shndx == SHN_MIPS_SUNDEFINED) in dump_relocations() 1272 && psym->st_shndx == SHN_X86_64_LCOMMON) in dump_relocations() 1276 && psym->st_shndx == SHN_IA_64_ANSI_COMMON) in dump_relocations() [all …]
|
| /freebsd-11-stable/libexec/rtld-elf/mips/ |
| HD | reloc.c | 320 broken && sym->st_shndx == SHN_UNDEF) { in reloc_non_plt() 341 sym->st_value != 0 && sym->st_shndx == SHN_UNDEF) { in reloc_non_plt() 365 if (sym->st_shndx != SHN_ABS) { in reloc_non_plt()
|
| /freebsd-11-stable/stand/common/ |
| HD | load_elf_obj.c | 535 if (sym.st_shndx == SHN_UNDEF || sym.st_shndx >= ef->hdr.e_shnum) in __elfN() 537 base = ef->e_shdr[sym.st_shndx].sh_addr; in __elfN()
|
| /freebsd-11-stable/contrib/llvm-project/lld/ELF/ |
| HD | InputFiles.cpp | 1066 if (eSym.st_shndx == SHN_UNDEF) in initializeSymbols() 1078 if (eSym.st_shndx == SHN_UNDEF) { in initializeSymbols() 1085 if (eSym.st_shndx == SHN_COMMON) { in initializeSymbols() 1192 if (0 < sym.st_shndx && sym.st_shndx < sections.size()) in getAlignment() 1193 ret = std::min<uint64_t>(ret, sections[sym.st_shndx].sh_addralign); in getAlignment() 1583 if (eSyms[i].st_shndx != SHN_UNDEF) in parse()
|
| /freebsd-11-stable/usr.sbin/kldxref/ |
| HD | ef_obj.c | 153 if (symp->st_shndx != SHN_UNDEF && strcmp(name, strp) == 0) { in ef_obj_lookup_symbol() 189 if (sym->st_shndx != SHN_UNDEF) in ef_obj_symaddr() 554 if (es->st_shndx != i) in ef_obj_open()
|