| /titanic_44/usr/src/lib/libctf/common/ |
| H A D | ctf_lib.c | 146 dst->sh_offset = src->sh_offset; in shdr_to_gelf() 344 (sp[shstrndx].sh_offset & ~_PAGEMASK); in ctf_fdopen() 347 fd, sp[shstrndx].sh_offset & _PAGEMASK); in ctf_fdopen() 350 (sp[shstrndx].sh_offset & ~_PAGEMASK); in ctf_fdopen() 379 ctfsect.cts_offset = (off64_t)shp->sh_offset; in ctf_fdopen() 387 symsect.cts_offset = (off64_t)shp->sh_offset; in ctf_fdopen() 394 strsect.cts_offset = (off64_t)lhp->sh_offset; in ctf_fdopen()
|
| /titanic_44/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; in dump_elf32() 509 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8); in dump_elf32() 515 shp->sh_offset = off; in dump_elf32() 518 off = shp->sh_offset + shp->sh_size; in dump_elf32() 524 shp->sh_offset = off; in dump_elf32() 527 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4); in dump_elf32() 535 shp->sh_offset = off; in dump_elf32() 539 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4); in dump_elf32() [all …]
|
| /titanic_44/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 …]
|
| /titanic_44/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()
|
| /titanic_44/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()
|
| /titanic_44/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()
|
| H A D | elf.c | 115 dbg_print(lml, MSG_ORIG(MSG_SHD0_OFFSET), EC_OFF(shdr0->sh_offset), in Elf_ehdr()
|
| /titanic_44/usr/src/lib/libproc/common/ |
| H A D | Psymtab_machelf32.c | 495 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 D | Pcore.c | 1386 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() 2132 shp->sh_offset) != shstrtabsz) { in core_load_shdrs() [all …]
|
| /titanic_44/usr/src/uts/common/os/ |
| H A D | ksyms_snapshot.c | 170 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_44/usr/src/cmd/sgs/libelf/common/ |
| H A D | update.c | 282 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_44/usr/src/cmd/sgs/tools/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()
|
| /titanic_44/usr/src/cmd/sgs/mcs/common/ |
| H A D | file.c | 461 == 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 + shdr.sh_size, 1, elf, state)); in scn_location()
|
| /titanic_44/usr/src/grub/grub-0.97/netboot/ |
| H A D | i386_elf.h | 66 Elf32_Off sh_offset; /* Offset in file. */ member
|
| /titanic_44/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()
|
| /titanic_44/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()
|
| /titanic_44/usr/src/uts/i86xpv/os/ |
| H A D | xpv_panic.c | 879 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_44/usr/src/cmd/file/ |
| H A D | elf_read.c | 442 if (pread64(EI->elffd, strtab, shdr->sh_size, shdr->sh_offset) in process_shdr() 460 cap_off = shdr->sh_offset; in process_shdr()
|
| /titanic_44/usr/src/cmd/sgs/elfdump/common/ |
| H A D | elfdump.c | 1754 } else if ((cphdr_off != cshdr->sh_offset) || in cap() 1807 (iphdr_off < shdr->sh_offset) || in interp() 1808 (iphdr_off + iphdr_fsz) > (shdr->sh_offset + shdr->sh_size)) in interp() 1825 (iphdr_off - ishdr->sh_offset)); in interp() 1833 if (ishdr && ((iphdr_off != ishdr->sh_offset) || in interp() 2983 (_cache->c_shdr->sh_offset < in dynamic() 2984 sec.rel->c_shdr->sh_offset)) in dynamic() 2991 (_cache->c_shdr->sh_offset < in dynamic() 2992 sec.rela->c_shdr->sh_offset)) in dynamic() 3820 if (shdr->sh_offset & (sizeof (Word) - 1)) in note() [all …]
|
| H A D | fake_shdr.c | 916 sec->shdr->sh_offset = sec->offset; in get_data() 926 sec->shdr->sh_offset = sec->offset; in get_data() 933 sec->shdr->sh_offset = map_addr_to_offset(fstate, in get_data() 936 if (sec->shdr->sh_offset == 0) { in get_data() 1024 (read_data(fstate, sec->shdr->sh_offset, sec->data->d_buf, in get_data()
|
| /titanic_44/usr/src/tools/ctf/cvt/ |
| H A D | output.c | 548 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()
|
| /titanic_44/usr/src/grub/grub-0.97/stage2/ |
| H A D | i386-elf.h | 109 Elf32_Off sh_offset; /* Section file offset */ member
|
| /titanic_44/usr/src/ucblib/libucb/port/gen/ |
| H A D | nlist.c | 200 if ((symdata = elf_read(fd, (long)symhdr->sh_offset, in _elf_nlist() 225 if ((strdata = elf_read(fd, strhdr->sh_offset, strhdr->sh_size, in _elf_nlist()
|