| /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/external/bsd/elftoolchain/dist/libelf/ |
| elf_data.c | 55 uint64_t sh_align, sh_offset, sh_size, raw_size; local 90 sh_offset = (uint64_t) s->s_shdr.s_shdr32.sh_offset; 95 sh_offset = s->s_shdr.s_shdr64.sh_offset; 108 (sh_offset > raw_size || sh_size > raw_size - sh_offset))) { 168 e->e_rawfile + sh_offset, count, 230 uint64_t sh_align, sh_offset, sh_size, raw_size; local 253 sh_offset = (uint64_t) s->s_shdr.s_shdr32.sh_offset [all...] |
| gelf_shdr.c | 85 d->sh_offset = (Elf64_Off) sh32->sh_offset; 132 LIBELF_COPY_U32(sh32, s, sh_offset);
|
| /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/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/ |
| jit-elf-util.h | 62 ElfW (Sym) *symtab = (ElfW (Sym) *) (addr + shdr[i].sh_offset); 64 = (ElfW (Sym) *) (addr + shdr[i].sh_offset + shdr[i].sh_size); 66 = (char *) (addr + shdr[shdr[i].sh_link].sh_offset);
|
| /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/ |
| jit-elf-util.h | 62 ElfW (Sym) *symtab = (ElfW (Sym) *) (addr + shdr[i].sh_offset); 64 = (ElfW (Sym) *) (addr + shdr[i].sh_offset + shdr[i].sh_size); 66 = (char *) (addr + shdr[shdr[i].sh_link].sh_offset);
|
| /src/external/gpl3/binutils/dist/include/elf/ |
| internal.h | 108 file_ptr sh_offset; /* Section file offset in octets. */ member in struct:elf_internal_shdr 348 || ((bfd_vma) (sec_hdr)->sh_offset >= (segment)->p_offset \ 350 || ((sec_hdr)->sh_offset - (segment)->p_offset \ 352 && (((sec_hdr)->sh_offset - (segment)->p_offset \ 372 || ((bfd_vma) (sec_hdr)->sh_offset > (segment)->p_offset \ 373 && ((sec_hdr)->sh_offset - (segment)->p_offset \
|
| /src/external/gpl3/binutils.old/dist/include/elf/ |
| internal.h | 108 file_ptr sh_offset; /* Section file offset in octets. */ member in struct:elf_internal_shdr 348 || ((bfd_vma) (sec_hdr)->sh_offset >= (segment)->p_offset \ 350 || ((sec_hdr)->sh_offset - (segment)->p_offset \ 352 && (((sec_hdr)->sh_offset - (segment)->p_offset \ 372 || ((bfd_vma) (sec_hdr)->sh_offset > (segment)->p_offset \ 373 && ((sec_hdr)->sh_offset - (segment)->p_offset \
|
| /src/external/gpl3/gdb.old/dist/include/elf/ |
| internal.h | 108 file_ptr sh_offset; /* Section file offset in octets. */ member in struct:elf_internal_shdr 348 || ((bfd_vma) (sec_hdr)->sh_offset >= (segment)->p_offset \ 350 || ((sec_hdr)->sh_offset - (segment)->p_offset \ 352 && (((sec_hdr)->sh_offset - (segment)->p_offset \ 372 || ((bfd_vma) (sec_hdr)->sh_offset > (segment)->p_offset \ 373 && ((sec_hdr)->sh_offset - (segment)->p_offset \
|
| /src/external/gpl3/gdb/dist/include/elf/ |
| internal.h | 108 file_ptr sh_offset; /* Section file offset in octets. */ member in struct:elf_internal_shdr 348 || ((bfd_vma) (sec_hdr)->sh_offset >= (segment)->p_offset \ 350 || ((sec_hdr)->sh_offset - (segment)->p_offset \ 352 && (((sec_hdr)->sh_offset - (segment)->p_offset \ 372 || ((bfd_vma) (sec_hdr)->sh_offset > (segment)->p_offset \ 373 && ((sec_hdr)->sh_offset - (segment)->p_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/external/gpl3/binutils/dist/libiberty/ |
| simple-object-elf.c | 169 unsigned char sh_offset[4]; /* Section file offset */ member in struct:__anon10837 184 unsigned char sh_offset[8]; /* Section file offset */ member in struct:__anon10838 612 shstrhdr, sh_offset, Elf_Addr); 644 shdr, sh_offset, Elf_Addr); 849 unsigned int sh_offset, unsigned int sh_size, 874 ELF_SET_FIELD (fns, cl, Shdr, buf, sh_offset, Elf_Addr, sh_offset); 907 size_t sh_offset; local 939 sh_offset = shdr_offset + shnum * shdr_size; 998 new_sh_offset = sh_offset + mask [all...] |
| /src/external/gpl3/binutils.old/dist/libiberty/ |
| simple-object-elf.c | 169 unsigned char sh_offset[4]; /* Section file offset */ member in struct:__anon12294 184 unsigned char sh_offset[8]; /* Section file offset */ member in struct:__anon12295 612 shstrhdr, sh_offset, Elf_Addr); 644 shdr, sh_offset, Elf_Addr); 849 unsigned int sh_offset, unsigned int sh_size, 874 ELF_SET_FIELD (fns, cl, Shdr, buf, sh_offset, Elf_Addr, sh_offset); 907 size_t sh_offset; local 939 sh_offset = shdr_offset + shnum * shdr_size; 998 new_sh_offset = sh_offset + mask [all...] |
| /src/external/gpl3/gcc/dist/libiberty/ |
| simple-object-elf.c | 169 unsigned char sh_offset[4]; /* Section file offset */ member in struct:__anon14504 184 unsigned char sh_offset[8]; /* Section file offset */ member in struct:__anon14505 612 shstrhdr, sh_offset, Elf_Addr); 644 shdr, sh_offset, Elf_Addr); 849 unsigned int sh_offset, unsigned int sh_size, 874 ELF_SET_FIELD (fns, cl, Shdr, buf, sh_offset, Elf_Addr, sh_offset); 907 size_t sh_offset; local 939 sh_offset = shdr_offset + shnum * shdr_size; 998 new_sh_offset = sh_offset + mask [all...] |
| /src/external/gpl3/gcc.old/dist/libiberty/ |
| simple-object-elf.c | 169 unsigned char sh_offset[4]; /* Section file offset */ member in struct:__anon16915 184 unsigned char sh_offset[8]; /* Section file offset */ member in struct:__anon16916 612 shstrhdr, sh_offset, Elf_Addr); 644 shdr, sh_offset, Elf_Addr); 849 unsigned int sh_offset, unsigned int sh_size, 874 ELF_SET_FIELD (fns, cl, Shdr, buf, sh_offset, Elf_Addr, sh_offset); 907 size_t sh_offset; local 939 sh_offset = shdr_offset + shnum * shdr_size; 998 new_sh_offset = sh_offset + mask [all...] |
| /src/external/gpl3/gdb.old/dist/libiberty/ |
| simple-object-elf.c | 169 unsigned char sh_offset[4]; /* Section file offset */ member in struct:__anon527 184 unsigned char sh_offset[8]; /* Section file offset */ member in struct:__anon528 612 shstrhdr, sh_offset, Elf_Addr); 644 shdr, sh_offset, Elf_Addr); 849 unsigned int sh_offset, unsigned int sh_size, 874 ELF_SET_FIELD (fns, cl, Shdr, buf, sh_offset, Elf_Addr, sh_offset); 907 size_t sh_offset; local 939 sh_offset = shdr_offset + shnum * shdr_size; 998 new_sh_offset = sh_offset + mask [all...] |
| /src/external/gpl3/gdb/dist/libiberty/ |
| simple-object-elf.c | 169 unsigned char sh_offset[4]; /* Section file offset */ member in struct:__anon1217 184 unsigned char sh_offset[8]; /* Section file offset */ member in struct:__anon1218 612 shstrhdr, sh_offset, Elf_Addr); 644 shdr, sh_offset, Elf_Addr); 849 unsigned int sh_offset, unsigned int sh_size, 874 ELF_SET_FIELD (fns, cl, Shdr, buf, sh_offset, Elf_Addr, sh_offset); 907 size_t sh_offset; local 939 sh_offset = shdr_offset + shnum * shdr_size; 998 new_sh_offset = sh_offset + mask [all...] |
| /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 +
|