Home
last modified time | relevance | path

Searched refs:sh_entsize (Results 1 – 25 of 44) sorted by relevance

12

/freebsd/contrib/elftoolchain/libelf/
H A Dgelf_shdr.c80 d->sh_entsize = (Elf64_Xword) sh32->sh_entsize; in gelf_getshdr()
127 LIBELF_COPY_U32(sh32, s, sh_entsize); in gelf_update_shdr()
H A Delf_update.c122 uint64_t sh_align, sh_entsize, sh_offset, sh_size; in _libelf_compute_section_extents() local
131 sh_entsize = (uint64_t) shdr32->sh_entsize; in _libelf_compute_section_extents()
137 sh_entsize = shdr64->sh_entsize; in _libelf_compute_section_extents()
305 if (sh_entsize == 0 && in _libelf_compute_section_extents()
306 (sh_entsize = _libelf_fsize(elftype, ec, e->e_version, in _libelf_compute_section_extents()
308 sh_entsize = 0; in _libelf_compute_section_extents()
324 shdr32->sh_entsize = (uint32_t) sh_entsize; in _libelf_compute_section_extents()
329 shdr64->sh_entsize = sh_entsize; in _libelf_compute_section_extents()
H A Delf_types.m4205 `sh_entsize, WORD',
218 `sh_entsize, XWORD',
/freebsd/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c175 dst->sh_entsize = src->sh_entsize; in shdr_to_gelf()
404 ctfsect.cts_entsize = shp->sh_entsize; in ctf_fdopen()
412 symsect.cts_entsize = shp->sh_entsize; in ctf_fdopen()
419 strsect.cts_entsize = lhp->sh_entsize; in ctf_fdopen()
/freebsd/contrib/file/src/
H A Dreadelf.h216 Elf32_Word sh_entsize; member
229 Elf64_Off sh_entsize; member
/freebsd/sys/dev/ksyms/
H A Dksyms.c333 hdr->kh_shdr[SHDR_SYMTAB].sh_entsize = sizeof(Elf_Sym); in ksyms_snapshot()
346 hdr->kh_shdr[SHDR_STRTAB].sh_entsize = 0; in ksyms_snapshot()
360 hdr->kh_shdr[SHDR_SHSTRTAB].sh_entsize = 0; in ksyms_snapshot()
/freebsd/contrib/elftoolchain/elfcopy/
H A Dsections.c649 if (ish.sh_entsize == 0) in update_section_group()
650 ish.sh_entsize = 4; in update_section_group()
672 n = ish.sh_size / ish.sh_entsize; in update_section_group()
750 n = ish.sh_size / ish.sh_entsize; in filter_reloc()
850 n = osh.sh_size / osh.sh_entsize; in update_reloc()
1191 osh.sh_entsize = ish.sh_entsize; in copy_shdr()
1522 sh.sh_entsize = 0; in set_shstrtab()
H A Dsymbols.c310 len = d->d_size / sh.sh_entsize; in mark_reloc_symbols()
489 sc = ish.sh_size / ish.sh_entsize; in generate_symbols()
1113 shy.sh_entsize = gelf_fsize(ecp->eout, ELF_T_SYM, 1, in create_symtab_data()
1127 sht.sh_entsize = 0; in create_symtab_data()
/freebsd/usr.bin/gprof/
H A Delf.c95 symtabct = sh_symtab->sh_size / sh_symtab->sh_entsize; in elf_getnfile()
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Doutput.c355 nent = shdr.sh_size / shdr.sh_entsize; in sort_iidescs()
616 if (shdr.sh_type == symtab_type && shdr.sh_entsize != 0) { in write_file()
617 int nsym = shdr.sh_size / shdr.sh_entsize; in write_file()
H A Dinput.c363 si->si_nument = si->si_shdr.sh_size / si->si_shdr.sh_entsize; in symit_new()
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DELFTypes.h163 Elf_Word sh_entsize; // Size of records contained within the section
178 Elf_Xword sh_entsize; // Size of records contained within the section
183 using Elf_Shdr_Base<ELFT>::sh_entsize;
188 if (sh_entsize == 0)
190 return sh_size / sh_entsize;
H A DELF.h616 if (Sec.sh_entsize != sizeof(T) && sizeof(T) != 1) in getSectionContentsAsArray()
619 ", but got " + Twine(Sec.sh_entsize)); in getSectionContentsAsArray()
628 Twine(Sec.sh_entsize) + ")"); in getSectionContentsAsArray()
831 if (Sec.sh_size % Sec.sh_entsize != 0) { in getDynSymtabSize()
835 Twine(Sec.sh_entsize) + ") that is not 0"); in getDynSymtabSize()
837 return Sec.sh_size / Sec.sh_entsize; in getDynSymtabSize()
/freebsd/sys/sys/
H A Delf32.h99 Elf32_Word sh_entsize; /* Size of each entry in section. */ member
H A Delf64.h108 Elf64_Xword sh_entsize; /* Size of each entry in section. */ member
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.h169 elf_xword sh_entsize; ///< Byte size of each section entry. member
H A DObjectFileELF.cpp894 addr_t offset = i * dynsym_hdr->sh_entsize + GetAddressByteSize(); in GetImageInfoAddress()
902 addr_t offset = i * dynsym_hdr->sh_entsize + GetAddressByteSize(); in GetImageInfoAddress()
2461 size_t num_symbols = symtab_data.GetByteSize() / symtab_hdr->sh_entsize; in ParseSymbolTable()
2541 const elf_xword num_relocations = rel_hdr->sh_size / rel_hdr->sh_entsize; in GetPltEntrySizeAndOffset()
2547 ? llvm::alignTo(plt_hdr->sh_entsize, plt_hdr->sh_addralign) in GetPltEntrySizeAndOffset()
2548 : plt_hdr->sh_entsize; in GetPltEntrySizeAndOffset()
2585 const elf_xword num_relocations = rel_hdr->sh_size / rel_hdr->sh_entsize; in ParsePLTRelocations()
2608 lldb::offset_t symbol_offset = reloc_symbol(rel) * sym_hdr->sh_entsize; in ParsePLTRelocations()
2796 const unsigned num_relocations = rel_hdr->sh_size / rel_hdr->sh_entsize; in ApplyRelocations()
3413 s->Printf(" %8.8" PRIx64 " %8.8" PRIx64, sh.sh_addralign, sh.sh_entsize); in DumpELFSectionHeader()
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_link.c565 shp->sh_entsize = sizeof (Elf32_Sym); in dump_elf32()
587 shp->sh_entsize = sizeof (de.de_rel[0]); in dump_elf32()
722 shp->sh_entsize = sizeof (Elf64_Sym); in dump_elf64()
744 shp->sh_entsize = sizeof (de.de_rel[0]); in dump_elf64()
1367 for (i = 0; i < shdr_rel.sh_size / shdr_rel.sh_entsize; i++) { in process_obj()
1520 for (i = 0; i < shdr_rel.sh_size / shdr_rel.sh_entsize; i++) { in process_obj()
/freebsd/contrib/llvm-project/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp298 StrTab.Shdr.sh_entsize = 0; in fillStrTabShdr()
314 SymTab.Shdr.sh_entsize = sizeof(Elf_Sym); in fillSymTabShdr()
327 DynTab.Shdr.sh_entsize = sizeof(Elf_Dyn); in fillDynTabShdr()
/freebsd/cddl/contrib/opensolaris/cmd/lockstat/
H A Dsym.c201 nsyms = shdr.sh_size / shdr.sh_entsize; in symtab_init()
/freebsd/contrib/libexecinfo/
H A Dsymtab.c127 ns = shdr.sh_size / shdr.sh_entsize; in symtab_create()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DELFEmitter.cpp815 SHeader.sh_entsize = *Sec->EntSize; in initSectionHeaders()
817 SHeader.sh_entsize = ELFYAML::getDefaultShEntSize<ELFT>( in initSectionHeaders()
1385 SHeader.sh_size = Shndx.Entries->size() * SHeader.sh_entsize; in writeSectionContent()
1410 SHeader.sh_size = SHeader.sh_entsize * Section.Members->size(); in writeSectionContent()
1422 SHeader.sh_size = Section.Entries->size() * SHeader.sh_entsize; in writeSectionContent()
1753 SHeader.sh_size = SHeader.sh_entsize; in writeSectionContent()
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DELF.h1034 Elf32_Word sh_entsize; // Size of records contained within the section member
1048 Elf64_Xword sh_entsize; member
/freebsd/lib/libpmcstat/
H A Dlibpmcstat_image.c78 nshsyms = sh->sh_size / sh->sh_entsize; in pmcstat_image_add_symbols()
/freebsd/usr.sbin/crunch/crunchide/
H A Dexec_elf32.c394 nsyms = xewtoh(symtabshdr->sh_size) / xewtoh(symtabshdr->sh_entsize); in ELFNAMEEND()

12