Searched refs:st_shndx (Results 1 - 25 of 49) sorted by relevance

12

/freebsd-13-stable/cddl/contrib/opensolaris/tools/ctf/common/
H A Dsymbol.c43 if (sym->st_shndx == SHN_UNDEF || sym->st_name == 0)
58 if (type == STT_OBJECT && sym->st_shndx == SHN_ABS &&
/freebsd-13-stable/contrib/elftoolchain/libelf/
H A Dgelf_sym.c88 dst->st_shndx = sym32->st_shndx;
148 sym32->st_shndx = gs->st_shndx;
/freebsd-13-stable/contrib/elftoolchain/elfcopy/
H A Dsymbols.c197 SHN_UNDEF, /* st_shndx */
208 if (s->st_shndx != SHN_UNDEF && s->st_shndx < SHN_LORESERVE &&
209 ecp->secndx[s->st_shndx] == 0)
532 if (sym.st_shndx != SHN_UNDEF &&
538 sym.st_shndx != SHN_UNDEF &&
543 sym.st_shndx != SHN_UNDEF &&
579 sym.st_shndx, sym.st_info, sym.st_other, 0);
589 sym.st_shndx < SHN_LORESERVE) {
590 assert(ecp->secndx[sym.st_shndx] < (uint64_
873 add_to_symtab(struct elfcopy *ecp, const char *name, uint64_t st_value, uint64_t st_size, uint16_t st_shndx, unsigned char st_info, unsigned char st_other, int ndx_known) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.cpp315 st_shndx, sectionIndexToCString(st_shndx, section_list),
337 // Read st_shndx.
338 if (data.GetU16(offset, &st_shndx, 1) == nullptr)
345 // Read st_shndx.
346 if (data.GetU16(offset, &st_shndx, 1) == nullptr)
H A DELFHeader.h230 elf_half st_shndx; ///< Section to which this symbol applies. member in struct:elf::ELFSymbol
/freebsd-13-stable/lib/libc/gen/
H A Dnlist.c269 switch (s->st_shndx) {
279 if (s->st_shndx >= shnum)
282 Elf_Shdr *sh = shdr + s->st_shndx;
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Object/
H A DELFTypes.h172 Elf_Half st_shndx; // Which section (header table index) it's defined in member in struct:llvm::object::Elf_Sym_Base
181 Elf_Half st_shndx; // Which section (header table index) it's defined in member in struct:llvm::object::Elf_Sym_Base
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;
233 // ELF::SHN_HIRESERVE is 0xffff so st_shndx <
[all...]
H A DELFObjectFile.h504 if (ESym->st_shndx == ELF::SHN_ABS)
526 switch (ESym->st_shndx) {
554 if (Sym->st_shndx == ELF::SHN_COMMON)
628 if (ESym->st_shndx == ELF::SHN_ABS)
666 if (ESym->st_shndx == ELF::SHN_UNDEF)
669 if (ESym->getType() == ELF::STT_COMMON || ESym->st_shndx == ELF::SHN_COMMON)
/freebsd-13-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Doutput.c276 if (sym.st_shndx != weak->st_shndx)
633 if (sym.st_shndx >= SHN_LORESERVE)
636 if ((newscn = secxlate[sym.st_shndx]) !=
637 sym.st_shndx) {
638 sym.st_shndx =
/freebsd-13-stable/sys/compat/linux/
H A Dlinux_vdso.c213 if (sym->st_shndx == SHN_UNDEF ||
214 sym->st_shndx == SHN_ABS)
/freebsd-13-stable/contrib/elftoolchain/nm/
H A Dnm.c732 if (sec_table != NULL && sym->st_shndx < sec_table_size)
733 sym_name = sec_table[sym->st_shndx];
753 if (sym->st_shndx == SHN_ABS) /* absolute */
756 if (sym->st_shndx == SHN_COMMON) /* common */
761 return (sym->st_shndx == SHN_UNDEF ? 'v' : 'V');
763 return (sym->st_shndx == SHN_UNDEF ? 'w' : 'W');
766 if (sym->st_shndx == SHN_UNDEF) /* undefined */
769 return (is_local == true && type_table[sym->st_shndx] != 'N' ?
770 tolower((unsigned char) type_table[sym->st_shndx]) :
771 type_table[sym->st_shndx]);
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DELF_x86_64.cpp238 auto TargetSymbol = JITSymbolTable[(*Symbol)->st_shndx];
329 auto DefinedSection = Obj.getSection(SymRef.st_shndx);
351 JITSymbolTable[SymRef.st_shndx] = &S;
/freebsd-13-stable/sys/sys/
H A Delf32.h203 Elf32_Half st_shndx; /* Section index of symbol. */ member in struct:__anon15810
H A Delf64.h208 Elf64_Half st_shndx; /* Section index of symbol. */ member in struct:__anon15828
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_module.c118 if (is_elf_obj && sym->st_shndx != SHN_UNDEF &&
119 sym->st_shndx < ehdr.e_shnum)
121 dmp->dm_sec_offsets[sym->st_shndx];
167 if (is_elf_obj && sym->st_shndx != SHN_UNDEF &&
168 sym->st_shndx < ehdr.e_shnum)
170 dmp->dm_sec_offsets[sym->st_shndx];
293 dst->st_shndx = src->st_shndx;
1508 symp->st_shndx = SHN_UNDEF;
1696 if (symp->st_shndx
[all...]
H A Ddt_link.c244 sym->st_shndx = SHN_UNDEF;
261 sym->st_shndx = ESHDR_DOF;
427 sym->st_shndx = SHN_UNDEF;
444 sym->st_shndx = ESHDR_DOF;
758 opd_scn = elf_getscn(elf, sym->st_shndx);
763 if ((uses_funcdesc || shn == sym->st_shndx) &&
1614 if (rsym.st_shndx != SHN_ABS) {
1615 rsym.st_shndx = SHN_ABS;
/freebsd-13-stable/sys/kern/
H A Dlink_elf_obj.c552 if (es->st_shndx != i)
1094 if (es->st_shndx != i)
1393 if (symp->st_shndx != SHN_UNDEF && strcmp(name, strp) == 0) {
1546 if (sym->st_shndx == SHN_FBSD_CACHED) {
1547 sym->st_shndx = SHN_UNDEF;
1577 if (sym->st_shndx != SHN_UNDEF) {
1615 sym->st_shndx = SHN_FBSD_CACHED;
1646 if (sym->st_shndx != SHN_UNDEF)
1672 sym->st_shndx = i;
/freebsd-13-stable/libexec/rtld-elf/mips/
H A Dreloc.c394 broken && sym->st_shndx == SHN_UNDEF) {
415 sym->st_value != 0 && sym->st_shndx == SHN_UNDEF) {
439 if (sym->st_shndx != SHN_ABS) {
/freebsd-13-stable/stand/common/
H A Dload_elf_obj.c577 if (sym.st_shndx == SHN_UNDEF || sym.st_shndx >= ef->hdr.e_shnum)
579 base = ef->e_shdr[sym.st_shndx].sh_addr;
/freebsd-13-stable/usr.sbin/kldxref/
H A Def_obj.c157 if (symp->st_shndx != SHN_UNDEF && strcmp(name, strp) == 0) {
193 if (sym->st_shndx != SHN_UNDEF)
558 if (es->st_shndx != i)
/freebsd-13-stable/libexec/rtld-elf/aarch64/
H A Dreloc.c161 if (def->st_shndx == SHN_UNDEF) {
483 if (def->st_shndx != SHN_UNDEF) {
/freebsd-13-stable/cddl/contrib/opensolaris/common/ctf/
H A Dctf_open.c100 dst->st_shndx = src->st_shndx;
143 if (gsp->st_name == 0 || gsp->st_shndx == SHN_UNDEF ||
153 (gsp->st_shndx == SHN_ABS && gsp->st_value == 0)) {
/freebsd-13-stable/sys/ddb/
H A Ddb_main.c129 if (sym->st_name == 0 || sym->st_shndx == SHN_UNDEF)
/freebsd-13-stable/contrib/llvm-project/lld/ELF/
H A DInputFiles.cpp1099 if (eSym.st_shndx == SHN_UNDEF)
1127 if (eSym.st_shndx == SHN_UNDEF) {
1134 if (eSym.st_shndx == SHN_COMMON) {
1303 if (0 < sym.st_shndx && sym.st_shndx < sections.size())
1304 ret = std::min<uint64_t>(ret, sections[sym.st_shndx].sh_addralign);
1713 if (eSyms[i].st_shndx != SHN_UNDEF)
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/ELF/
H A DObject.cpp622 // function should return the value that will appear in st_shndx when written
795 Sym->st_shndx = Symbol->getShndx();
1393 if (Sym.st_shndx == SHN_XINDEX) {
1410 } else if (Sym.st_shndx >= SHN_LORESERVE) {
1411 if (!isValidReservedSectionIndex(Sym.st_shndx, Obj.Machine)) {
1415 Twine(Sym.st_shndx));
1417 } else if (Sym.st_shndx != SHN_UNDEF) {
1419 Sym.st_shndx, "symbol '" + Name +
1421 Twine(Sym.st_shndx));
1425 Sym.getValue(), Sym.st_other, Sym.st_shndx, Sy
[all...]

Completed in 208 milliseconds

12