Home
last modified time | relevance | path

Searched refs:sh_link (Results 1 – 25 of 61) sorted by relevance

123

/freebsd/contrib/elftoolchain/libelf/
H A Dgelf_shdr.c77 d->sh_link = sh32->sh_link; in gelf_getshdr()
124 sh32->sh_link = s->sh_link; in gelf_update_shdr()
H A Dlibelf_extended.c90 scn->s_shdr.s_shdr32.sh_link = (Elf32_Word) shstrndx; in _libelf_setshstrndx()
92 scn->s_shdr.s_shdr64.sh_link = (Elf64_Word) shstrndx; in _libelf_setshstrndx()
H A Delf_types.m4202 `sh_link, WORD',
215 `sh_link, WORD',
H A Dlibelf_ehdr.c85 GET_SHDR_MEMBER(sh_link); in _libelf_load_extended()
/freebsd/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c172 dst->sh_link = src->sh_link; in shdr_to_gelf()
317 shstrndx = x32.sh_link; in ctf_fdopen()
327 shstrndx = x64.sh_link; in ctf_fdopen()
389 const GElf_Shdr *lhp = &sp[shp->sh_link]; in ctf_fdopen()
391 if (shp->sh_link >= shnum) in ctf_fdopen()
/freebsd/contrib/elftoolchain/elfcopy/
H A Dsections.c714 if (ish.sh_link != 0 && ecp->secndx[ish.sh_link] != 0) in filter_reloc()
718 if (ish.sh_link != elf_ndxscn(ecp->symtab->is)) in filter_reloc()
775 if (ish.sh_link == 0 || ecp->secndx[ish.sh_link] == 0) in filter_reloc()
845 if (osh.sh_link != elf_ndxscn(ecp->symtab->is)) in update_reloc()
1188 osh.sh_link = ish.sh_link; in copy_shdr()
1425 if (update_link && osh.sh_link != 0) in update_shdr()
1426 osh.sh_link = ecp->secndx[osh.sh_link]; in update_shdr()
1524 sh.sh_link = 0; in set_shstrtab()
H A Dbinary.c265 sh.sh_link = elf_ndxscn(ecp->strtab->os); in create_elf_from_binary()
/freebsd/lib/libc/gen/
H A Dnlist.c171 symstroff = shdr[shdr[i].sh_link].sh_offset; in __elf_fdnlist()
172 symstrsize = shdr[shdr[i].sh_link].sh_size; in __elf_fdnlist()
/freebsd/contrib/libexecinfo/
H A Dsymtab.c141 elf_strptr(elf, shdr.sh_link, sym.st_name), in symtab_create()
157 elf_strptr(elf, shdr.sh_link, sym.st_name)); in symtab_create()
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Doutput.c357 scn = elf_getscn(elf, shdr.sh_link); in sort_iidescs()
564 shdr.sh_link = secxlate[shdr.sh_link]; in write_file()
670 shdr.sh_link = symtab_idx; in write_file()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DELFObjectWriter.cpp879 uint64_t sh_link = 0; in writeSection() local
893 sh_link = SymbolTableIndex; in writeSection()
894 assert(sh_link && ".symtab not found"); in writeSection()
901 sh_link = StringTableIndex; in writeSection()
908 sh_link = SymbolTableIndex; in writeSection()
912 sh_link = SymbolTableIndex; in writeSection()
922 sh_link = Sym->getSection().getOrdinal(); in writeSection()
927 sh_link, sh_info, Section.getAlign(), in writeSection()
/freebsd/contrib/file/src/
H A Dreadelf.h213 Elf32_Word sh_link; member
226 Elf64_Word sh_link; member
/freebsd/sys/dev/ksyms/
H A Dksyms.c330 hdr->kh_shdr[SHDR_SYMTAB].sh_link = SHDR_STRTAB; in ksyms_snapshot()
343 hdr->kh_shdr[SHDR_STRTAB].sh_link = 0; in ksyms_snapshot()
357 hdr->kh_shdr[SHDR_SHSTRTAB].sh_link = 0; in ksyms_snapshot()
/freebsd/sys/powerpc/powerpc/
H A Dmachdep.c603 shdr[shdr[i].sh_link].sh_offset); in load_external_symtab()
606 shdr[shdr[i].sh_link].sh_offset); in load_external_symtab()
609 (shdr[shdr[i].sh_link].sh_size); in load_external_symtab()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.cpp110 e_shstrndx = section_zero.sh_link; in ParseHeaderExtension()
245 if (data.GetU32(offset, &sh_link, 2) == nullptr) in Parse()
H A DELFHeader.h166 elf_word sh_link; ///< Index of associated section. member
/freebsd/usr.bin/gprof/
H A Delf.c92 sh_strtab = &shdrs[sh_symtab->sh_link]; in elf_getnfile()
/freebsd/sys/sys/
H A Delf32.h96 Elf32_Word sh_link; /* Index of a related section. */ member
H A Delf64.h105 Elf64_Word sh_link; /* Index of a related section. */ member
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DARMEHABIPrinter.h410 auto SymTabOrErr = ELF.getSection(Sec.sh_link); in FindExceptionTable()
505 IsRelocatable ? std::optional<unsigned>(EHT.sh_link) : std::nullopt; in PrintExceptionTable()
578 IsRelocatable ? std::optional<unsigned>(IT->sh_link) : std::nullopt; in PrintIndexTable()
/freebsd/sys/compat/linux/
H A Dlinux_vdso.c128 strtab = base + shdr[shdr[i].sh_link].sh_offset; in __elfN()
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_link.c566 shp->sh_link = ESHDR_STRTAB; in dump_elf32()
588 shp->sh_link = ESHDR_SYMTAB; in dump_elf32()
723 shp->sh_link = ESHDR_STRTAB; in dump_elf64()
745 shp->sh_link = ESHDR_SYMTAB; in dump_elf64()
1305 if ((scn_sym = elf_getscn(elf, shdr_rel.sh_link)) == NULL || in process_obj()
1313 if ((scn_str = elf_getscn(elf, shdr_sym.sh_link)) == NULL || in process_obj()
/freebsd/contrib/llvm-project/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp299 StrTab.Shdr.sh_link = 0; in fillStrTabShdr()
315 SymTab.Shdr.sh_link = this->DynStr.Index; in fillSymTabShdr()
328 DynTab.Shdr.sh_link = this->DynStr.Index; in fillDynTabShdr()
/freebsd/cddl/contrib/opensolaris/cmd/lockstat/
H A Dsym.c202 strindex = shdr.sh_link; in symtab_init()
/freebsd/cddl/contrib/opensolaris/tools/ctf/dump/
H A Ddump.c981 ctfshdr.sh_link != 0) { in main()
982 symscn = elf_getscn(elf, ctfshdr.sh_link); in main()
993 symstrscn = elf_getscn(elf, shdr.sh_link); in main()

123