/freebsd-10-stable/lib/libelf/ |
H A D | elf_data.c | 45 uint64_t sh_align, sh_offset, sh_size; local 72 sh_size = (uint64_t) s->s_shdr.s_shdr32.sh_size; 77 sh_size = s->s_shdr.s_shdr64.sh_size; 88 sh_offset + sh_size > (uint64_t) e->e_rawsize)) { 99 if (sh_size % fsz) { 104 count = sh_size / fsz; 120 if (sh_type == SHT_NOBITS || sh_size == 0) { 194 uint64_t sh_align, sh_offset, sh_size; local [all...] |
H A D | gelf_shdr.c | 77 d->sh_size = (Elf64_Xword) sh32->sh_size; 124 LIBELF_COPY_U32(sh32, s, sh_size);
|
H A D | libelf_extended.c | 61 scn->s_shdr.s_shdr32.sh_size = shnum; 63 scn->s_shdr.s_shdr64.sh_size = shnum;
|
H A D | elf_update.c | 95 uint64_t sh_align, sh_entsize, sh_offset, sh_size; local 107 sh_size = (uint64_t) shdr32->sh_size; 113 sh_size = shdr64->sh_size; 137 * reuse the values in the 'sh_size' and 'sh_offset' 223 sh_size < scn_size) { 250 sh_size = scn_size; 266 shdr32->sh_size = (uint32_t) sh_size; 592 uint64_t sh_off, sh_size; local [all...] |
H A D | elf_strptr.c | 59 offset >= shdr.sh_size) {
|
/freebsd-10-stable/sys/mips/mips/ |
H A D | elf_trampoline.c | 142 shdr[i].sh_size != 0) { 177 tmp = shdr[symtabindex].sh_size + 178 shdr[symstrindex].sh_size + 2*sizeof(Elf_Size); 182 tmp = shdr[symtabindex].sh_size; 184 lastaddr += sizeof(shdr[symtabindex].sh_size); 188 shdr[symtabindex].sh_size); 189 lastaddr += shdr[symtabindex].sh_size; 192 tmp = shdr[symstrindex].sh_size; 194 lastaddr += sizeof(shdr[symstrindex].sh_size); 199 shdr[symstrindex].sh_size); [all...] |
/freebsd-10-stable/sys/arm/arm/ |
H A D | elf_trampoline.c | 523 shdr[i].sh_size <= 527 shdr[i].sh_size = 0; 532 shdr[i].sh_size != 0) { 544 shdr[symtabindex].sh_size); 546 shdr[symtabindex].sh_size), 548 kstart), shdr[symstrindex].sh_size); 550 lastaddr += shdr[symtabindex].sh_size; 552 sizeof(shdr[symtabindex].sh_size)); 553 lastaddr += sizeof(shdr[symstrindex].sh_size); 554 lastaddr += shdr[symstrindex].sh_size; [all...] |
/freebsd-10-stable/sys/kern/ |
H A D | kern_ctf.c | 167 shstrtab = malloc(shdr[hdr->e_shstrndx].sh_size, M_LINKER, M_WAITOK); 171 shdr[hdr->e_shstrndx].sh_size, shdr[hdr->e_shstrndx].sh_offset, 229 raw = malloc(shdr[i].sh_size, M_LINKER, M_WAITOK); 235 sz = shdr[i].sh_size; 249 shdr[i].sh_size, shdr[i].sh_offset, UIO_SYSSPACE, IO_NODELOCKED, 274 zs.avail_in = shdr[i].sh_size - sizeof(ctf_hdr); 289 ef->ctfcnt = shdr[i].sh_size;
|
H A D | link_elf_obj.c | 318 ef->ddbsymcnt = shdr[symtabindex].sh_size / sizeof(Elf_Sym); 320 ef->ddbstrcnt = shdr[symstrindex].sh_size; 322 ef->shstrcnt = shdr[shstrindex].sh_size; 345 ef->progtab[pb].size = shdr[i].sh_size; 354 dpcpu = dpcpu_alloc(shdr[i].sh_size); 361 dpcpu_copy(dpcpu, shdr[i].sh_size); 368 vnet_data = vnet_data_alloc(shdr[i].sh_size); 375 vnet_data_copy(vnet_data, shdr[i].sh_size); 391 ef->reltab[rl].nrel = shdr[i].sh_size / sizeof(Elf_Rel); 398 shdr[i].sh_size / sizeo [all...] |
/freebsd-10-stable/contrib/binutils/include/elf/ |
H A D | external.h | 106 unsigned char sh_size[4]; /* Size of section in bytes */ member in struct:__anon513 119 unsigned char sh_size[8]; /* Size of section in bytes */ member in struct:__anon514
|
H A D | internal.h | 83 bfd_size_type sh_size; /* Size of section in bytes */ member in struct:elf_internal_shdr 266 || segment->p_type == PT_TLS) ? sec_hdr->sh_size : 0) 291 (sec_hdr->sh_size > 0 \
|
/freebsd-10-stable/usr.sbin/kldxref/ |
H A D | ef_obj.c | 440 ef->ddbsymcnt = shdr[symtabindex].sh_size / sizeof(Elf_Sym); 442 shdr[symtabindex].sh_size, (void**)&ef->ddbsymtab) != 0) { 447 ef->ddbstrcnt = shdr[symstrindex].sh_size; 449 shdr[symstrindex].sh_size, (void**)&ef->ddbstrtab) != 0) { 459 ef->shstrcnt = shdr[shstrindex].sh_size; 461 shdr[shstrindex].sh_size, (void**)&ef->shstrtab) != 0) { 480 mapsize += shdr[i].sh_size; 512 shdr[i].sh_size, 519 bzero(ef->progtab[pb].addr, shdr[i].sh_size); 521 ef->progtab[pb].size = shdr[i].sh_size; [all...] |
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_lib.c | 170 dst->sh_size = src->sh_size; 314 shnum = x32.sh_size; 324 shnum = x64.sh_size; 366 strs_mapsz = sp[shstrndx].sh_size + 391 if (shp->sh_name >= sp[shstrndx].sh_size || 392 lhp->sh_name >= sp[shstrndx].sh_size) 400 ctfsect.cts_size = shp->sh_size; 408 symsect.cts_size = shp->sh_size; 415 strsect.cts_size = lhp->sh_size; [all...] |
/freebsd-10-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | output.c | 357 nent = shdr.sh_size / shdr.sh_entsize; 607 ddata->d_buf = xmalloc(ddata->d_size + shdr.sh_size + 609 bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size); 610 strcpy((caddr_t)ddata->d_buf + shdr.sh_size, 612 ctfnameoff = (off_t)shdr.sh_size; 613 shdr.sh_size += seclen + 1; 621 int nsym = shdr.sh_size / shdr.sh_entsize; 625 ddata->d_buf = xmalloc(shdr.sh_size); 626 bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size); 650 ddata->d_buf = xmalloc(shdr.sh_size); [all...] |
/freebsd-10-stable/sys/boot/common/ |
H A D | load_elf_obj.c | 219 if (shdr[i].sh_size == 0) 229 lastaddr += shdr[i].sh_size; 242 lastaddr += shdr[i].sh_size; 253 lastaddr += shdr[ef->symtabindex].sh_size; 264 lastaddr += shdr[symstrindex].sh_size; 276 lastaddr += shdr[ef->shstrindex].sh_size; 285 lastaddr += shdr[i].sh_size; 321 cshdr->sh_size, (off_t)cshdr->sh_offset) != 0) { 447 *stopp = shdr[i].sh_addr + shdr[i].sh_size; 485 shdr[shdr[i].sh_info].sh_size) [all...] |
H A D | load_elf.c | 471 (shdr[i].sh_offset + shdr[i].sh_size <= 474 shdr[i].sh_size = 0; 478 if (shdr[i].sh_offset == 0 || shdr[i].sh_size == 0) 509 size = shdr[i].sh_size; 515 (uintmax_t)shdr[i].sh_size, (uintmax_t)shdr[i].sh_offset, 516 (uintmax_t)lastaddr, (uintmax_t)(lastaddr + shdr[i].sh_size)); 529 result = archsw.arch_readin(ef->fd, lastaddr, shdr[i].sh_size); 530 if (result < 0 || (size_t)result != shdr[i].sh_size) { 532 (uintmax_t)shdr[i].sh_size); 538 lastaddr += shdr[i].sh_size; [all...] |
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/ctf/ |
H A D | ctf_mod.c | 141 symsect.cts_size = mp->symhdr->sh_size; 153 strsect.cts_size = mp->strhdr->sh_size;
|
/freebsd-10-stable/usr.sbin/crunch/crunchide/ |
H A D | exec_elf32.c | 304 shdrshdr.sh_size = htoxew(shdrsize); 336 if ((size = xewtoh(shstrtabshdr->sh_size)) == 0) 364 if ((size = xewtoh(layoutp[i].shdr->sh_size)) == 0) 394 nsyms = xewtoh(symtabshdr->sh_size) / xewtoh(symtabshdr->sh_entsize); 430 strtabshdr->sh_size = htoxew(nstrtab_nextoff); 438 xewtoh(layoutp[i - 1].shdr->sh_size); 474 size = xewtoh(layoutp[i].shdr->sh_size);
|
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_link.c | 77 dt_write(dtp, fd, (data), elf_file.shdr[(index)].sh_size) != \ 78 elf_file.shdr[(index)].sh_size) 562 shp->sh_size = sizeof (DTRACE_SHSTRTAB32); 564 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8); 571 shp->sh_size = dof->dofh_filesz; 573 off = shp->sh_offset + shp->sh_size; 580 shp->sh_size = de.de_strlen; 582 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4); 592 shp->sh_size = de.de_nsym * sizeof (Elf32_Sym); 594 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, [all...] |
/freebsd-10-stable/contrib/llvm/include/llvm/Object/ |
H A D | ELF.h | 360 (const char *)(base() + sec->sh_offset + sec->sh_size)); 370 (const char *)(base() + sec->sh_offset + sec->sh_size)); 423 unsigned vd_size = sec->sh_size; // Size of section in bytes 448 unsigned vn_size = sec->sh_size; // Size of section in bytes 526 if (Sec->sh_offset + Sec->sh_size > Buf->getBufferSize()) 529 return ArrayRef<uint8_t>(Start, Sec->sh_size); 578 if (strtab[sh->sh_size - 1] != 0) 588 return SectionHeaderTable->sh_size; 665 DynSymRegion.Size = SecI->sh_size; 669 DynStrRegion.Size = DynStr->sh_size; [all...] |
/freebsd-10-stable/sys/compat/linux/ |
H A D | linux_vdso.c | 127 if (shdr[i].sh_size == 0) 206 symcnt = shdr[i].sh_size / sizeof(*sym); 235 symcnt = shdr[__elfN(symtabindex)].sh_size / sizeof(*sym);
|
/freebsd-10-stable/contrib/binutils/bfd/ |
H A D | elfcode.h | 308 dst->sh_size = H_GET_WORD (abfd, src->sh_size); 331 H_PUT_WORD (abfd, src->sh_size, dst->sh_size); 696 i_ehdrp->e_shnum = i_shdr.sh_size; 697 if (i_ehdrp->e_shnum != i_shdr.sh_size 790 if (i_shdrp[shindex].sh_size != 0 955 rela_hdr->sh_size = rela_hdr->sh_entsize * sec->reloc_count; 956 rela_hdr->contents = bfd_alloc (abfd, rela_hdr->sh_size); 1079 i_shdrp[0]->sh_size [all...] |
H A D | elf64-sparc.c | 66 allocated = (PTR) bfd_malloc (rel_hdr->sh_size); 71 || bfd_bread (allocated, rel_hdr->sh_size, abfd) != rel_hdr->sh_size) 81 count = rel_hdr->sh_size / entsize; 329 rela_hdr->sh_size = rela_hdr->sh_entsize * count; 330 rela_hdr->contents = (PTR) bfd_alloc (abfd, rela_hdr->sh_size);
|
/freebsd-10-stable/contrib/binutils/binutils/ |
H A D | readelf.c | 3237 printf (" (%ld)", (long) section_headers[0].sh_size); 3254 elf_header.e_shnum = section_headers[0].sh_size; 3516 if (sec == NULL || sec->sh_size == 0) 3526 dynamic_size = sec->sh_size; 3659 internal->sh_size = BYTE_GET (shdrs[i].sh_size); 3699 internal->sh_size = BYTE_GET (shdrs[i].sh_size); 3722 esyms = get_data (NULL, file, section->sh_offset, 1, section->sh_size, 3733 1, symtab_shndx_hdr->sh_size, [all...] |
/freebsd-10-stable/sys/boot/i386/gptboot/ |
H A D | gptboot.c | 317 memcpy(p, &es[i].sh_size, sizeof(es[i].sh_size)); 318 p += sizeof(es[i].sh_size); 320 if (xfsread(ino, p, es[i].sh_size)) 322 p += es[i].sh_size;
|