/freebsd-10.0-release/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.0-release/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.0-release/sys/arm/arm/ |
H A D | elf_trampoline.c | 516 shdr[i].sh_size <= 520 shdr[i].sh_size = 0; 525 shdr[i].sh_size != 0) { 537 shdr[symtabindex].sh_size); 539 shdr[symtabindex].sh_size), 541 kstart), shdr[symstrindex].sh_size); 543 lastaddr += shdr[symtabindex].sh_size; 545 sizeof(shdr[symtabindex].sh_size)); 546 lastaddr += sizeof(shdr[symstrindex].sh_size); 547 lastaddr += shdr[symstrindex].sh_size; [all...] |
/freebsd-10.0-release/contrib/binutils/include/elf/ |
H A D | external.h | 106 unsigned char sh_size[4]; /* Size of section in bytes */ member in struct:__anon515 119 unsigned char sh_size[8]; /* Size of section in bytes */ member in struct:__anon516
|
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.0-release/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.0-release/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.0-release/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.0-release/sys/kern/ |
H A D | kern_ctf.c | 174 if ((shstrtab = malloc(shdr[hdr->e_shstrndx].sh_size, M_LINKER, 182 shdr[hdr->e_shstrndx].sh_size, shdr[hdr->e_shstrndx].sh_offset, 241 if ((raw = malloc(shdr[i].sh_size, M_LINKER, M_WAITOK)) == NULL) { 250 sz = shdr[i].sh_size; 267 shdr[i].sh_size, shdr[i].sh_offset, UIO_SYSSPACE, IO_NODELOCKED, 292 zs.avail_in = shdr[i].sh_size - sizeof(ctf_hdr); 305 ef->ctfcnt = shdr[i].sh_size;
|
H A D | link_elf_obj.c | 313 ef->ddbsymcnt = shdr[symtabindex].sh_size / sizeof(Elf_Sym); 315 ef->ddbstrcnt = shdr[symstrindex].sh_size; 317 ef->shstrcnt = shdr[shstrindex].sh_size; 333 ef->progtab[pb].size = shdr[i].sh_size; 342 dpcpu = dpcpu_alloc(shdr[i].sh_size); 349 dpcpu_copy(dpcpu, shdr[i].sh_size); 356 vnet_data = vnet_data_alloc(shdr[i].sh_size); 363 vnet_data_copy(vnet_data, shdr[i].sh_size); 379 ef->reltab[rl].nrel = shdr[i].sh_size / sizeof(Elf_Rel); 386 shdr[i].sh_size / sizeo [all...] |
/freebsd-10.0-release/sys/boot/common/ |
H A D | load_elf_obj.c | 226 if (shdr[i].sh_size == 0) 233 lastaddr += shdr[i].sh_size; 246 lastaddr += shdr[i].sh_size; 257 lastaddr += shdr[ef->symtabindex].sh_size; 268 lastaddr += shdr[symstrindex].sh_size; 280 lastaddr += shdr[ef->shstrindex].sh_size; 289 lastaddr += shdr[i].sh_size; 325 cshdr->sh_size, (off_t)cshdr->sh_offset) != 0) { 450 *stopp = shdr[i].sh_addr + shdr[i].sh_size; 488 shdr[shdr[i].sh_info].sh_size) [all...] |
H A D | load_elf.c | 411 (shdr[i].sh_offset + shdr[i].sh_size <= 414 shdr[i].sh_size = 0; 418 if (shdr[i].sh_offset == 0 || shdr[i].sh_size == 0) 449 size = shdr[i].sh_size; 455 (uintmax_t)shdr[i].sh_size, (uintmax_t)shdr[i].sh_offset, 456 (uintmax_t)lastaddr, (uintmax_t)(lastaddr + shdr[i].sh_size)); 469 result = archsw.arch_readin(ef->fd, lastaddr, shdr[i].sh_size); 470 if (result < 0 || (size_t)result != shdr[i].sh_size) { 472 (uintmax_t)shdr[i].sh_size); 478 lastaddr += shdr[i].sh_size; [all...] |
/freebsd-10.0-release/usr.sbin/crunch/crunchide/ |
H A D | exec_elf32.c | 312 shdrshdr.sh_size = htoxew(shdrsize); 344 if ((shstrtabp = xmalloc(xewtoh(shstrtabshdr->sh_size), fn, 348 xewtoh(shstrtabshdr->sh_size), fn) != xewtoh(shstrtabshdr->sh_size)) 369 size = xewtoh(layoutp[i].shdr->sh_size); 395 nsyms = xewtoh(symtabshdr->sh_size) / xewtoh(symtabshdr->sh_entsize); 431 strtabshdr->sh_size = htoxew(nstrtab_nextoff); 439 xewtoh(layoutp[i - 1].shdr->sh_size); 475 size = xewtoh(layoutp[i].shdr->sh_size);
|
/freebsd-10.0-release/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.0-release/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) 553 shp->sh_size = sizeof (DTRACE_SHSTRTAB32); 555 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8); 562 shp->sh_size = dof->dofh_filesz; 564 off = shp->sh_offset + shp->sh_size; 571 shp->sh_size = de.de_strlen; 573 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4); 583 shp->sh_size = de.de_nsym * sizeof (Elf32_Sym); 585 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, [all...] |
/freebsd-10.0-release/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);
|
H A D | elf.c | 269 shstrtabsize = i_shdrp[shindex]->sh_size; 309 if (strindex >= hdr->sh_size) 314 abfd, strindex, (unsigned long) hdr->sh_size, 379 if (shndx_hdr == NULL || shndx_hdr->sh_size == 0) 510 section with just a flag word (ie. sh_size is 4), ignore it. */ 516 && (shdr)->sh_size >= (2 * GRP_ENTRY_SIZE) \ 518 && ((shdr)->sh_size % GRP_ENTRY_SIZE) == 0) 561 amt = shdr->sh_size * sizeof (*dest) / 4; 562 shdr->contents = bfd_alloc2 (abfd, shdr->sh_size, 568 (_("%B: Corrupt size field in group section header: 0x%lx"), abfd, shdr->sh_size); [all...] |
/freebsd-10.0-release/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.0-release/sys/boot/i386/gptboot/ |
H A D | gptboot.c | 319 memcpy(p, &es[i].sh_size, sizeof(es[i].sh_size)); 320 p += sizeof(es[i].sh_size); 322 if (xfsread(ino, p, es[i].sh_size)) 324 p += es[i].sh_size;
|
/freebsd-10.0-release/usr.bin/gprof/ |
H A D | elf.c | 99 symtabct = sh_symtab->sh_size / sh_symtab->sh_entsize;
|