Home
last modified time | relevance | path

Searched refs:sh_offset (Results 1 – 25 of 57) sorted by relevance

123

/titanic_51/usr/src/lib/libdtrace/common/
H A Ddt_link.c61 (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 in dump_elf32()
[all...]
/titanic_51/usr/src/lib/libelfsign/common/
H A Delfsignlib.c523 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()
754 * insert into list in order of sh_offset in elfsign_adjustoffsets()
758 name ? name : "NULL", shdr.sh_offset); in elfsign_adjustoffsets()
766 tmpscnip->scni_offset = shdr.sh_offset; in elfsign_adjustoffsets()
[all...]
/titanic_51/usr/src/cmd/sgs/elfedit/modules/common/
H A Dshdr.c55 SHDR_CMD_T_SH_OFFSET = 8, /* shdr:sh_offset */
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 in cmd_body()
[all...]
H A Dshdr.msg148 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 Dphdr.c311 (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()
/titanic_51/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c191 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()
/titanic_51/usr/src/cmd/sgs/liblddbg/common/
H A Dshdr.c44 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()
/titanic_51/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c495 sp->sh_offset = off; in fake_elf64()
516 sp->sh_offset = off; in fake_elf64()
544 sp->sh_offset = off; in fake_elf64()
570 sp->sh_offset = off; in fake_elf64()
594 sp->sh_offset = off; in fake_elf64()
690 sp->sh_offset = off; in fake_elf64()
H A DPcore.c1386 b->shdr[1].sh_offset = off + base; in fake_up_symtab()
1393 symtab->sh_offset) != b->shdr[1].sh_size) { in fake_up_symtab()
1404 b->shdr[2].sh_offset = off + base; in fake_up_symtab()
1409 strtab->sh_offset) != b->shdr[2].sh_size) { in fake_up_symtab()
1452 b->shdr[1].sh_offset = off + base; in fake_up_symtab()
1459 symtab->sh_offset) != b->shdr[1].sh_size) { in fake_up_symtab()
1469 b->shdr[2].sh_offset = off + base; in fake_up_symtab()
1474 strtab->sh_offset) != b->shdr[2].sh_size) { in fake_up_symtab()
1536 dst->sh_offset = (Elf64_Off)src->sh_offset; in core_shdr_to_gelf()
[all...]
/titanic_51/usr/src/lib/libctf/common/
H A Dctf_lib.c371 dst->sh_offset = src->sh_offset; in shdr_to_gelf()
380 * In order to mmap a section from the ELF file, we must round down sh_offset
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 Dctf_elfwrite.c188 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()
/titanic_51/usr/src/uts/common/os/
H A Dksyms_snapshot.c170 shp->sh_offset = kw.kw_size[KW_HEADER]; in ksyms_snapshot()
180 shp->sh_offset = kw.kw_size[KW_HEADER] + in ksyms_snapshot()
188 shp->sh_offset = offsetof(ksyms_header_t, shstrings); in ksyms_snapshot()
/titanic_51/usr/src/boot/sys/boot/common/
H A Dload_elf.c529 shstr = alloc_pread(ef->fd, shdr[ehdr->e_shstrndx].sh_offset, chunk); in __elfN()
557 if (shdr[i].sh_offset >= phdr[j].p_offset && in __elfN()
558 (shdr[i].sh_offset + shdr[i].sh_size <= in __elfN()
560 shdr[i].sh_offset = 0; in __elfN()
565 if (shdr[i].sh_offset == 0 || shdr[i].sh_size == 0) in __elfN()
602 (uintmax_t)shdr[i].sh_size, (uintmax_t)shdr[i].sh_offset, in __elfN()
610 if (lseek(ef->fd, (off_t)shdr[i].sh_offset, SEEK_SET) == -1) { in __elfN()
814 shstrtab = alloc_pread(ef.fd, shdr[ef.ehdr->e_shstrndx].sh_offset, in __elfN()
843 err = kern_pread(ef.fd, dest, sh_meta->sh_size, sh_meta->sh_offset); in __elfN()
855 sh_data[0]->sh_offset); in __elfN()
[all...]
H A Dload_elf_obj.c306 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()
/titanic_51/usr/src/cmd/sgs/libelf/common/
H A Dupdate.c282 sh->sh_offset = (Off)hi; in _elf_upd_lib()
421 (hi < sh->sh_offset + sh->sh_size)) in _elf_upd_usr()
422 hi = sh->sh_offset + sh->sh_size; in _elf_upd_usr()
583 char *start = image + sh->sh_offset; in wrt()
608 if (fill && (sh->sh_offset > hi)) { in wrt()
609 sz = sh->sh_offset - hi; in wrt()
662 hi = sh->sh_offset + sh->sh_size; in wrt()
/titanic_51/usr/src/cmd/sgs/tools/common/
H A Dleb128.c202 * sh_offset - Offset relative to sh_base of desired datum.
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()
/titanic_51/usr/src/cmd/sgs/mcs/common/
H A Dfile.c461 == shdr->sh_offset)) in traverse_file()
465 state->off_table[scn_index] = shdr->sh_offset; in traverse_file()
1010 dst_shdr.sh_offset = new_offset; in build_file()
1045 dst_shdr.sh_offset = new_offset; in build_file()
1047 dst_shdr.sh_offset = 0; in build_file()
1110 dst_shdr.sh_offset = new_offset; /* UPDATE fields */ in build_file()
1209 ph->p_offset = (Elf32_Off)nshdr.sh_offset; in build_file()
1213 ph->p_offset = (Elf64_Off)nshdr.sh_offset; in build_file()
1507 return (location(shdr.sh_offset + shdr.sh_size, 0, elf, state)); in scn_location()
1509 return (location(shdr.sh_offset in scn_location()
[all...]
/titanic_51/usr/src/grub/grub-0.97/netboot/
H A Di386_elf.h66 Elf32_Off sh_offset; /* Offset in file. */ member
/titanic_51/usr/src/cmd/ctfmerge/
H A Dctfmerge.c167 ctfsect.cts_offset = (off64_t)shdr.sh_offset; in ctfmerge_elfopen()
184 symsect.cts_offset = (off64_t)shdr.sh_offset; in ctfmerge_elfopen()
198 strsect.cts_offset = (off64_t)strhdr.sh_offset; in ctfmerge_elfopen()
/titanic_51/usr/src/cmd/mdb/common/mdb/
H A Dmdb_gelf.c60 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 in mdb_gelf_symtab_create_dynamic()
[all...]
/titanic_51/usr/src/cmd/mdb/intel/modules/mdb_kb/
H A Dmdb_kb.c1014 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()
/titanic_51/usr/src/uts/i86xpv/os/
H A Dxpv_panic.c879 if (kobj_read_file(file, names, shp->sh_size, shp->sh_offset) < 0) in init_xen_module()
964 mp->symhdr->sh_size, mp->symhdr->sh_offset) < 0) || in init_xen_module()
966 mp->strhdr->sh_size, mp->strhdr->sh_offset) < 0)) in init_xen_module()
977 ctf_shp->sh_offset) < 0) in init_xen_module()
/titanic_51/usr/src/cmd/file/
H A Delf_read.c442 if (pread64(EI->elffd, strtab, shdr->sh_size, shdr->sh_offset) in process_shdr()
460 cap_off = shdr->sh_offset; in process_shdr()
/titanic_51/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c1758 } else if ((cphdr_off != cshdr->sh_offset) || in cap()
1811 (iphdr_off < shdr->sh_offset) || in interp()
1812 (iphdr_off + iphdr_fsz) > (shdr->sh_offset + shdr->sh_size)) in interp()
1829 (iphdr_off - ishdr->sh_offset)); in interp()
1837 if (ishdr && ((iphdr_off != ishdr->sh_offset) || in interp()
2987 (_cache->c_shdr->sh_offset < in dynamic()
2988 sec.rel->c_shdr->sh_offset)) in dynamic()
2995 (_cache->c_shdr->sh_offset < in dynamic()
2996 sec.rela->c_shdr->sh_offset)) in dynamic()
3824 if (shdr->sh_offset in note()
[all...]
/titanic_51/usr/src/tools/ctf/cvt/
H A Doutput.c548 shdr.sh_offset = new_offset; in write_file()
613 new_offset = (off_t)shdr.sh_offset; in write_file()
637 shdr.sh_offset = new_offset; in write_file()

123