/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_lib.c | 146 dst->sh_offset = src->sh_offset; 155 * In order to mmap a section from the ELF file, we must round down sh_offset 344 (sp[shstrndx].sh_offset & ~_PAGEMASK); 347 fd, sp[shstrndx].sh_offset & _PAGEMASK); 350 (sp[shstrndx].sh_offset & ~_PAGEMASK); 379 ctfsect.cts_offset = (off64_t)shp->sh_offset; 387 symsect.cts_offset = (off64_t)shp->sh_offset; 394 strsect.cts_offset = (off64_t)lhp->sh_offset;
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | shdr.c | 44 EC_OFF(shdr->sh_offset), EC_XWORD(shdr->sh_entsize)); 51 EC_OFF(shdr->sh_offset), EC_XWORD(shdr->sh_entsize),
|
H A D | elf.c | 115 dbg_print(lml, MSG_ORIG(MSG_SHD0_OFFSET), EC_OFF(shdr0->sh_offset),
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | i386_elf.h | 66 Elf32_Off sh_offset; /* Offset in file. */ member in struct:__anon2090
|
/illumos-gate/usr/src/lib/libelfsign/common/ |
H A D | elfsignlib.c | 523 sig_offset < shdr.sh_offset + shdr.sh_size) { 524 sig_offset = shdr.sh_offset + shdr.sh_size; 596 shdr.sh_offset = sig_offset; 703 scn_offset = shdr.sh_offset; 715 name ? name : "NULL", shdr.sh_offset, shdr.sh_size, new_size); 721 prev_end = shdr.sh_offset + shdr.sh_size; 732 if (shdr.sh_offset <= scn_offset) 754 * insert into list in order of sh_offset 758 name ? name : "NULL", shdr.sh_offset); 766 tmpscnip->scni_offset = shdr.sh_offset; [all...] |
/illumos-gate/usr/src/cmd/sgs/tools/common/ |
H A D | leb128.c | 202 * sh_offset - Offset relative to sh_base of desired datum. 209 boolean_t frame_hdr, uint64_t sh_base, uint64_t sh_offset, 306 result += sh_base + sh_offset; 207 dwarf_ehe_extract(unsigned char *data, size_t len, uint64_t *dotp, uint64_t *ret, uint_t ehe_flags, unsigned char *eident, boolean_t frame_hdr, uint64_t sh_base, uint64_t sh_offset, uint64_t dbase) argument
|
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sym.c | 191 if (lseek(fd, sh[i].sh_offset, SEEK_SET) != sh[i].sh_offset || 193 lseek(fd, sh[sh[i].sh_link].sh_offset, SEEK_SET) != 194 sh[sh[i].sh_link].sh_offset ||
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | ksyms_snapshot.c | 170 shp->sh_offset = kw.kw_size[KW_HEADER]; 180 shp->sh_offset = kw.kw_size[KW_HEADER] + 188 shp->sh_offset = offsetof(ksyms_header_t, shstrings);
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_link.c | 62 (lseek64(fd, (off64_t)elf_file.shdr[(index)].sh_offset, SEEK_SET) != \ 63 (off64_t)elf_file.shdr[(index)].sh_offset || \ 506 shp->sh_offset = off; 509 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8); 515 shp->sh_offset = off; 518 off = shp->sh_offset + shp->sh_size; 524 shp->sh_offset = off; 527 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4); 535 shp->sh_offset = off; 539 off = P2ROUNDUP(shp->sh_offset [all...] |
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | shdr.c | 55 SHDR_CMD_T_SH_OFFSET = 8, /* shdr:sh_offset */ 318 EC_XWORD(shdr->sh_offset)); 651 Off sh_offset; local 653 sh_offset = elfedit_atoui(argstate.argv[1], NULL); 654 if (shdr->sh_offset == sh_offset) { 659 EC_XWORD(shdr->sh_offset)); 665 EC_XWORD(shdr->sh_offset), 666 EC_XWORD(sh_offset)); 668 shdr->sh_offset [all...] |
H A D | phdr.c | 311 (interp->phdr->p_offset >= strsec->sec_shdr->sh_offset) && 313 (strsec->sec_shdr->sh_offset + 318 strsec->sec_shdr->sh_offset; 573 if ((strsec->sec_shdr->sh_offset >= 575 ((strsec->sec_shdr->sh_offset + 639 interp.phdr->p_offset = strsec->sec_shdr->sh_offset + str_offset;
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Psymtab_machelf32.c | 497 sp->sh_offset = off; 518 sp->sh_offset = off; 546 sp->sh_offset = off; 572 sp->sh_offset = off; 596 sp->sh_offset = off; 697 sp->sh_offset = off;
|
H A D | Pcore.c | 1437 b->shdr[1].sh_offset = off + base; 1444 symtab->sh_offset) != b->shdr[1].sh_size) { 1455 b->shdr[2].sh_offset = off + base; 1460 strtab->sh_offset) != b->shdr[2].sh_size) { 1503 b->shdr[1].sh_offset = off + base; 1510 symtab->sh_offset) != b->shdr[1].sh_size) { 1520 b->shdr[2].sh_offset = off + base; 1525 strtab->sh_offset) != b->shdr[2].sh_size) { 1587 dst->sh_offset = (Elf64_Off)src->sh_offset; [all...] |
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | load_elf.c | 525 shstr = alloc_pread(ef->fd, shdr[ehdr->e_shstrndx].sh_offset, chunk); 553 if (shdr[i].sh_offset >= phdr[j].p_offset && 554 (shdr[i].sh_offset + shdr[i].sh_size <= 556 shdr[i].sh_offset = 0; 561 if (shdr[i].sh_offset == 0 || shdr[i].sh_size == 0) 598 (uintmax_t)shdr[i].sh_size, (uintmax_t)shdr[i].sh_offset, 606 if (lseek(ef->fd, (off_t)shdr[i].sh_offset, SEEK_SET) == -1) { 810 shstrtab = alloc_pread(ef.fd, shdr[ef.ehdr->e_shstrndx].sh_offset, 839 err = kern_pread(ef.fd, dest, sh_meta->sh_size, sh_meta->sh_offset); 851 sh_data[0]->sh_offset); [all...] |
H A D | load_elf_obj.c | 306 lshdr->sh_offset >= shdr[i].sh_offset) 310 cshdr->sh_offset > shdr[i].sh_offset) 318 cshdr->sh_size, (off_t)cshdr->sh_offset) != 0) {
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | update.c | 282 sh->sh_offset = (Off)hi; 421 (hi < sh->sh_offset + sh->sh_size)) 422 hi = sh->sh_offset + sh->sh_size; 583 char *start = image + sh->sh_offset; 608 if (fill && (sh->sh_offset > hi)) { 609 sz = sh->sh_offset - hi; 662 hi = sh->sh_offset + sh->sh_size;
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | i386-elf.h | 109 Elf32_Off sh_offset; /* Section file offset */ member in struct:__anon2185
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | elf32.h | 94 Elf32_Off sh_offset; /* Offset in file. */ member in struct:__anon409
|
H A D | elf64.h | 103 Elf64_Off sh_offset; /* Offset in file. */ member in struct:__anon426
|
/illumos-gate/usr/src/cmd/file/ |
H A D | elf_read.c | 442 if (pread64(EI->elffd, strtab, shdr->sh_size, shdr->sh_offset) 460 cap_off = shdr->sh_offset;
|
/illumos-gate/usr/src/cmd/sgs/mcs/common/ |
H A D | file.c | 461 == shdr->sh_offset)) 465 state->off_table[scn_index] = shdr->sh_offset; 1010 dst_shdr.sh_offset = new_offset; 1045 dst_shdr.sh_offset = new_offset; 1047 dst_shdr.sh_offset = 0; 1110 dst_shdr.sh_offset = new_offset; /* UPDATE fields */ 1209 ph->p_offset = (Elf32_Off)nshdr.sh_offset; 1213 ph->p_offset = (Elf64_Off)nshdr.sh_offset; 1507 return (location(shdr.sh_offset + shdr.sh_size, 0, elf, state)); 1509 return (location(shdr.sh_offset [all...] |
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | fake_shdr.c | 916 sec->shdr->sh_offset = sec->offset; 926 sec->shdr->sh_offset = sec->offset; 933 sec->shdr->sh_offset = map_addr_to_offset(fstate, 936 if (sec->shdr->sh_offset == 0) { 1024 (read_data(fstate, sec->shdr->sh_offset, sec->data->d_buf,
|
/illumos-gate/usr/src/tools/ctf/cvt/ |
H A D | output.c | 548 shdr.sh_offset = new_offset; 613 new_offset = (off_t)shdr.sh_offset; 637 shdr.sh_offset = new_offset;
|
/illumos-gate/usr/src/cmd/mdb/intel/modules/mdb_kb/ |
H A D | mdb_kb.c | 1014 shp->sh_offset = sizeof (xkb_namelist_t); 1020 shp->sh_addr = (Addr)(xkb->xkb_namelist + shp->sh_offset); 1026 shp->sh_offset = sizeof (xkb_namelist_t) + 1030 shp->sh_addr = (Addr)(xkb->xkb_namelist + shp->sh_offset); 1036 shp->sh_offset = offsetof(xkb_namelist_t, shstrings); 1039 shp->sh_addr = (Addr)(xkb->xkb_namelist + shp->sh_offset); 1273 if (!PAGE_ALIGNED(sect->gs_shdr.sh_offset)) 1279 xkb->xkb_pages_off = sect->gs_shdr.sh_offset;
|
/illumos-gate/usr/src/ucblib/libucb/port/gen/ |
H A D | nlist.c | 200 if ((symdata = elf_read(fd, (long)symhdr->sh_offset, 225 if ((strdata = elf_read(fd, strhdr->sh_offset, strhdr->sh_size,
|