/src/sys/lib/libsa/ |
lookup_elf32.c | 72 if (shp[i].sh_offset == 0) 74 symtab_start = (Elf_Sym*)((char*)sstab + shp[i].sh_offset); 75 symtab_end = (Elf_Sym*)((char*)sstab + shp[i].sh_offset 78 if (shp[j].sh_offset == 0) 80 strtab_start = (char*)sstab + shp[j].sh_offset; 81 strtab_end = (char*)sstab + shp[j].sh_offset + shp[j].sh_size;
|
loadfile_elf32.c | 198 I32(shdr->sh_offset); 209 I64(shdr->sh_offset); 229 E32(shdr->sh_offset); 240 E64(shdr->sh_offset); 422 shdr[i].sh_offset, addr, size); 434 shdr[i].sh_offset = addr - elfp; 460 shdr[i].sh_offset = 0; 467 shdr[i].sh_offset, addr, size); 471 shdr[i].sh_offset = maxp - elfp; 544 Elf_Off shstroff = shp[elf->e_shstrndx].sh_offset; [all...] |
/src/sys/arch/amd64/stand/prekern/ |
elf.c | 167 sec->sh_offset); 176 sec->sh_offset + sec->sh_size); 310 * Fix up the 'sh_offset' field of the REL/RELA/SYM/STR sections, which 320 if (eif.shdr[i].sh_offset == 0) { 326 offboot = basepa + eif.shdr[i].sh_offset - bootpa; 328 /* We want (headva + sh_offset) to be the VA of the region. */ 329 eif.shdr[i].sh_offset = (bootva + offboot - headva); 358 secpa = basepa + shdr->sh_offset; 361 ASSERT(shdr->sh_offset != 0); 368 * Fix up the 'sh_offset' field of the NOBITS/PROGBITS sections [all...] |
/src/sys/arch/atari/stand/tostools/libtos/ |
elf.c | 187 if (shp[i].sh_offset == 0) 191 if (lseek(fd, (off_t)shp[i].sh_offset, SEEK_SET) != 192 shp[i].sh_offset) 197 shp[i].sh_offset = p - symtab; 200 if (shp[j].sh_offset == 0) 204 if (lseek(fd, (off_t)shp[j].sh_offset, SEEK_SET) != 205 shp[j].sh_offset) 210 shp[j].sh_offset = p - symtab;
|
/src/sys/arch/x68k/stand/common/ |
exec_sub.c | 167 shstrtab = top + shstr->sh_offset; 222 shstr->sh_offset = dpos; 226 top + sym->sh_offset, sym->sh_size); 228 sym->sh_offset = dpos; 232 top + str->sh_offset, str->sh_size); 234 str->sh_offset = dpos; 239 top + stab->sh_offset, stab->sh_size); 241 stab->sh_offset = dpos;
|
/src/usr.bin/crunch/crunchide/ |
exec_elf32.c | 205 if (shdrp[i].sh_offset > maxoff) { 206 maxoff = shdrp[i].sh_offset; 216 stroff = shdrp[strtabsnum].sh_offset; 248 if ((size_t)xreadatoff(fd, symtabp, shdrp[symtabsnum].sh_offset, 256 if ((size_t)xreadatoff(fd, strtabp, shdrp[strtabsnum].sh_offset, 311 if ((size_t)xwriteatoff(fd, symtabp, shdrp[symtabsnum].sh_offset, 314 if ((size_t)xwriteatoff(fd, nstrtabp, shdrp[strtabsnum].sh_offset,
|
/src/usr.sbin/kvm_mkdb/ |
nlist_elf32.c | 224 if (symshdrp->sh_offset == 0) 226 if (check(symshdrp->sh_offset, symshdrp->sh_size)) 228 if (check(symstrshdrp->sh_offset, symstrshdrp->sh_size)) 231 symp = (Elf_Sym *)&mappedfile[symshdrp->sh_offset]; 233 strtab = &mappedfile[symstrshdrp->sh_offset]; 353 shdrp[symp[i].st_shndx].sh_offset]);
|
/src/sys/ddb/ |
db_elf.c | 163 if (shp[i].sh_offset == 0) 167 shp[i].sh_offset); 169 shp[i].sh_offset + shp[i].sh_size); 172 if (shp[j].sh_offset == 0) 174 strtab_start = (char *)symtab + shp[j].sh_offset; 175 strtab_end = (char *)symtab + shp[j].sh_offset + 231 return ((char*)elf + shp[shp[i].sh_link].sh_offset);
|
/src/lib/libc/gen/ |
nlist_elf32.c | 257 if (symshdrp == NULL || symshdrp->sh_offset == 0) 261 if (check(symshdrp->sh_offset, symshdrp->sh_size)) 263 if (check(symstrshdrp->sh_offset, symstrshdrp->sh_size)) 266 symp = (void *)&mappedfile[(size_t)symshdrp->sh_offset]; 268 strtab = &mappedfile[(size_t)symstrshdrp->sh_offset];
|
/src/usr.sbin/lockstat/ |
elf32.c | 136 if (i == ehdr.e_shnum || symhdr.sh_offset == 0) 151 sz = pread(fd, symp, symhdr.sh_size, symhdr.sh_offset); 157 sz = pread(fd, strp, strhdr.sh_size, strhdr.sh_offset);
|
/src/sys/arch/hpc/stand/hpcboot/ |
load_elf.cpp | 226 _file->read(shstrtab, shstrsize, _sh[_eh.e_shstrndx].sh_offset); 230 _sym_blk.stroff = sh->sh_offset; 233 _sym_blk.symoff = sh->sh_offset; 236 sh->sh_offset = (i == _eh.e_shstrndx) ? shstrtab_offset : 0; 254 _sym_blk.shsym->sh_offset = shstrtab_offset + shstrsize; 255 _sym_blk.shstr->sh_offset = shstrtab_offset + shstrsize +
|
/src/sys/arch/sun3/sun3x/ |
locore2.c | 125 minsym = uimin(minsym, (vaddr_t)end + shp[i].sh_offset); 126 maxsym = uimax(maxsym, (vaddr_t)end + shp[i].sh_offset +
|
/src/sys/arch/amiga/stand/bootblock/elf2bb/ |
elf2bb.c | 162 be32toh(sh[be16toh(eh->e_shstrndx)].sh_offset)); 173 be32toh(sh[i].sh_addr), be32toh(sh[i].sh_offset), 198 be32toh(sh[i].sh_offset)); 201 strtab = image + be32toh(sh[i].sh_offset); 258 l, be32toh(sh[i].sh_size), be32toh(sh[i].sh_offset), 262 image + be32toh(sh[i].sh_offset), 329 ra = (Elf32_Rela *)(image + be32toh(sh[i].sh_offset));
|
/src/sys/dev/ |
kloader.c | 231 sh[eh.e_shstrndx].sh_size, sh[eh.e_shstrndx].sh_offset); 232 kloader_read(sh[eh.e_shstrndx].sh_offset, sh[eh.e_shstrndx].sh_size, 270 sh[i].sh_offset = 0; 319 symoff = sh[symndx].sh_offset; 320 stroff = sh[strndx].sh_offset; 332 sh[eh.e_shstrndx].sh_offset = eoff; 335 sh[symndx].sh_offset = eoff; 338 sh[strndx].sh_offset = eoff;
|
/src/sys/arch/sun2/sun2/ |
locore2.c | 141 minsym = uimin(minsym, (vaddr_t)end + shp[i].sh_offset); 142 maxsym = uimax(maxsym, (vaddr_t)end + shp[i].sh_offset +
|
/src/sys/arch/sun3/sun3/ |
locore2.c | 145 minsym = uimin(minsym, (vaddr_t)end + shp[i].sh_offset); 146 maxsym = uimax(maxsym, (vaddr_t)end + shp[i].sh_offset +
|
/src/sys/arch/hpcmips/stand/pbsdboot/ |
elf.c | 294 dbg_sh[0].sh_offset = dbg_hdr_size; 298 dbg_sh[1].sh_offset = dbg_hdr_size + shtbl[sh_symidx].sh_size; 308 if (lseek(fd, shtbl[sh_symidx].sh_offset, SEEK_SET) == -1) { 321 if (lseek(fd, shtbl[sh_stridx].sh_offset, SEEK_SET) == -1) {
|
/src/sys/arch/landisk/landisk/ |
machdep.c | 170 if (sh->sh_offset > 0 && 171 (sh->sh_offset + sh->sh_size) > symbolsize) { 172 symbolsize = sh->sh_offset + sh->sh_size;
|
/src/sys/kern/ |
kern_ksyms.c | 540 if (shdr[i].sh_offset == 0) 542 symstart = (uint8_t *)start + shdr[i].sh_offset; 545 if (shdr[j].sh_offset == 0) 547 strstart = (uint8_t *)start + shdr[j].sh_offset; 557 shdr[ehdr->e_shstrndx].sh_offset; 567 ctfstart = (uint8_t *)start + shdr[i].sh_offset; 1016 ksyms_hdr.kh_shdr[SHNOTE].sh_offset = 1026 ksyms_hdr.kh_shdr[SYMTAB].sh_offset = sizeof(struct ksyms_hdr); 1036 /* ksyms_hdr.kh_shdr[STRTAB].sh_offset = filled in at open */ 1044 ksyms_hdr.kh_shdr[SHSTRTAB].sh_offset [all...] |
/src/usr.sbin/paxctl/ |
paxctl.c | 244 if (pread(fd, &n, NHSIZE, (off_t)SH(sh_offset)) != NHSIZE) { 252 if (pread(fd, &pax_tag, sizeof(pax_tag), SH(sh_offset) + NHSIZE) 297 (off_t)SH(sh_offset) + NHSIZE) != sizeof(pax_tag))
|
/src/sys/arch/hpcmips/hpcmips/ |
machdep.c | 231 if (sh->sh_offset > 0 && 232 (sh->sh_offset + sh->sh_size) > symbolsz) 233 symbolsz = sh->sh_offset + sh->sh_size;
|
/src/sys/arch/x68k/stand/aout2hux/ |
aout68k.h | 130 be_uint32_t sh_offset; member in struct:elf_m68k_shdr
|
/src/sys/arch/i386/stand/lib/ |
exec_multiboot1.c | 81 shoffset = shdrp64->sh_offset; 88 shoffset = shdrp32->sh_offset;
|
/src/sys/compat/linux/common/ |
linux_exec_elf32.c | 121 const off_t stroff = sh[shstrndx].sh_offset; 192 error = exec_read(l, epp->ep_vp, s->sh_offset, tbuf, 246 const off_t stroff = sh[shstrndx].sh_offset; 307 const off_t stroff = sh[shstrndx].sh_offset; 334 error = exec_read(l, epp->ep_vp, sh[i].sh_offset, tmp,
|
/src/sys/arch/evbarm/ixm1200/ |
ixm1200_machdep.c | 357 if (sh->sh_offset > 0 && 358 (sh->sh_offset + sh->sh_size) > symbolsize) 359 symbolsize = sh->sh_offset + sh->sh_size;
|