Searched refs:sh_offset (Results 1 - 25 of 51) sorted by relevance

123

/freebsd-13-stable/contrib/elftoolchain/libelf/
H A Delf_data.c45 uint64_t sh_align, sh_offset, sh_size, raw_size; local
80 sh_offset = (uint64_t) s->s_shdr.s_shdr32.sh_offset;
85 sh_offset = s->s_shdr.s_shdr64.sh_offset;
98 (sh_offset > raw_size || sh_size > raw_size - sh_offset))) {
159 e->e_rawfile + sh_offset, count,
221 uint64_t sh_align, sh_offset, sh_size, raw_size; local
244 sh_offset
[all...]
H A Dgelf_shdr.c75 d->sh_offset = (Elf64_Off) sh32->sh_offset;
122 LIBELF_COPY_U32(sh32, s, sh_offset);
H A Delf_update.c122 uint64_t sh_align, sh_entsize, sh_offset, sh_size; local
132 sh_offset = (uint64_t) shdr32->sh_offset;
138 sh_offset = shdr64->sh_offset;
161 * reuse the values in the 'sh_size' and 'sh_offset'
172 * can use the value in the 'sh_offset' field
281 sh_offset % sh_align ||
283 sh_offset % _libelf_falign(elftype, ec)) {
317 sh_offset
[all...]
H A Delf_scn.c129 scn->s_shdr.s_shdr32.sh_offset;
133 scn->s_shdr.s_shdr64.sh_offset;
/freebsd-13-stable/usr.sbin/crunch/crunchide/
H A Dexec_elf32.c305 shdrshdr.sh_offset = ehdr.e_shoff;
316 if (xewtoh(shdrp[i].sh_offset) >
317 xewtoh(layoutp[m].shdr->sh_offset))
342 if ((size_t)xreadatoff(fd, shstrtabp, xewtoh(shstrtabshdr->sh_offset),
365 off = xewtoh(layoutp[i].shdr->sh_offset);
439 off = xewtoh(layoutp[i - 1].shdr->sh_offset) +
443 layoutp[i].shdr->sh_offset = htoxew(off);
466 ehdr.e_shoff != shdrshdr.sh_offset) {
467 ehdr.e_shoff = shdrshdr.sh_offset;
475 off = xewtoh(layoutp[i].shdr->sh_offset);
[all...]
/freebsd-13-stable/sys/mips/mips/
H A Delf_trampoline.c142 if (shdr[i].sh_offset != 0 &&
188 shdr[symtabindex].sh_offset + kstart,
199 shdr[symstrindex].sh_offset + kstart,
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c170 dst->sh_offset = src->sh_offset;
179 * In order to mmap a section from the ELF file, we must round down sh_offset
369 (sp[shstrndx].sh_offset & ~_PAGEMASK);
372 fd, sp[shstrndx].sh_offset & _PAGEMASK);
375 (sp[shstrndx].sh_offset & ~_PAGEMASK);
404 ctfsect.cts_offset = (off64_t)shp->sh_offset;
412 symsect.cts_offset = (off64_t)shp->sh_offset;
419 strsect.cts_offset = (off64_t)lhp->sh_offset;
/freebsd-13-stable/usr.bin/gprof/
H A Delf.c100 symtab = (const Elf_Sym *)(base + sh_symtab->sh_offset);
102 strtab = (const char *)(base + sh_strtab->sh_offset);
/freebsd-13-stable/sys/kern/
H A Dkern_ctf.c159 shdr[hdr->e_shstrndx].sh_size, shdr[hdr->e_shstrndx].sh_offset,
178 shdr[i].sh_offset, UIO_SYSSPACE, IO_NODELOCKED, td->td_ucred,
241 shdr[i].sh_size, shdr[i].sh_offset, UIO_SYSSPACE, IO_NODELOCKED,
/freebsd-13-stable/sys/compat/linux/
H A Dlinux_vdso.c209 sym = (Elf_Sym *)((caddr_t)ehdr + shdr[i].sh_offset);
236 shdr[__elfN(symstrindex)].sh_offset);
238 shdr[__elfN(symtabindex)].sh_offset);
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_link.c61 (lseek64(fd, (off64_t)elf_file.shdr[(index)].sh_offset, SEEK_SET) != \
62 (off64_t)elf_file.shdr[(index)].sh_offset || \
528 shp->sh_offset = off;
531 off = roundup2(shp->sh_offset + shp->sh_size, 8);
537 shp->sh_offset = off;
540 off = shp->sh_offset + shp->sh_size;
546 shp->sh_offset = off;
549 off = roundup2(shp->sh_offset + shp->sh_size, 4);
557 shp->sh_offset = off;
561 off = roundup2(shp->sh_offset
[all...]
/freebsd-13-stable/sys/dev/ksyms/
H A Dksyms.c330 hdr->kh_shdr[SHDR_SYMTAB].sh_offset = sizeof(*hdr);
342 hdr->kh_shdr[SHDR_STRTAB].sh_offset =
343 hdr->kh_shdr[SHDR_SYMTAB].sh_offset + ts->ts_symsz;
356 hdr->kh_shdr[SHDR_SHSTRTAB].sh_offset =
368 to.to_symoff = hdr->kh_shdr[SHDR_SYMTAB].sh_offset;
369 to.to_stroff = hdr->kh_shdr[SHDR_STRTAB].sh_offset;
/freebsd-13-stable/usr.sbin/kldxref/
H A Def_obj.c469 if (ef_obj_read_entry(ef, shdr[symtabindex].sh_offset,
476 if (ef_obj_read_entry(ef, shdr[symstrindex].sh_offset,
488 if (ef_obj_read_entry(ef, shdr[shstrindex].sh_offset,
539 if (ef_obj_read(ef, shdr[i].sh_offset,
568 if (ef_obj_read_entry(ef, shdr[i].sh_offset,
580 if (ef_obj_read_entry(ef, shdr[i].sh_offset,
/freebsd-13-stable/stand/common/
H A Dload_elf.c196 CONVERT_FIELD(b, sh_offset, e); \
670 shdr[ehdr->e_shstrndx].sh_offset, chunk);
699 if (shdr[i].sh_offset >= phdr[j].p_offset &&
700 (shdr[i].sh_offset + shdr[i].sh_size <=
702 shdr[i].sh_offset = 0;
707 if (shdr[i].sh_offset == 0 || shdr[i].sh_size == 0)
751 (uintmax_t)shdr[i].sh_size, (uintmax_t)shdr[i].sh_offset,
760 if (VECTX_LSEEK(VECTX_HANDLE(ef), (off_t)shdr[i].sh_offset, SEEK_SET) == -1) {
996 shstrtab = alloc_pread(VECTX_HANDLE(&ef), shdr[ef.ehdr->e_shstrndx].sh_offset,
1025 err = kern_pread(VECTX_HANDLE(&ef), dest, sh_meta->sh_size, sh_meta->sh_offset);
[all...]
H A Dload_elf_obj.c355 lshdr->sh_offset >= shdr[i].sh_offset)
359 cshdr->sh_offset > shdr[i].sh_offset)
367 cshdr->sh_size, (off_t)cshdr->sh_offset) != 0) {
/freebsd-13-stable/lib/libc/gen/
H A Dnlist.c173 symoff = shdr[i].sh_offset;
175 symstroff = shdr[shdr[i].sh_link].sh_offset;
/freebsd-13-stable/contrib/elftoolchain/elfcopy/
H A Dbinary.c81 if (baseoff == -1 || (off_t) sh.sh_offset < baseoff) {
82 baseoff = sh.sh_offset;
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.h164 elf_off sh_offset; ///< Start of section from beginning of file. member in struct:elf::ELFSectionHeader
/freebsd-13-stable/sys/powerpc/powerpc/
H A Dmachdep.c591 shdr[i].sh_offset);
593 (kernelimg_final + shdr[i].sh_offset);
596 shdr[shdr[i].sh_link].sh_offset);
599 shdr[shdr[i].sh_link].sh_offset);
/freebsd-13-stable/sys/sys/
H A Delf32.h96 Elf32_Off sh_offset; /* Offset in file. */ member in struct:__anon15801
H A Delf64.h105 Elf64_Off sh_offset; /* Offset in file. */ member in struct:__anon15819
/freebsd-13-stable/sys/x86/xen/
H A Dpv.c496 if (shdr[i].sh_offset == 0)
498 ksymtab = (uintptr_t)((uint8_t *)ehdr + shdr[i].sh_offset);
501 if (shdr[j].sh_offset == 0)
503 kstrtab = (uintptr_t)((uint8_t *)ehdr + shdr[j].sh_offset);
/freebsd-13-stable/contrib/file/src/
H A Dreadelf.h211 Elf32_Off sh_offset; member in struct:__anon757
224 Elf64_Off sh_offset; member in struct:__anon758
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Object/
H A DELF.h252 if (Shdr.sh_offset + Shdr.sh_size > getBufSize()) {
255 Twine::utohexstr(Shdr.sh_offset) + ") or size (0x" +
259 return Elf_Note_Iterator(base() + Shdr.sh_offset, Shdr.sh_size, Err);
411 uintX_t Offset = Sec->sh_offset;
421 " has a sh_offset (0x" + Twine::utohexstr(Offset) +
426 " has a sh_offset (0x" + Twine::utohexstr(Offset) +
619 uint64_t Pos = Section->sh_offset + (uint64_t)Entry * sizeof(T);
/freebsd-13-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Doutput.c563 shdr.sh_offset = new_offset;
656 new_offset = (off_t)shdr.sh_offset;
680 shdr.sh_offset = new_offset;

Completed in 299 milliseconds

123