/freebsd-13-stable/sys/mips/mips/ |
H A D | elf_trampoline.c | 143 shdr[i].sh_size != 0) { 178 tmp = shdr[symtabindex].sh_size + 179 shdr[symstrindex].sh_size + 2*sizeof(Elf_Size); 183 tmp = shdr[symtabindex].sh_size; 185 lastaddr += sizeof(shdr[symtabindex].sh_size); 189 shdr[symtabindex].sh_size); 190 lastaddr += shdr[symtabindex].sh_size; 193 tmp = shdr[symstrindex].sh_size; 195 lastaddr += sizeof(shdr[symstrindex].sh_size); 200 shdr[symstrindex].sh_size); [all...] |
/freebsd-13-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-13-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-13-stable/sys/kern/ |
H A D | kern_ctf.c | 155 shstrtab = malloc(shdr[hdr->e_shstrndx].sh_size, M_LINKER, M_WAITOK); 159 shdr[hdr->e_shstrndx].sh_size, shdr[hdr->e_shstrndx].sh_offset, 221 raw = malloc(shdr[i].sh_size, M_LINKER, M_WAITOK); 227 sz = shdr[i].sh_size; 241 shdr[i].sh_size, shdr[i].sh_offset, UIO_SYSSPACE, IO_NODELOCKED, 264 zs.avail_in = shdr[i].sh_size - sizeof(ctf_hdr); 279 ef->ctfcnt = shdr[i].sh_size;
|
H A D | link_elf_obj.c | 457 ef->ddbsymcnt = shdr[symtabindex].sh_size / sizeof(Elf_Sym); 459 ef->ddbstrcnt = shdr[symstrindex].sh_size; 461 ef->shstrcnt = shdr[shstrindex].sh_size; 492 ef->progtab[pb].size = shdr[i].sh_size; 502 dpcpu = dpcpu_alloc(shdr[i].sh_size); 507 (uintmax_t)shdr[i].sh_size, 514 dpcpu_copy(dpcpu, shdr[i].sh_size); 521 vnet_data = vnet_data_alloc(shdr[i].sh_size); 526 (uintmax_t)shdr[i].sh_size, 533 vnet_data_copy(vnet_data, shdr[i].sh_size); [all...] |
/freebsd-13-stable/usr.sbin/kldxref/ |
H A D | ef_obj.c | 468 ef->ddbsymcnt = shdr[symtabindex].sh_size / sizeof(Elf_Sym); 470 shdr[symtabindex].sh_size, (void**)&ef->ddbsymtab) != 0) { 475 ef->ddbstrcnt = shdr[symstrindex].sh_size; 477 shdr[symstrindex].sh_size, (void**)&ef->ddbstrtab) != 0) { 487 ef->shstrcnt = shdr[shstrindex].sh_size; 489 shdr[shstrindex].sh_size, (void**)&ef->shstrtab) != 0) { 508 mapsize += shdr[i].sh_size; 540 shdr[i].sh_size, 547 bzero(ef->progtab[pb].addr, shdr[i].sh_size); 549 ef->progtab[pb].size = shdr[i].sh_size; [all...] |
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_lib.c | 171 dst->sh_size = src->sh_size; 315 shnum = x32.sh_size; 325 shnum = x64.sh_size; 368 strs_mapsz = sp[shstrndx].sh_size + 393 if (shp->sh_name >= sp[shstrndx].sh_size || 394 lhp->sh_name >= sp[shstrndx].sh_size) 402 ctfsect.cts_size = shp->sh_size; 410 symsect.cts_size = shp->sh_size; 417 strsect.cts_size = lhp->sh_size; [all...] |
/freebsd-13-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-13-stable/stand/common/ |
H A D | load_elf_obj.c | 259 if (shdr[i].sh_size == 0) 273 lastaddr += shdr[i].sh_size; 286 lastaddr += shdr[i].sh_size; 297 lastaddr += shdr[ef->symtabindex].sh_size; 308 lastaddr += shdr[symstrindex].sh_size; 320 lastaddr += shdr[ef->shstrindex].sh_size; 331 lastaddr += shdr[i].sh_size; 367 cshdr->sh_size, (off_t)cshdr->sh_offset) != 0) { 493 *stopp = shdr[i].sh_addr + shdr[i].sh_size; 531 shdr[shdr[i].sh_info].sh_size) [all...] |
H A D | load_elf.c | 197 CONVERT_FIELD(b, sh_size, e); \ 667 chunk = shdr[ehdr->e_shstrndx].sh_size; 679 size = shdr[i].sh_size; 700 (shdr[i].sh_offset + shdr[i].sh_size <= 703 shdr[i].sh_size = 0; 707 if (shdr[i].sh_offset == 0 || shdr[i].sh_size == 0) 737 size = shdr[i].sh_size; 751 (uintmax_t)shdr[i].sh_size, (uintmax_t)shdr[i].sh_offset, 753 (uintmax_t)(lastaddr + shdr[i].sh_size)); 767 result = archsw.arch_readin(VECTX_HANDLE(ef), lastaddr, shdr[i].sh_size); [all...] |
/freebsd-13-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-13-stable/contrib/llvm-project/llvm/lib/ObjectYAML/ |
H A D | ELFEmitter.cpp | 552 To.sh_size = *From->ShSize; 582 LocationCounter += Header.sh_size; 675 SHeader.sh_size = *RawSec->Size; 723 LocationCounter += SHeader.sh_size; 885 SHeader.sh_size = writeContent(CBA, RawSec->Content, RawSec->Size); 891 SHeader.sh_size = Syms.size() * sizeof(Elf_Sym); 892 CBA.write((const char *)Syms.data(), SHeader.sh_size); 911 SHeader.sh_size = writeContent(CBA, RawSec->Content, RawSec->Size); 915 SHeader.sh_size = STB.getSize(); 1006 SHeader.sh_size [all...] |
/freebsd-13-stable/usr.sbin/crunch/crunchide/ |
H A D | exec_elf32.c | 306 shdrshdr.sh_size = htoxew(shdrsize); 338 if ((size = xewtoh(shstrtabshdr->sh_size)) == 0) 366 if ((size = xewtoh(layoutp[i].shdr->sh_size)) == 0) 396 nsyms = xewtoh(symtabshdr->sh_size) / xewtoh(symtabshdr->sh_entsize); 432 strtabshdr->sh_size = htoxew(nstrtab_nextoff); 440 xewtoh(layoutp[i - 1].shdr->sh_size); 476 size = xewtoh(layoutp[i].shdr->sh_size);
|
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_link.c | 63 dt_write(dtp, fd, (data), elf_file.shdr[(index)].sh_size) != \ 64 elf_file.shdr[(index)].sh_size) 529 shp->sh_size = sizeof (DTRACE_SHSTRTAB32); 531 off = roundup2(shp->sh_offset + shp->sh_size, 8); 538 shp->sh_size = dof->dofh_filesz; 540 off = shp->sh_offset + shp->sh_size; 547 shp->sh_size = de.de_strlen; 549 off = roundup2(shp->sh_offset + shp->sh_size, 4); 559 shp->sh_size = de.de_nsym * sizeof (Elf32_Sym); 561 off = roundup2(shp->sh_offset + shp->sh_size, [all...] |
/freebsd-13-stable/sys/compat/linux/ |
H A D | linux_vdso.c | 131 if (shdr[i].sh_size == 0) 210 symcnt = shdr[i].sh_size / sizeof(*sym); 239 symcnt = shdr[__elfN(symtabindex)].sh_size / sizeof(*sym);
|
/freebsd-13-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;
|
/freebsd-13-stable/stand/i386/zfsboot/ |
H A D | zfsboot.c | 442 memcpy(p, &es[i].sh_size, 443 sizeof(es[i].sh_size)); 444 p += sizeof(es[i].sh_size); 446 size = es[i].sh_size; 447 if (read(fd, p, es[i].sh_size) != size) { 451 p += es[i].sh_size;
|
/freebsd-13-stable/contrib/elftoolchain/libdwarf/ |
H A D | libdwarf_elf_access.c | 56 ret_section->size = sh->sh_size;
|
/freebsd-13-stable/stand/mips/beri/boot2/ |
H A D | boot2.c | 367 *(Elf32_Word *)p = es[i].sh_size; 368 p += sizeof(es[i].sh_size); 370 if (xfsread(ino, p, es[i].sh_size)) 372 p += es[i].sh_size;
|
/freebsd-13-stable/usr.bin/gprof/ |
H A D | elf.c | 101 symtabct = sh_symtab->sh_size / sh_symtab->sh_entsize;
|
/freebsd-13-stable/lib/libc/gen/ |
H A D | nlist.c | 174 symsize = shdr[i].sh_size; 176 symstrsize = shdr[shdr[i].sh_link].sh_size;
|