/freebsd-10-stable/lib/libelf/ |
H A D | elf_data.c | 45 uint64_t sh_align, sh_offset, sh_size; local 71 sh_offset = (uint64_t) s->s_shdr.s_shdr32.sh_offset; 76 sh_offset = s->s_shdr.s_shdr64.sh_offset; 88 sh_offset + sh_size > (uint64_t) e->e_rawsize)) { 134 if (!(*xlate)(d->d_buf, d->d_size, e->e_rawfile + sh_offset, count, 194 uint64_t sh_align, sh_offset, sh_size; local 214 sh_offset = (uint64_t) s->s_shdr.s_shdr32.sh_offset; [all...] |
H A D | gelf_shdr.c | 76 d->sh_offset = (Elf64_Off) sh32->sh_offset; 123 LIBELF_COPY_U32(sh32, s, sh_offset);
|
H A D | elf_update.c | 95 uint64_t sh_align, sh_entsize, sh_offset, sh_size; local 106 sh_offset = (uint64_t) shdr32->sh_offset; 112 sh_offset = shdr64->sh_offset; 137 * reuse the values in the 'sh_size' and 'sh_offset' 148 * can use the value in the 'sh_offset' field 222 if (scn_alignment > sh_align || sh_offset % sh_align || 257 sh_offset = roundup(rc, sh_align); 265 shdr32->sh_offset [all...] |
H A D | elf_scn.c | 112 scn->s_shdr.s_shdr32.sh_offset; 116 scn->s_shdr.s_shdr64.sh_offset;
|
/freebsd-10-stable/contrib/binutils/include/elf/ |
H A D | external.h | 105 unsigned char sh_offset[4]; /* Section file offset */ member in struct:__anon513 118 unsigned char sh_offset[8]; /* Section file offset */ member in struct:__anon514
|
H A D | internal.h | 87 file_ptr sh_offset; /* Section file offset */ member in struct:elf_internal_shdr 280 || ((bfd_vma) sec_hdr->sh_offset >= segment->p_offset \ 281 && (sec_hdr->sh_offset + ELF_SECTION_SIZE(sec_hdr, segment) \
|
/freebsd-10-stable/usr.sbin/crunch/crunchide/ |
H A D | exec_elf32.c | 303 shdrshdr.sh_offset = ehdr.e_shoff; 314 if (xewtoh(shdrp[i].sh_offset) > 315 xewtoh(layoutp[m].shdr->sh_offset)) 340 if ((size_t)xreadatoff(fd, shstrtabp, xewtoh(shstrtabshdr->sh_offset), 363 off = xewtoh(layoutp[i].shdr->sh_offset); 437 off = xewtoh(layoutp[i - 1].shdr->sh_offset) + 441 layoutp[i].shdr->sh_offset = htoxew(off); 464 ehdr.e_shoff != shdrshdr.sh_offset) { 465 ehdr.e_shoff = shdrshdr.sh_offset; 473 off = xewtoh(layoutp[i].shdr->sh_offset); [all...] |
/freebsd-10-stable/sys/mips/mips/ |
H A D | elf_trampoline.c | 141 if (shdr[i].sh_offset != 0 && 187 shdr[symtabindex].sh_offset + kstart, 198 shdr[symstrindex].sh_offset + kstart,
|
/freebsd-10-stable/contrib/llvm/include/llvm/Object/ |
H A D | ELF.h | 354 (const char *)(base() + sec->sh_offset)); 360 (const char *)(base() + sec->sh_offset + sec->sh_size)); 365 (const char *)(base() + sec->sh_offset)); 370 (const char *)(base() + sec->sh_offset + sec->sh_size)); 425 const char *sec_start = (const char*)base() + sec->sh_offset; 450 const char *sec_start = (const char *)base() + sec->sh_offset; 526 if (Sec->sh_offset + Sec->sh_size > Buf->getBufferSize()) 528 const uint8_t *Start = base() + Sec->sh_offset; 577 const char *strtab = (const char *)base() + sh->sh_offset; 664 DynSymRegion.Addr = base() + SecI->sh_offset; [all...] |
/freebsd-10-stable/usr.bin/gprof/ |
H A D | elf.c | 98 symtab = (const Elf_Sym *)(base + sh_symtab->sh_offset); 100 strtab = (const char *)(base + sh_strtab->sh_offset);
|
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_lib.c | 169 dst->sh_offset = src->sh_offset; 178 * In order to mmap a section from the ELF file, we must round down sh_offset 367 (sp[shstrndx].sh_offset & ~_PAGEMASK); 370 fd, sp[shstrndx].sh_offset & _PAGEMASK); 373 (sp[shstrndx].sh_offset & ~_PAGEMASK); 402 ctfsect.cts_offset = (off64_t)shp->sh_offset; 410 symsect.cts_offset = (off64_t)shp->sh_offset; 417 strsect.cts_offset = (off64_t)lhp->sh_offset;
|
/freebsd-10-stable/sys/kern/ |
H A D | kern_ctf.c | 171 shdr[hdr->e_shstrndx].sh_size, shdr[hdr->e_shstrndx].sh_offset, 190 shdr[i].sh_offset, UIO_SYSSPACE, IO_NODELOCKED, td->td_ucred, 249 shdr[i].sh_size, shdr[i].sh_offset, UIO_SYSSPACE, IO_NODELOCKED,
|
/freebsd-10-stable/sys/compat/linux/ |
H A D | linux_vdso.c | 205 sym = (Elf_Sym *)((caddr_t)ehdr + shdr[i].sh_offset); 232 shdr[__elfN(symstrindex)].sh_offset); 234 shdr[__elfN(symtabindex)].sh_offset);
|
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_link.c | 75 (lseek64(fd, (off64_t)elf_file.shdr[(index)].sh_offset, SEEK_SET) != \ 76 (off64_t)elf_file.shdr[(index)].sh_offset || \ 561 shp->sh_offset = off; 564 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8); 570 shp->sh_offset = off; 573 off = shp->sh_offset + shp->sh_size; 579 shp->sh_offset = off; 582 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4); 590 shp->sh_offset = off; 594 off = P2ROUNDUP(shp->sh_offset [all...] |
/freebsd-10-stable/sys/boot/common/ |
H A D | load_elf.c | 470 if (shdr[i].sh_offset >= phdr[j].p_offset && 471 (shdr[i].sh_offset + shdr[i].sh_size <= 473 shdr[i].sh_offset = 0; 478 if (shdr[i].sh_offset == 0 || shdr[i].sh_size == 0) 515 (uintmax_t)shdr[i].sh_size, (uintmax_t)shdr[i].sh_offset, 523 if (lseek(ef->fd, (off_t)shdr[i].sh_offset, SEEK_SET) == -1) { 723 shstrtab = alloc_pread(ef.fd, shdr[ef.ehdr->e_shstrndx].sh_offset, 752 err = kern_pread(ef.fd, dest, sh_meta->sh_size, sh_meta->sh_offset); 764 sh_data[0]->sh_offset); 779 sh_data[1]->sh_offset); [all...] |
H A D | load_elf_obj.c | 309 lshdr->sh_offset >= shdr[i].sh_offset) 313 cshdr->sh_offset > shdr[i].sh_offset) 321 cshdr->sh_size, (off_t)cshdr->sh_offset) != 0) {
|
/freebsd-10-stable/usr.sbin/kldxref/ |
H A D | ef_obj.c | 441 if (ef_obj_read_entry(ef, shdr[symtabindex].sh_offset, 448 if (ef_obj_read_entry(ef, shdr[symstrindex].sh_offset, 460 if (ef_obj_read_entry(ef, shdr[shstrindex].sh_offset, 511 if (ef_obj_read(ef, shdr[i].sh_offset, 540 if (ef_obj_read_entry(ef, shdr[i].sh_offset, 552 if (ef_obj_read_entry(ef, shdr[i].sh_offset,
|
/freebsd-10-stable/sys/arm/arm/ |
H A D | elf_trampoline.c | 520 shdr[i].sh_offset >= 522 (shdr[i].sh_offset + 526 shdr[i].sh_offset = 0; 531 if (shdr[i].sh_offset != 0 && 543 shdr[symtabindex].sh_offset + kstart), 547 (void *)(shdr[symstrindex].sh_offset +
|
/freebsd-10-stable/sys/dev/ksyms/ |
H A D | ksyms.c | 300 hdr->kh_shdr[SHDR_SYMTAB].sh_offset = sizeof(*hdr); 312 hdr->kh_shdr[SHDR_STRTAB].sh_offset = 313 hdr->kh_shdr[SHDR_SYMTAB].sh_offset + ts->ts_symsz; 326 hdr->kh_shdr[SHDR_SHSTRTAB].sh_offset = 337 to.to_symoff = uaddr + hdr->kh_shdr[SHDR_SYMTAB].sh_offset; 338 to.to_stroff = uaddr + hdr->kh_shdr[SHDR_STRTAB].sh_offset;
|
/freebsd-10-stable/contrib/file/src/ |
H A D | readelf.h | 211 Elf32_Off sh_offset; member in struct:__anon140 224 Elf64_Off sh_offset; member in struct:__anon141
|
/freebsd-10-stable/contrib/binutils/binutils/ |
H A D | readelf.c | 3525 dynamic_addr = sec->sh_offset; 3658 internal->sh_offset = BYTE_GET (shdrs[i].sh_offset); 3703 internal->sh_offset = BYTE_GET (shdrs[i].sh_offset); 3722 esyms = get_data (NULL, file, section->sh_offset, 1, section->sh_size, 3732 shndx = get_data (NULL, file, symtab_shndx_hdr->sh_offset, 3785 esyms = get_data (NULL, file, section->sh_offset, 1, section->sh_size, 3795 shndx = get_data (NULL, file, symtab_shndx_hdr->sh_offset, 4048 string_table = get_data (NULL, file, section->sh_offset, [all...] |
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Plugins/ObjectFile/ELF/ |
H A D | ELFHeader.h | 159 elf_off sh_offset; ///< Start of section from beginning of file. member in struct:elf::ELFSectionHeader
|
/freebsd-10-stable/sys/sys/ |
H A D | elf64.h | 103 Elf64_Off sh_offset; /* Offset in file. */ member in struct:__anon31
|
H A D | elf32.h | 94 Elf32_Off sh_offset; /* Offset in file. */ member in struct:__anon14
|
/freebsd-10-stable/lib/libc/gen/ |
H A D | nlist.c | 285 symoff = shdr[i].sh_offset; 287 symstroff = shdr[shdr[i].sh_link].sh_offset;
|