/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_link.c | 61 (lseek64(fd, (off64_t)elf_file.shdr[(index)].sh_offset, SEEK_SET) != \ 62 (off64_t)elf_file.shdr[(index)].sh_offset || \ 505 shp->sh_offset = off; in dump_elf32() 508 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8); in dump_elf32() 514 shp->sh_offset = off; in dump_elf32() 517 off = shp->sh_offset + shp->sh_size; in dump_elf32() 523 shp->sh_offset = off; in dump_elf32() 526 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4); in dump_elf32() 534 shp->sh_offset = off; in dump_elf32() 538 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4); in dump_elf32() [all …]
|
/illumos-gate/usr/src/lib/libelfsign/common/ |
H A D | elfsignlib.c | 523 sig_offset < shdr.sh_offset + shdr.sh_size) { in elfsign_signatures() 524 sig_offset = shdr.sh_offset + shdr.sh_size; in elfsign_signatures() 596 shdr.sh_offset = sig_offset; in elfsign_signatures() 703 scn_offset = shdr.sh_offset; in elfsign_adjustoffsets() 715 name ? name : "NULL", shdr.sh_offset, shdr.sh_size, new_size); in elfsign_adjustoffsets() 721 prev_end = shdr.sh_offset + shdr.sh_size; in elfsign_adjustoffsets() 732 if (shdr.sh_offset <= scn_offset) in elfsign_adjustoffsets() 758 name ? name : "NULL", shdr.sh_offset); in elfsign_adjustoffsets() 766 tmpscnip->scni_offset = shdr.sh_offset; in elfsign_adjustoffsets() 786 if (shdr.sh_offset >= prev_end) in elfsign_adjustoffsets() [all …]
|
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | shdr.c | 318 EC_XWORD(shdr->sh_offset)); in print_shdr() 651 Off sh_offset; in cmd_body() local 653 sh_offset = elfedit_atoui(argstate.argv[1], NULL); in cmd_body() 654 if (shdr->sh_offset == sh_offset) { in cmd_body() 659 EC_XWORD(shdr->sh_offset)); in cmd_body() 665 EC_XWORD(shdr->sh_offset), in cmd_body() 666 EC_XWORD(sh_offset)); in cmd_body() 668 shdr->sh_offset = sh_offset; in cmd_body()
|
H A D | shdr.msg | 148 Integer value to set for symbol sh_offset field. The value\n\ 149 of sh_offset gives the byte offset from the beginning of\n\ 300 The shdr:sh_offset command is used to display or alter the\n\ 301 sh_offset field of the specified section.\n\ 303 sh_offset provides the byte offset from the beginning of\n\ 308 If shdr:sh_offset is called without arguments, the value\n\ 309 of sh_offset for every section in the section header array\n\ 312 present, the sh_offset field of the section at the specified\n\ 392 @ MSG_CMD_SH_OFFSET "sh_offset"
|
H A D | phdr.c | 311 (interp->phdr->p_offset >= strsec->sec_shdr->sh_offset) && in locate_interp() 313 (strsec->sec_shdr->sh_offset + in locate_interp() 318 strsec->sec_shdr->sh_offset; in locate_interp() 573 if ((strsec->sec_shdr->sh_offset >= in cmd_body_set_interp() 575 ((strsec->sec_shdr->sh_offset + in cmd_body_set_interp() 639 interp.phdr->p_offset = strsec->sec_shdr->sh_offset + str_offset; in cmd_body_set_interp()
|
/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 || in __fex_read_syms() 193 lseek(fd, sh[sh[i].sh_link].sh_offset, SEEK_SET) != in __fex_read_syms() 194 sh[sh[i].sh_link].sh_offset || in __fex_read_syms()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Psymtab_machelf32.c | 497 sp->sh_offset = off; in fake_elf64() 518 sp->sh_offset = off; in fake_elf64() 546 sp->sh_offset = off; in fake_elf64() 572 sp->sh_offset = off; in fake_elf64() 596 sp->sh_offset = off; in fake_elf64() 698 sp->sh_offset = off; in fake_elf64()
|
H A D | Pcore.c | 1539 b->shdr[1].sh_offset = off + base; in fake_up_symtab() 1546 symtab->sh_offset) != b->shdr[1].sh_size) { in fake_up_symtab() 1557 b->shdr[2].sh_offset = off + base; in fake_up_symtab() 1562 strtab->sh_offset) != b->shdr[2].sh_size) { in fake_up_symtab() 1605 b->shdr[1].sh_offset = off + base; in fake_up_symtab() 1612 symtab->sh_offset) != b->shdr[1].sh_size) { in fake_up_symtab() 1622 b->shdr[2].sh_offset = off + base; in fake_up_symtab() 1627 strtab->sh_offset) != b->shdr[2].sh_size) { in fake_up_symtab() 1689 dst->sh_offset = (Elf64_Off)src->sh_offset; in core_shdr_to_gelf() 2285 shp->sh_offset) != shstrtabsz) { in core_load_shdrs() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | update.c | 285 sh->sh_offset = (Off)hi; in _elf_upd_lib() 423 (hi < sh->sh_offset + sh->sh_size)) in _elf_upd_usr() 424 hi = sh->sh_offset + sh->sh_size; in _elf_upd_usr() 584 char *start = image + sh->sh_offset; in wrt() 609 if (fill && (sh->sh_offset > hi)) { in wrt() 610 sz = sh->sh_offset - hi; in wrt() 663 hi = sh->sh_offset + sh->sh_size; in wrt()
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | shdr.c | 44 EC_OFF(shdr->sh_offset), EC_XWORD(shdr->sh_entsize)); in Elf_shdr() 51 EC_OFF(shdr->sh_offset), EC_XWORD(shdr->sh_entsize), in Elf_shdr()
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_lib.c | 371 dst->sh_offset = src->sh_offset; in shdr_to_gelf() 572 (sp[shstrndx].sh_offset & ~_PAGEMASK); in ctf_fdcreate_int() 575 fd, sp[shstrndx].sh_offset & _PAGEMASK); in ctf_fdcreate_int() 578 (sp[shstrndx].sh_offset & ~_PAGEMASK); in ctf_fdcreate_int() 608 ctfsect.cts_offset = (off64_t)shp->sh_offset; in ctf_fdcreate_int() 616 symsect.cts_offset = (off64_t)shp->sh_offset; in ctf_fdcreate_int() 623 strsect.cts_offset = (off64_t)lhp->sh_offset; in ctf_fdcreate_int()
|
H A D | ctf_elfwrite.c | 188 shdr.sh_offset = new_offset; in ctf_write_elf() 274 new_offset = (off_t)shdr.sh_offset; in ctf_write_elf() 304 shdr.sh_offset = new_offset; in ctf_write_elf()
|
/illumos-gate/usr/src/boot/common/ |
H A D | load_elf.c | 564 shstr = alloc_pread(ef->fd, shdr[ehdr->e_shstrndx].sh_offset, in __elfN() 594 if (shdr[i].sh_offset >= phdr[j].p_offset && in __elfN() 595 (shdr[i].sh_offset + shdr[i].sh_size <= in __elfN() 597 shdr[i].sh_offset = 0; in __elfN() 602 if (shdr[i].sh_offset == 0 || shdr[i].sh_size == 0) in __elfN() 639 (uintmax_t)shdr[i].sh_size, (uintmax_t)shdr[i].sh_offset, in __elfN() 648 if (lseek(ef->fd, (off_t)shdr[i].sh_offset, SEEK_SET) == -1) { in __elfN() 861 shstrtab = alloc_pread(ef.fd, shdr[ef.ehdr->e_shstrndx].sh_offset, in __elfN() 890 err = kern_pread(ef.fd, dest, sh_meta->sh_size, sh_meta->sh_offset); in __elfN() 902 sh_data[0]->sh_offset); in __elfN() [all …]
|
H A D | load_elf_obj.c | 306 lshdr->sh_offset >= shdr[i].sh_offset) in __elfN() 310 cshdr->sh_offset > shdr[i].sh_offset) in __elfN() 318 cshdr->sh_size, (off_t)cshdr->sh_offset) != 0) { in __elfN()
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dw_elfstructs.h | 125 TYP(sh_offset,4); 139 TYP(sh_offset,8);
|
H A D | dwarf_elfstructs.h | 133 TYP(sh_offset,4); 147 TYP(sh_offset,8);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | ksyms_snapshot.c | 168 shp->sh_offset = kw.kw_size[KW_HEADER]; in ksyms_snapshot() 178 shp->sh_offset = kw.kw_size[KW_HEADER] + in ksyms_snapshot() 186 shp->sh_offset = offsetof(ksyms_header_t, shstrings); in ksyms_snapshot()
|
/illumos-gate/usr/src/cmd/sgs/common/ |
H A D | leb128.c | 209 boolean_t frame_hdr, uint64_t sh_base, uint64_t sh_offset, in dwarf_ehe_extract() argument 306 result += sh_base + sh_offset; in dwarf_ehe_extract()
|
/illumos-gate/usr/src/cmd/sgs/mcs/common/ |
H A D | file.c | 464 == shdr->sh_offset)) in traverse_file() 468 state->off_table[scn_index] = shdr->sh_offset; in traverse_file() 1018 dst_shdr.sh_offset = new_offset; in build_file() 1053 dst_shdr.sh_offset = new_offset; in build_file() 1055 dst_shdr.sh_offset = 0; in build_file() 1118 dst_shdr.sh_offset = new_offset; /* UPDATE fields */ in build_file() 1217 ph->p_offset = (Elf32_Off)nshdr.sh_offset; in build_file() 1221 ph->p_offset = (Elf64_Off)nshdr.sh_offset; in build_file() 1515 return (location(shdr.sh_offset + shdr.sh_size, 0, elf, state)); in scn_location() 1517 return (location(shdr.sh_offset + shdr.sh_size, 1, elf, state)); in scn_location()
|
/illumos-gate/usr/src/cmd/ctfmerge/ |
H A D | ctfmerge.c | 131 ctfsect.cts_offset = (off64_t)shdr.sh_offset; in ctfmerge_elfopen() 148 symsect.cts_offset = (off64_t)shdr.sh_offset; in ctfmerge_elfopen() 162 strsect.cts_offset = (off64_t)strhdr.sh_offset; in ctfmerge_elfopen()
|
/illumos-gate/usr/src/cmd/file/ |
H A D | elf_read.c | 439 if (pread64(EI->elffd, strtab, shdr->sh_size, shdr->sh_offset) in process_shdr() 464 cap_off = shdr->sh_offset; in process_shdr() 515 doff = shdr->sh_offset; in process_shdr()
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | i386_elf.h | 66 Elf32_Off sh_offset; /* Offset in file. */ member
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_gelf.c | 60 if (IOP_SEEK(gf->gf_io, shstr->gs_shdr.sh_offset, SEEK_SET) == -1) { in gelf_sect_init() 121 gpp->p_offset = shp->sh_offset; in gelf_sect_init() 122 gpp->p_vaddr = shp->sh_offset; in gelf_sect_init() 148 if (IOP_SEEK(gf->gf_io, gsp->gs_shdr.sh_offset, SEEK_SET) == -1) { in mdb_gelf_sect_load() 204 dst->sh_offset = src->sh_offset; in gelf32_to_shdr() 543 dyn_addr = gsp->gs_shdr.sh_offset; in gelf_dyns_init() 983 sym->st_value += gsp->gs_shdr.sh_offset; in gelf32_symtab_init() 1080 sym->st_value += gsp->gs_shdr.sh_offset; in gelf64_symtab_init() 1316 gst->gst_dsect->gs_shdr.sh_offset = dt_symtab - (GElf_Addr)base; in mdb_gelf_symtab_create_dynamic() 1322 gst->gst_ssect->gs_shdr.sh_offset = dt_strtab - (GElf_Addr)base; in mdb_gelf_symtab_create_dynamic()
|
/illumos-gate/usr/src/cmd/mdb/intel/modules/mdb_kb/ |
H A D | mdb_kb.c | 1014 shp->sh_offset = sizeof (xkb_namelist_t); in xkb_build_ksyms() 1020 shp->sh_addr = (Addr)(xkb->xkb_namelist + shp->sh_offset); in xkb_build_ksyms() 1026 shp->sh_offset = sizeof (xkb_namelist_t) + in xkb_build_ksyms() 1030 shp->sh_addr = (Addr)(xkb->xkb_namelist + shp->sh_offset); in xkb_build_ksyms() 1036 shp->sh_offset = offsetof(xkb_namelist_t, shstrings); in xkb_build_ksyms() 1039 shp->sh_addr = (Addr)(xkb->xkb_namelist + shp->sh_offset); in xkb_build_ksyms() 1273 if (!PAGE_ALIGNED(sect->gs_shdr.sh_offset)) in xkb_open_elf() 1279 xkb->xkb_pages_off = sect->gs_shdr.sh_offset; in xkb_open_elf()
|
/illumos-gate/usr/src/uts/i86xpv/os/ |
H A D | xpv_panic.c | 859 if (kobj_read_file(file, names, shp->sh_size, shp->sh_offset) < 0) in init_xen_module() 944 mp->symhdr->sh_size, mp->symhdr->sh_offset) < 0) || in init_xen_module() 946 mp->strhdr->sh_size, mp->strhdr->sh_offset) < 0)) in init_xen_module() 957 ctf_shp->sh_offset) < 0) in init_xen_module()
|