Home
last modified time | relevance | path

Searched refs:sh_addr (Results 1 – 25 of 66) sorted by relevance

123

/titanic_51/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c494 sp->sh_addr = 0; in fake_elf64()
513 sp->sh_addr = d[DI_SUNW_SYMTAB]->d_un.d_ptr; in fake_elf64()
515 sp->sh_addr += addr; in fake_elf64()
525 sp->sh_addr) != sp->sh_size) { in fake_elf64()
527 (long)sp->sh_addr); in fake_elf64()
541 sp->sh_addr = d[DI_SYMTAB]->d_un.d_ptr; in fake_elf64()
543 sp->sh_addr += addr; in fake_elf64()
552 sp->sh_addr) != sp->sh_size) { in fake_elf64()
554 (long)sp->sh_addr); in fake_elf64()
567 sp->sh_addr in fake_elf64()
[all...]
/titanic_51/usr/src/boot/sys/boot/common/
H A Dload_elf_obj.c213 * We store the load address as a non-zero sh_addr value. in __elfN()
217 shdr[i].sh_addr = 0; in __elfN()
225 shdr[i].sh_addr = (Elf_Addr)lastaddr; in __elfN()
238 shdr[i].sh_addr = (Elf_Addr)lastaddr; in __elfN()
249 shdr[ef->symtabindex].sh_addr = (Elf_Addr)lastaddr; in __elfN()
260 shdr[symstrindex].sh_addr = (Elf_Addr)lastaddr; in __elfN()
272 shdr[ef->shstrindex].sh_addr = (Elf_Addr)lastaddr; in __elfN()
281 shdr[i].sh_addr = (Elf_Addr)lastaddr; in __elfN()
301 if (shdr[i].sh_addr == 0 || in __elfN()
317 if (kern_pread(ef->fd, (vm_offset_t)cshdr->sh_addr, in __elfN()
[all...]
/titanic_51/usr/src/uts/sparc/krtld/
H A Dkobj_reloc.c192 if (shp->sh_addr == baseaddr) { in do_relocate()
385 if (do_relocate(mp, (char *)rshp->sh_addr, rshp->sh_type, in do_relocations()
386 nreloc, rshp->sh_entsize, shp->sh_addr) < 0) { in do_relocations()
392 kobj_free((void *)rshp->sh_addr, rshp->sh_size); in do_relocations()
393 rshp->sh_addr = 0; in do_relocations()
398 kobj_free((void *)rshp->sh_addr, rshp->sh_size); in do_relocations()
399 rshp->sh_addr = 0; in do_relocations()
H A Dkobj_isa.c115 if (shp->sh_addr != 0) { in get_progbits_size()
/titanic_51/usr/src/uts/intel/ia32/krtld/
H A Dkobj_reloc.c323 if (do_relocate(mp, (char *)rshp->sh_addr, rshp->sh_type, in do_relocations()
324 nreloc, rshp->sh_entsize, shp->sh_addr) < 0) { in do_relocations()
330 kobj_free((void *)rshp->sh_addr, rshp->sh_size); in do_relocations()
331 rshp->sh_addr = 0; in do_relocations()
336 kobj_free((void *)rshp->sh_addr, rshp->sh_size); in do_relocations()
337 rshp->sh_addr = 0; in do_relocations()
H A Dkobj_isa.c99 if (shp->sh_addr != 0) { in get_progbits_size()
/titanic_51/usr/src/uts/intel/amd64/krtld/
H A Dkobj_reloc.c329 if (do_relocate(mp, (char *)rshp->sh_addr, rshp->sh_type, in do_relocations()
330 nreloc, rshp->sh_entsize, shp->sh_addr) < 0) { in do_relocations()
336 kobj_free((void *)rshp->sh_addr, rshp->sh_size); in do_relocations()
337 rshp->sh_addr = 0; in do_relocations()
342 kobj_free((void *)rshp->sh_addr, rshp->sh_size); in do_relocations()
343 rshp->sh_addr = 0; in do_relocations()
H A Dkobj_isa.c99 if (shp->sh_addr != 0) { in get_progbits_size()
/titanic_51/usr/src/cmd/sgs/libld/common/
H A Dmachrel.amd.c120 return ((Xword)(osp->os_shdr->sh_addr + (gotndx * M_GOT_ENTSIZE))); in ld_calc_got_offset()
163 (*dyn)->d_un.d_ptr = ofl->ofl_osgot->os_shdr->sh_addr; in ld_mach_update_odynamic()
175 value = (Xword)(ofl->ofl_osplt->os_shdr->sh_addr) + in ld_calc_plt_addr()
214 *(Word *)gotent = ofl->ofl_osplt->os_shdr->sh_addr + plt_off + in plt_entry()
233 val1 = (ofl->ofl_osgot->os_shdr->sh_addr + got_off) - in plt_entry()
234 (ofl->ofl_osplt->os_shdr->sh_addr + plt_off) - 0x06; in plt_entry()
329 psym->sd_isc->is_osdesc->os_shdr->sh_addr; in ld_perform_outreloc()
334 psym->sd_isc->is_osdesc->os_shdr->sh_addr; in ld_perform_outreloc()
340 sdp->sd_isc->is_osdesc->os_shdr->sh_addr; in ld_perform_outreloc()
363 roffset = (ofl->ofl_osgot->os_shdr->sh_addr) in ld_perform_outreloc()
[all...]
H A Dunwind.c504 hdraddr = hdrosp->os_shdr->sh_addr; in ld_unwind_populate_hdr()
672 shdr->sh_addr, off + ndx, 0)) { in ld_unwind_populate_hdr()
709 ofl->ofl_osgot->os_shdr->sh_addr; in ld_unwind_populate_hdr()
714 shdr->sh_addr, off + ndx, gotaddr)) { in ld_unwind_populate_hdr()
748 fdeaddr = shdr->sh_addr + off; in ld_unwind_populate_hdr()
790 *uint_ptr = first_unwind->os_shdr->sh_addr - in ld_unwind_populate_hdr()
791 (hdrosp->os_shdr->sh_addr + hdroff); in ld_unwind_populate_hdr()
H A Dupdate.c404 sym->st_value = osp->os_shdr->sh_addr; in update_osym()
616 parexpnbase = parexpnaddr = (Addr)(osp->os_shdr->sh_addr + in update_osym()
805 sym->st_value += osp->os_shdr->sh_addr; in update_osym()
880 osp->os_shdr->sh_addr; in update_osym()
946 bssaddr = osp->os_shdr->sh_addr + in update_osym()
960 lbssaddr = osp->os_shdr->sh_addr + in update_osym()
971 tlsbssaddr = osp->os_shdr->sh_addr + in update_osym()
1694 sym->st_value += osp->os_shdr->sh_addr; in update_osym()
1741 ofl_osdynamic->os_shdr->sh_addr; in update_osym()
1751 ofl_osplt->os_shdr->sh_addr; in update_osym()
[all...]
H A Dmachrel.intel.c89 return ((Xword)(osp->os_shdr->sh_addr + (gotndx * M_GOT_ENTSIZE))); in ld_calc_got_offset()
130 (*dyn)->d_un.d_ptr = ofl->ofl_osgot->os_shdr->sh_addr; in ld_mach_update_odynamic()
142 value = (Xword)(ofl->ofl_osplt->os_shdr->sh_addr) + in ld_calc_plt_addr()
180 *(Word *)gotent = ofl->ofl_osplt->os_shdr->sh_addr + plt_off + in plt_entry()
191 *(Word *)pltent = (Word)(ofl->ofl_osgot->os_shdr->sh_addr + in plt_entry()
285 roffset = (Word) (ofl->ofl_osgot->os_shdr->sh_addr) + in ld_perform_outreloc()
309 os_shdr->sh_addr; in ld_perform_outreloc()
856 is_osdesc->os_shdr->sh_addr; in ld_do_activerelocs()
895 arsp->rel_isdesc->is_osdesc->os_shdr->sh_addr; in ld_do_activerelocs()
959 value -= ofl->ofl_osgot->os_shdr->sh_addr; in ld_do_activerelocs()
[all...]
H A Dmachrel.sparc.c99 return ((Xword)((osp->os_shdr->sh_addr) + (gotndx * M_GOT_ENTSIZE) + in ld_calc_got_offset()
189 (*dyn)->d_un.d_ptr = ofl->ofl_osplt->os_shdr->sh_addr; in ld_mach_update_odynamic()
206 value = (Xword)(ofl->ofl_osplt->os_shdr->sh_addr) + in ld_calc_plt_addr()
230 value += (Xword)(ofl->ofl_osplt->os_shdr->sh_addr); in ld_calc_plt_addr()
346 *roffset = pltptroff + (Xword)(ofl->ofl_osplt->os_shdr->sh_addr); in plt_far_entry()
347 *raddend = -(pltoff + 4 + (Xword)(ofl->ofl_osplt->os_shdr->sh_addr)); in plt_far_entry()
413 *roffset = pltoff + (Xword)(ofl->ofl_osplt->os_shdr->sh_addr); in plt_entry()
509 value = (Xword)(ofl->ofl_osplt->os_shdr->sh_addr) + in ld_calc_plt_addr()
536 *roffset = pltoff + (Xword)(ofl->ofl_osplt->os_shdr->sh_addr); in plt_entry()
661 psym->sd_isc->is_osdesc->os_shdr->sh_addr; in ld_perform_outreloc()
[all...]
H A Dldentry.c94 osp->os_name, EC_ADDR(osp->os_shdr->sh_addr), in ld_map_out()
120 os_shdr->sh_addr; in ld_map_out()
/titanic_51/usr/src/cmd/sgs/librtld/common/
H A Ddldump.c399 if (shdr->sh_addr == 0) { in rt_dldump()
414 if ((shdr->sh_type == M_REL_SHT_TYPE) && shdr->sh_addr) in rt_dldump()
429 if (shdr->sh_addr && ((shdr->sh_addr + shdr->sh_size) == in rt_dldump()
464 if ((shdr->sh_type == M_REL_SHT_TYPE) && shdr->sh_addr) { in rt_dldump()
490 if ((shdr->sh_type == M_REL_SHT_TYPE) && shdr->sh_addr) { in rt_dldump()
673 shdr->sh_addr = data_cache->c_shdr->sh_addr + in rt_dldump()
697 if ((shdr->sh_addr) && (flags & RTLD_MEMORY)) in rt_dldump()
698 data->d_buf = (void *)(shdr->sh_addr in rt_dldump()
[all...]
/titanic_51/usr/src/cmd/sgs/elfdump/common/
H A Ddwarf.c47 uint64_t sh_addr; /* Address of eh_frame section */ member
324 state->sh_addr, off + *ndx, state->gotaddr)) { in dump_cfi()
687 uint64_t sh_addr, Half e_machine, uchar_t *e_ident, uint64_t gotaddr) in dump_eh_frame() argument
703 cfi_state.sh_addr = sh_addr; in dump_eh_frame()
738 EC_XWORD(sh_addr + off)); in dump_eh_frame()
773 EC_XWORD(sh_addr + off)); in dump_eh_frame()
841 ciePflag, e_ident, B_FALSE, sh_addr, in dump_eh_frame()
920 EC_XWORD(sh_addr + off)); in dump_eh_frame()
926 e_ident, B_FALSE, sh_addr, of in dump_eh_frame()
[all...]
/titanic_51/usr/src/cmd/dis/
H A Ddis_target.c140 tgt->dt_shnmap[*index].dm_start = scn->ds_shdr.sh_addr; in tgt_scn_init()
788 if (sdata.ds_shdr.sh_addr == 0) in dis_tgt_section_iter()
789 sdata.ds_shdr.sh_addr = tgt->dt_shnmap[idx].dm_start; in dis_tgt_section_iter()
829 return (scn->ds_shdr.sh_addr); in dis_section_addr()
897 shdr.sh_addr = tgt->dt_shnmap[sym->se_shndx].dm_start; in dis_tgt_function_iter()
903 if (sym->se_sym.st_value < shdr.sh_addr || in dis_tgt_function_iter()
905 (shdr.sh_addr + shdr.sh_size)) { in dis_tgt_function_iter()
913 df.df_offset = sym->se_sym.st_value - shdr.sh_addr; in dis_tgt_function_iter()
/titanic_51/usr/src/cmd/sgs/elfedit/modules/common/
H A Dshdr.c48 SHDR_CMD_T_SH_ADDR = 1, /* shdr:sh_addr */
266 EC_XWORD(shdr->sh_addr)); in print_shdr()
424 Addr sh_addr = elfedit_atoui(argstate.argv[1], NULL); in cmd_body() local
426 if (shdr->sh_addr == sh_addr) { in cmd_body()
431 EC_ADDR(shdr->sh_addr)); in cmd_body()
437 EC_ADDR(shdr->sh_addr), EC_ADDR(sh_addr)); in cmd_body()
439 shdr->sh_addr = sh_addr; in cmd_body()
[all...]
/titanic_51/usr/src/cmd/sgs/libelf/demo/
H A Dacom.c121 shdr.sh_addr = 0; in update_comment()
132 if (shdr.sh_addr != 0) { in update_comment()
/titanic_51/usr/src/cmd/sgs/liblddbg/common/
H A Dsegments.c163 EC_ADDR(shdr->sh_addr), conv_elfdata_type(data->d_type, &inv_buf), in Dbg_seg_os()
183 addr = (Addr)(shdr->sh_addr + data->d_off); in Dbg_seg_os()
H A Dshdr.c38 dbg_print(lml, MSG_ORIG(MSG_SHD_ADDR), EC_ADDR(shdr->sh_addr), in Elf_shdr()
/titanic_51/usr/src/grub/grub-0.97/netboot/
H A Di386_elf.h65 Elf32_Addr sh_addr; /* Address in memory image. */ member
/titanic_51/usr/src/uts/common/os/
H A Dksyms_snapshot.c88 char *strings = (char *)strhdr->sh_addr; in ksyms_walk_one()
92 Sym *sym = (Sym *)(symhdr->sh_addr + i * symsize); in ksyms_walk_one()
/titanic_51/usr/src/uts/common/krtld/
H A Dkobj.c758 mp->symhdr->sh_addr = dyn->d_un.d_ptr; in load_exec()
766 mp->strhdr->sh_addr = dyn->d_un.d_ptr; in load_exec()
924 mp->data = (char *)shp->sh_addr; in load_linker()
926 mp->text = (char *)shp->sh_addr; in load_linker()
932 mp->symspace = mp->symtbl = (char *)shp->sh_addr; in load_linker()
939 mp->strings = (char *)mp->strhdr->sh_addr; in load_linker()
1577 mp->symhdr->sh_addr = (Addr)mp->symtbl; in kobj_export_ksyms()
1585 mp->strhdr->sh_addr = (Addr)mp->strings; in kobj_export_ksyms()
1622 if (shp->sh_addr != 0) { in kobj_export_ksyms()
1623 kobj_free((void *)shp->sh_addr, in kobj_export_ksyms()
[all...]
/titanic_51/usr/src/uts/i86xpv/os/
H A Dxpv_panic.c921 if (mp->data == NULL || mp->data > (char *)shp->sh_addr) in init_xen_module()
922 mp->data = (char *)shp->sh_addr; in init_xen_module()
928 if (mp->text == NULL || mp->text > (char *)shp->sh_addr) in init_xen_module()
929 mp->text = (char *)shp->sh_addr; in init_xen_module()

123