/freebsd-11-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-11-stable/contrib/elftoolchain/libelf/ |
H A D | elf_data.c | 45 uint64_t sh_align, sh_offset, sh_size, raw_size; local 81 sh_size = (uint64_t) s->s_shdr.s_shdr32.sh_size; 86 sh_size = s->s_shdr.s_shdr64.sh_size; 98 (sh_offset > raw_size || sh_size > raw_size - sh_offset))) { 109 if (sh_size % fsz) { 114 if (sh_size / fsz > SIZE_MAX) { 119 count = (size_t) (sh_size / fsz); 143 if (sh_type == SHT_NOBITS || sh_size 221 uint64_t sh_align, sh_offset, sh_size, raw_size; local [all...] |
H A D | gelf_shdr.c | 76 d->sh_size = (Elf64_Xword) sh32->sh_size; 123 LIBELF_COPY_U32(sh32, s, sh_size);
|
H A D | elf_update.c | 122 uint64_t sh_align, sh_entsize, sh_offset, sh_size; local 133 sh_size = (uint64_t) shdr32->sh_size; 139 sh_size = shdr64->sh_size; 161 * reuse the values in the 'sh_size' and 'sh_offset' 282 sh_size < scn_size || 310 sh_size = scn_size; 326 shdr32->sh_size = (uint32_t) sh_size; 728 uint64_t sh_off, sh_size; local [all...] |
H A D | libelf_extended.c | 60 scn->s_shdr.s_shdr32.sh_size = (Elf32_Word) shnum; 62 scn->s_shdr.s_shdr64.sh_size = shnum;
|
H A D | elf_strptr.c | 58 offset >= shdr.sh_size) {
|
/freebsd-11-stable/sys/arm/arm/ |
H A D | elf_trampoline.c | 536 shdr[i].sh_size <= 540 shdr[i].sh_size = 0; 545 shdr[i].sh_size != 0) { 557 shdr[symtabindex].sh_size); 559 shdr[symtabindex].sh_size), 561 kstart), shdr[symstrindex].sh_size); 563 lastaddr += shdr[symtabindex].sh_size; 565 sizeof(shdr[symtabindex].sh_size)); 566 lastaddr += sizeof(shdr[symstrindex].sh_size); 567 lastaddr += shdr[symstrindex].sh_size; [all...] |
/freebsd-11-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 | 329 ef->ddbsymcnt = shdr[symtabindex].sh_size / sizeof(Elf_Sym); 331 ef->ddbstrcnt = shdr[symstrindex].sh_size; 333 ef->shstrcnt = shdr[shstrindex].sh_size; 358 ef->progtab[pb].size = shdr[i].sh_size; 367 dpcpu = dpcpu_alloc(shdr[i].sh_size); 372 (uintmax_t)shdr[i].sh_size, 379 dpcpu_copy(dpcpu, shdr[i].sh_size); 386 vnet_data = vnet_data_alloc(shdr[i].sh_size); 391 (uintmax_t)shdr[i].sh_size, 398 vnet_data_copy(vnet_data, shdr[i].sh_size); [all...] |
/freebsd-11-stable/contrib/elftoolchain/elfcopy/ |
H A D | pe.c | 148 poh.oh_textsize = (uint32_t) roundup(sh.sh_size, 155 roundup(sh.sh_size, poh.oh_filealign); 158 roundup(sh.sh_size, poh.oh_filealign); 179 psh.sh_virtsize = sh.sh_size; 181 psh.sh_rawsize = roundup(sh.sh_size, poh.oh_filealign); 214 pb->pb_size = roundup(sh.sh_size, poh.oh_filealign); 219 memcpy(pb->pb_buf, d->d_buf, sh.sh_size);
|
/freebsd-11-stable/contrib/binutils/include/elf/ |
H A D | external.h | 106 unsigned char sh_size[4]; /* Size of section in bytes */ member in struct:__anon505 119 unsigned char sh_size[8]; /* Size of section in bytes */ member in struct:__anon506
|
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-11-stable/usr.sbin/kldxref/ |
H A D | ef_obj.c | 464 ef->ddbsymcnt = shdr[symtabindex].sh_size / sizeof(Elf_Sym); 466 shdr[symtabindex].sh_size, (void**)&ef->ddbsymtab) != 0) { 471 ef->ddbstrcnt = shdr[symstrindex].sh_size; 473 shdr[symstrindex].sh_size, (void**)&ef->ddbstrtab) != 0) { 483 ef->shstrcnt = shdr[shstrindex].sh_size; 485 shdr[shstrindex].sh_size, (void**)&ef->shstrtab) != 0) { 504 mapsize += shdr[i].sh_size; 536 shdr[i].sh_size, 543 bzero(ef->progtab[pb].addr, shdr[i].sh_size); 545 ef->progtab[pb].size = shdr[i].sh_size; [all...] |
/freebsd-11-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; 367 strs_mapsz = sp[shstrndx].sh_size + 392 if (shp->sh_name >= sp[shstrndx].sh_size || 393 lhp->sh_name >= sp[shstrndx].sh_size) 401 ctfsect.cts_size = shp->sh_size; 409 symsect.cts_size = shp->sh_size; 416 strsect.cts_size = lhp->sh_size; [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | output.c | 355 nent = shdr.sh_size / shdr.sh_entsize; 605 ddata->d_buf = xmalloc(ddata->d_size + shdr.sh_size + 607 bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size); 608 strcpy((caddr_t)ddata->d_buf + shdr.sh_size, 610 ctfnameoff = (off_t)shdr.sh_size; 611 shdr.sh_size += seclen + 1; 619 int nsym = shdr.sh_size / shdr.sh_entsize; 623 ddata->d_buf = xmalloc(shdr.sh_size); 624 bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size); 648 ddata->d_buf = xmalloc(shdr.sh_size); [all...] |
/freebsd-11-stable/stand/common/ |
H A D | load_elf_obj.c | 219 if (shdr[i].sh_size == 0) 231 lastaddr += shdr[i].sh_size; 244 lastaddr += shdr[i].sh_size; 255 lastaddr += shdr[ef->symtabindex].sh_size; 266 lastaddr += shdr[symstrindex].sh_size; 278 lastaddr += shdr[ef->shstrindex].sh_size; 289 lastaddr += shdr[i].sh_size; 325 cshdr->sh_size, (off_t)cshdr->sh_offset) != 0) { 451 *stopp = shdr[i].sh_addr + shdr[i].sh_size; 489 shdr[shdr[i].sh_info].sh_size) [all...] |
H A D | load_elf.c | 185 CONVERT_FIELD(b, sh_size, e); \ 617 chunk = shdr[ehdr->e_shstrndx].sh_size; 629 size = shdr[i].sh_size; 650 (shdr[i].sh_offset + shdr[i].sh_size <= 653 shdr[i].sh_size = 0; 657 if (shdr[i].sh_offset == 0 || shdr[i].sh_size == 0) 687 size = shdr[i].sh_size; 701 (uintmax_t)shdr[i].sh_size, (uintmax_t)shdr[i].sh_offset, 703 (uintmax_t)(lastaddr + shdr[i].sh_size)); 717 result = archsw.arch_readin(ef->fd, lastaddr, shdr[i].sh_size); [all...] |
/freebsd-11-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-11-stable/usr.sbin/crunch/crunchide/ |
H A D | exec_elf32.c | 305 shdrshdr.sh_size = htoxew(shdrsize); 337 if ((size = xewtoh(shstrtabshdr->sh_size)) == 0) 365 if ((size = xewtoh(layoutp[i].shdr->sh_size)) == 0) 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-11-stable/contrib/llvm-project/llvm/lib/ObjectYAML/ |
H A D | ELFEmitter.cpp | 367 To.sh_size = *From->ShSize; 449 SHeader.sh_size = *RawSec->Size; 469 SHeader.sh_size = S->Size; 633 SHeader.sh_size = writeContent(OS, RawSec->Content, RawSec->Size); 640 SHeader.sh_size = arrayDataSize(makeArrayRef(Syms)); 658 SHeader.sh_size = writeContent(OS, RawSec->Content, RawSec->Size); 661 SHeader.sh_size = STB.getSize(); 700 Ret.push_back({H.sh_offset, H.sh_size, H.sh_type, H.sh_addralign}); 775 SHeader.sh_size = writeContent(OS, Section.Content, Section.Size); 800 SHeader.sh_size [all...] |
/freebsd-11-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) 557 shp->sh_size = sizeof (DTRACE_SHSTRTAB32); 559 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8); 566 shp->sh_size = dof->dofh_filesz; 568 off = shp->sh_offset + shp->sh_size; 575 shp->sh_size = de.de_strlen; 577 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4); 587 shp->sh_size = de.de_nsym * sizeof (Elf32_Sym); 589 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, [all...] |
/freebsd-11-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-11-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...] |
/freebsd-11-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-11-stable/stand/i386/isoboot/ |
H A D | isoboot.c | 404 memcpy(p, &es[i].sh_size, 405 sizeof(es[i].sh_size)); 406 p += sizeof(es[i].sh_size); 408 if (xfsread(ino, p, es[i].sh_size)) 410 p += es[i].sh_size;
|