Home
last modified time | relevance | path

Searched refs:st_shndx (Results 1 – 25 of 59) sorted by relevance

123

/freebsd/contrib/elftoolchain/elfcopy/
H A Dsymbols.c208 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/contrib/elftoolchain/libelf/
H A Dgelf_sym.c88 dst->st_shndx = sym32->st_shndx; in gelf_getsym()
148 sym32->st_shndx = gs->st_shndx; in gelf_update_sym()
H A Delf_types.m4227 `st_shndx, HALF',
234 `st_shndx, HALF',
/freebsd/cddl/contrib/opensolaris/tools/ctf/common/
H A Dsymbol.c43 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/contrib/llvm-project/llvm/include/llvm/Object/
H A DELFTypes.h204 Elf_Half st_shndx; // Which section (header table index) it's defined in
213 Elf_Half st_shndx; // Which section (header table index) it's defined in
221 using Elf_Sym_Base<ELFT>::st_shndx;
248 bool isAbsolute() const { return st_shndx == ELF::SHN_ABS; }
251 return getType() == ELF::STT_COMMON || st_shndx == ELF::SHN_COMMON;
257 return st_shndx >= ELF::SHN_LOPROC && st_shndx <= ELF::SHN_HIPROC;
261 return st_shndx >= ELF::SHN_LOOS && st_shndx <= ELF::SHN_HIOS;
267 return st_shndx >= ELF::SHN_LORESERVE;
270 bool isUndefined() const { return st_shndx == ELF::SHN_UNDEF; }
H A DELFObjectFile.h605 if ((*SymOrErr)->st_shndx == ELF::SHN_ABS) in getSymbolValueImpl()
630 switch ((*SymOrErr)->st_shndx) { in getSymbolAddress()
669 if ((*SymOrErr)->st_shndx == ELF::SHN_COMMON) in getSymbolAlignment()
764 if (ESym->st_shndx == ELF::SHN_ABS) in getSymbolFlags()
831 if (ESym->st_shndx == ELF::SHN_UNDEF) in getSymbolFlags()
834 if (ESym->getType() == ELF::STT_COMMON || ESym->st_shndx == ELF::SHN_COMMON) in getSymbolFlags()
/freebsd/lib/libc/gen/
H A Dnlist.c265 switch (s->st_shndx) { in elf_sym_to_nlist()
275 if (s->st_shndx >= shnum) in elf_sym_to_nlist()
278 Elf_Shdr *sh = shdr + s->st_shndx; in elf_sym_to_nlist()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.cpp321 st_shndx, sectionIndexToCString(st_shndx, section_list), in Dump()
344 if (data.GetU16(offset, &st_shndx, 1) == nullptr) in Parse()
352 if (data.GetU16(offset, &st_shndx, 1) == nullptr) in Parse()
H A DELFHeader.h230 elf_half st_shndx; ///< Section to which this symbol applies. member
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Doutput.c276 if (sym.st_shndx != weak->st_shndx) in check_for_weak()
631 if (sym.st_shndx >= SHN_LORESERVE) in write_file()
634 if ((newscn = secxlate[sym.st_shndx]) != in write_file()
635 sym.st_shndx) { in write_file()
636 sym.st_shndx = in write_file()
/freebsd/contrib/elftoolchain/nm/
H A Dnm.c732 if (sec_table != NULL && sym->st_shndx < sec_table_size) in get_sym_name()
733 sym_name = sec_table[sym->st_shndx]; in get_sym_name()
753 if (sym->st_shndx == SHN_ABS) /* absolute */ in get_sym_type()
756 if (sym->st_shndx == SHN_COMMON) /* common */ in get_sym_type()
761 return (sym->st_shndx == SHN_UNDEF ? 'v' : 'V'); in get_sym_type()
763 return (sym->st_shndx == SHN_UNDEF ? 'w' : 'W'); in get_sym_type()
766 if (sym->st_shndx == SHN_UNDEF) /* undefined */ in get_sym_type()
769 return (is_local == true && type_table[sym->st_shndx] != 'N' ? in get_sym_type()
770 tolower((unsigned char) type_table[sym->st_shndx]) : in get_sym_type()
771 type_table[sym->st_shndx]); in get_sym_type()
[all …]
/freebsd/sys/ddb/
H A Ddb_ctf.c73 if (symp->st_name == 0 || symp->st_shndx == SHN_UNDEF) { in sym_to_objtoff()
76 if (symp->st_shndx == SHN_ABS && symp->st_value == 0) { in sym_to_objtoff()
H A Ddb_main.c126 if (sym->st_name == 0 || sym->st_shndx == SHN_UNDEF) in X_db_search_symbol()
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_module.c118 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()
1486 symp->st_shndx = SHN_UNDEF; in dtrace_lookup_by_name()
1674 if (symp->st_shndx in dtrace_symbol_type()
[all...]
H A Ddt_link.c240 sym->st_shndx = SHN_UNDEF; in prepare_elf32()
257 sym->st_shndx = ESHDR_DOF; in prepare_elf32()
423 sym->st_shndx = SHN_UNDEF; in prepare_elf64()
440 sym->st_shndx = ESHDR_DOF; in prepare_elf64()
782 opd_scn = elf_getscn(elf, sym->st_shndx); in dt_symtab_lookup()
787 if ((uses_funcdesc || shn == sym->st_shndx) && in dt_symtab_lookup()
1685 if (rsym.st_shndx != SHN_ABS) { in process_obj()
1687 rsym.st_shndx = SHN_ABS; in process_obj()
/freebsd/lib/libkldelf/
H A Def_obj.c141 if (symp->st_shndx != SHN_UNDEF && strcmp(name, strp) == 0) { in ef_obj_lookup_symbol()
180 if (sym->st_shndx != SHN_UNDEF) in ef_obj_symaddr()
409 if (es->st_shndx != i) in ef_obj_open()
H A Def.c156 if (symp->st_shndx != SHN_UNDEF || in ef_lookup_symbol()
219 sym->st_shndx != SHN_UNDEF && sym->st_value != 0) in ef_symaddr()
/freebsd/sys/kern/
H A Dlink_elf_obj.c580 if (es->st_shndx != i) in link_elf_link_preload()
1158 if (es->st_shndx != i) in link_elf_load_file()
1477 if (symp->st_shndx != SHN_UNDEF && strcmp(name, strp) == 0) { in link_elf_lookup_symbol1()
1674 if (sym->st_shndx == SHN_FBSD_CACHED) { in elf_obj_cleanup_globals_cache()
1675 sym->st_shndx = SHN_UNDEF; in elf_obj_cleanup_globals_cache()
1705 if (sym->st_shndx != SHN_UNDEF) { in elf_obj_lookup()
1743 sym->st_shndx = SHN_FBSD_CACHED; in elf_obj_lookup()
1774 if (sym->st_shndx != SHN_UNDEF) in link_elf_fix_link_set()
1800 sym->st_shndx = i; in link_elf_fix_link_set()
/freebsd/contrib/llvm-project/lld/ELF/
H A DInputFiles.cpp1142 uint32_t secIdx = eSym.st_shndx; in initializeSymbols()
1156 if (LLVM_UNLIKELY(eSym.st_shndx == SHN_COMMON)) { in initializeSymbols()
1200 uint32_t secIdx = eSym.st_shndx; in initSectionsAndLocalSyms()
1220 if (eSym.st_shndx == SHN_UNDEF || sec == &InputSection::discarded) in initSectionsAndLocalSyms()
1239 uint32_t secIdx = eSym.st_shndx; in postParse()
1434 if (0 < sym.st_shndx && sym.st_shndx < sections.size()) in getAlignment()
1435 ret = std::min<uint64_t>(ret, sections[sym.st_shndx].sh_addralign); in getAlignment()
1892 if (eSyms[i].st_shndx == SHN_UNDEF) in parseLazy()
/freebsd/stand/common/
H A Dload_elf_obj.c572 if (sym.st_shndx == SHN_UNDEF || sym.st_shndx >= ef->hdr.e_shnum) in __elfN()
574 base = ef->e_shdr[sym.st_shndx].sh_addr; in __elfN()
/freebsd/sys/sys/
H A Delf32.h203 Elf32_Half st_shndx; /* Section index of symbol. */ member
H A Delf64.h208 Elf64_Half st_shndx; /* Section index of symbol. */ member
/freebsd/cddl/contrib/opensolaris/common/ctf/
H A Dctf_open.c238 dst->st_shndx = src->st_shndx; in sym_to_gelf()
282 if (gsp->st_name == 0 || gsp->st_shndx == SHN_UNDEF || in init_symtab()
292 (gsp->st_shndx == SHN_ABS && gsp->st_value == 0)) { in init_symtab()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DELF_loongarch.cpp106 SymbolIndex, (*ObjSymbol)->st_shndx, in addSingleRelocation()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObject.cpp875 Sym->st_shndx = Symbol->getShndx(); in visit()
1590 if (Sym.st_shndx == SHN_XINDEX) { in initSymbolTable()
1622 } else if (Sym.st_shndx >= SHN_LORESERVE) { in initSymbolTable()
1623 if (!isValidReservedSectionIndex(Sym.st_shndx, Obj.Machine)) { in initSymbolTable()
1629 Twine(Sym.st_shndx)); in initSymbolTable()
1631 } else if (Sym.st_shndx != SHN_UNDEF) { in initSymbolTable()
1633 Sym.st_shndx, "symbol '" + *Name + in initSymbolTable()
1635 Twine(Sym.st_shndx)); in initSymbolTable()
1643 Sym.getValue(), Sym.st_other, Sym.st_shndx, Sym.st_size); in initSymbolTable()

123