/freebsd-13-stable/contrib/elftoolchain/libelf/ |
H A D | elf_data.c | 45 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 D | gelf_shdr.c | 75 d->sh_offset = (Elf64_Off) sh32->sh_offset; 122 LIBELF_COPY_U32(sh32, s, sh_offset);
|
H A D | elf_update.c | 122 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 D | elf_scn.c | 129 scn->s_shdr.s_shdr32.sh_offset; 133 scn->s_shdr.s_shdr64.sh_offset;
|
/freebsd-13-stable/usr.sbin/crunch/crunchide/ |
H A D | exec_elf32.c | 305 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 D | elf_trampoline.c | 142 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 D | ctf_lib.c | 170 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 D | elf.c | 100 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 D | kern_ctf.c | 159 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 D | linux_vdso.c | 209 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 D | dt_link.c | 61 (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 D | ksyms.c | 330 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 D | ef_obj.c | 469 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 D | load_elf.c | 196 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 D | load_elf_obj.c | 355 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 D | nlist.c | 173 symoff = shdr[i].sh_offset; 175 symstroff = shdr[shdr[i].sh_link].sh_offset;
|
/freebsd-13-stable/contrib/elftoolchain/elfcopy/ |
H A D | binary.c | 81 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 D | ELFHeader.h | 164 elf_off sh_offset; ///< Start of section from beginning of file. member in struct:elf::ELFSectionHeader
|
/freebsd-13-stable/sys/powerpc/powerpc/ |
H A D | machdep.c | 591 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 D | elf32.h | 96 Elf32_Off sh_offset; /* Offset in file. */ member in struct:__anon15801
|
H A D | elf64.h | 105 Elf64_Off sh_offset; /* Offset in file. */ member in struct:__anon15819
|
/freebsd-13-stable/sys/x86/xen/ |
H A D | pv.c | 496 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 D | readelf.h | 211 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 D | ELF.h | 252 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 D | output.c | 563 shdr.sh_offset = new_offset; 656 new_offset = (off_t)shdr.sh_offset; 680 shdr.sh_offset = new_offset;
|