Searched refs:sh_addr (Results 1 - 25 of 63) sorted by relevance

123

/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c496 sp->sh_addr = 0;
515 sp->sh_addr = d[DI_SUNW_SYMTAB]->d_un.d_ptr;
517 sp->sh_addr += addr;
527 sp->sh_addr) != sp->sh_size) {
529 (long)sp->sh_addr);
543 sp->sh_addr = d[DI_SYMTAB]->d_un.d_ptr;
545 sp->sh_addr += addr;
554 sp->sh_addr) != sp->sh_size) {
556 (long)sp->sh_addr);
569 sp->sh_addr
[all...]
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dload_elf_obj.c213 * We store the load address as a non-zero sh_addr value.
217 shdr[i].sh_addr = 0;
225 shdr[i].sh_addr = (Elf_Addr)lastaddr;
238 shdr[i].sh_addr = (Elf_Addr)lastaddr;
249 shdr[ef->symtabindex].sh_addr = (Elf_Addr)lastaddr;
260 shdr[symstrindex].sh_addr = (Elf_Addr)lastaddr;
272 shdr[ef->shstrindex].sh_addr = (Elf_Addr)lastaddr;
281 shdr[i].sh_addr = (Elf_Addr)lastaddr;
301 if (shdr[i].sh_addr == 0 ||
317 if (kern_pread(ef->fd, (vm_offset_t)cshdr->sh_addr,
[all...]
/illumos-gate/usr/src/uts/intel/amd64/krtld/
H A Dkobj_reloc.c329 if (do_relocate(mp, (char *)rshp->sh_addr, rshp->sh_type,
330 nreloc, rshp->sh_entsize, shp->sh_addr) < 0) {
336 kobj_free((void *)rshp->sh_addr, rshp->sh_size);
337 rshp->sh_addr = 0;
342 kobj_free((void *)rshp->sh_addr, rshp->sh_size);
343 rshp->sh_addr = 0;
H A Dkobj_isa.c99 if (shp->sh_addr != 0) {
/illumos-gate/usr/src/uts/intel/ia32/krtld/
H A Dkobj_reloc.c323 if (do_relocate(mp, (char *)rshp->sh_addr, rshp->sh_type,
324 nreloc, rshp->sh_entsize, shp->sh_addr) < 0) {
330 kobj_free((void *)rshp->sh_addr, rshp->sh_size);
331 rshp->sh_addr = 0;
336 kobj_free((void *)rshp->sh_addr, rshp->sh_size);
337 rshp->sh_addr = 0;
H A Dkobj_isa.c99 if (shp->sh_addr != 0) {
/illumos-gate/usr/src/uts/sparc/krtld/
H A Dkobj_reloc.c192 if (shp->sh_addr == baseaddr) {
385 if (do_relocate(mp, (char *)rshp->sh_addr, rshp->sh_type,
386 nreloc, rshp->sh_entsize, shp->sh_addr) < 0) {
392 kobj_free((void *)rshp->sh_addr, rshp->sh_size);
393 rshp->sh_addr = 0;
398 kobj_free((void *)rshp->sh_addr, rshp->sh_size);
399 rshp->sh_addr = 0;
H A Dkobj_isa.c115 if (shp->sh_addr != 0) {
/illumos-gate/usr/src/cmd/sgs/librtld/common/
H A Ddldump.c399 if (shdr->sh_addr == 0) {
414 if ((shdr->sh_type == M_REL_SHT_TYPE) && shdr->sh_addr)
429 if (shdr->sh_addr && ((shdr->sh_addr + shdr->sh_size) ==
464 if ((shdr->sh_type == M_REL_SHT_TYPE) && shdr->sh_addr) {
490 if ((shdr->sh_type == M_REL_SHT_TYPE) && shdr->sh_addr) {
673 shdr->sh_addr = data_cache->c_shdr->sh_addr +
697 if ((shdr->sh_addr) && (flags & RTLD_MEMORY))
698 data->d_buf = (void *)(shdr->sh_addr
[all...]
/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Dacom.c121 shdr.sh_addr = 0;
132 if (shdr.sh_addr != 0) {
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Di386_elf.h65 Elf32_Addr sh_addr; /* Address in memory image. */ member in struct:__anon2090
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dunwind.c504 hdraddr = hdrosp->os_shdr->sh_addr;
672 shdr->sh_addr, off + ndx, 0)) {
709 ofl->ofl_osgot->os_shdr->sh_addr;
714 shdr->sh_addr, off + ndx, gotaddr)) {
748 fdeaddr = shdr->sh_addr + off;
790 *uint_ptr = first_unwind->os_shdr->sh_addr -
791 (hdrosp->os_shdr->sh_addr + hdroff);
H A Dmachrel.amd.c120 return ((Xword)(osp->os_shdr->sh_addr + (gotndx * M_GOT_ENTSIZE)));
163 (*dyn)->d_un.d_ptr = ofl->ofl_osgot->os_shdr->sh_addr;
175 value = (Xword)(ofl->ofl_osplt->os_shdr->sh_addr) +
214 *(Word *)gotent = ofl->ofl_osplt->os_shdr->sh_addr + plt_off +
233 val1 = (ofl->ofl_osgot->os_shdr->sh_addr + got_off) -
234 (ofl->ofl_osplt->os_shdr->sh_addr + plt_off) - 0x06;
329 psym->sd_isc->is_osdesc->os_shdr->sh_addr;
334 psym->sd_isc->is_osdesc->os_shdr->sh_addr;
340 sdp->sd_isc->is_osdesc->os_shdr->sh_addr;
363 roffset = (ofl->ofl_osgot->os_shdr->sh_addr)
[all...]
H A Dldentry.c94 osp->os_name, EC_ADDR(osp->os_shdr->sh_addr),
120 os_shdr->sh_addr;
H A Dmachrel.intel.c89 return ((Xword)(osp->os_shdr->sh_addr + (gotndx * M_GOT_ENTSIZE)));
130 (*dyn)->d_un.d_ptr = ofl->ofl_osgot->os_shdr->sh_addr;
142 value = (Xword)(ofl->ofl_osplt->os_shdr->sh_addr) +
180 *(Word *)gotent = ofl->ofl_osplt->os_shdr->sh_addr + plt_off +
191 *(Word *)pltent = (Word)(ofl->ofl_osgot->os_shdr->sh_addr +
285 roffset = (Word) (ofl->ofl_osgot->os_shdr->sh_addr) +
309 os_shdr->sh_addr;
856 is_osdesc->os_shdr->sh_addr;
895 arsp->rel_isdesc->is_osdesc->os_shdr->sh_addr;
959 value -= ofl->ofl_osgot->os_shdr->sh_addr;
[all...]
H A Dupdate.c404 sym->st_value = osp->os_shdr->sh_addr;
616 parexpnbase = parexpnaddr = (Addr)(osp->os_shdr->sh_addr +
805 sym->st_value += osp->os_shdr->sh_addr;
880 osp->os_shdr->sh_addr;
946 bssaddr = osp->os_shdr->sh_addr +
960 lbssaddr = osp->os_shdr->sh_addr +
971 tlsbssaddr = osp->os_shdr->sh_addr +
1694 sym->st_value += osp->os_shdr->sh_addr;
1741 ofl_osdynamic->os_shdr->sh_addr;
1751 ofl_osplt->os_shdr->sh_addr;
[all...]
H A Dmachrel.sparc.c99 return ((Xword)((osp->os_shdr->sh_addr) + (gotndx * M_GOT_ENTSIZE) +
189 (*dyn)->d_un.d_ptr = ofl->ofl_osplt->os_shdr->sh_addr;
206 value = (Xword)(ofl->ofl_osplt->os_shdr->sh_addr) +
230 value += (Xword)(ofl->ofl_osplt->os_shdr->sh_addr);
346 *roffset = pltptroff + (Xword)(ofl->ofl_osplt->os_shdr->sh_addr);
347 *raddend = -(pltoff + 4 + (Xword)(ofl->ofl_osplt->os_shdr->sh_addr));
413 *roffset = pltoff + (Xword)(ofl->ofl_osplt->os_shdr->sh_addr);
509 value = (Xword)(ofl->ofl_osplt->os_shdr->sh_addr) +
536 *roffset = pltoff + (Xword)(ofl->ofl_osplt->os_shdr->sh_addr);
661 psym->sd_isc->is_osdesc->os_shdr->sh_addr;
[all...]
/illumos-gate/usr/src/cmd/dis/
H A Ddis_target.c140 tgt->dt_shnmap[*index].dm_start = scn->ds_shdr.sh_addr;
788 if (sdata.ds_shdr.sh_addr == 0)
789 sdata.ds_shdr.sh_addr = tgt->dt_shnmap[idx].dm_start;
829 return (scn->ds_shdr.sh_addr);
897 shdr.sh_addr = tgt->dt_shnmap[sym->se_shndx].dm_start;
903 if (sym->se_sym.st_value < shdr.sh_addr ||
905 (shdr.sh_addr + shdr.sh_size)) {
913 df.df_offset = sym->se_sym.st_value - shdr.sh_addr;
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Ddwarf.c47 uint64_t sh_addr; /* Address of eh_frame section */ member in struct:__anon1416
324 state->sh_addr, off + *ndx, state->gotaddr)) {
687 uint64_t sh_addr, Half e_machine, uchar_t *e_ident, uint64_t gotaddr)
703 cfi_state.sh_addr = sh_addr;
738 EC_XWORD(sh_addr + off));
773 EC_XWORD(sh_addr + off));
841 ciePflag, e_ident, B_FALSE, sh_addr,
920 EC_XWORD(sh_addr + off));
926 e_ident, B_FALSE, sh_addr, of
686 dump_eh_frame(const char *file, char *sh_name, uchar_t *data, size_t datasize, uint64_t sh_addr, Half e_machine, uchar_t *e_ident, uint64_t gotaddr) argument
[all...]
/illumos-gate/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));
424 Addr sh_addr = elfedit_atoui(argstate.argv[1], NULL); local
426 if (shdr->sh_addr == sh_addr) {
431 EC_ADDR(shdr->sh_addr));
437 EC_ADDR(shdr->sh_addr), EC_ADDR(sh_addr));
439 shdr->sh_addr = sh_addr;
[all...]
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dshdr.c38 dbg_print(lml, MSG_ORIG(MSG_SHD_ADDR), EC_ADDR(shdr->sh_addr),
H A Dsegments.c163 EC_ADDR(shdr->sh_addr), conv_elfdata_type(data->d_type, &inv_buf),
183 addr = (Addr)(shdr->sh_addr + data->d_off);
/illumos-gate/usr/src/uts/common/os/
H A Dksyms_snapshot.c88 char *strings = (char *)strhdr->sh_addr;
92 Sym *sym = (Sym *)(symhdr->sh_addr + i * symsize);
/illumos-gate/usr/src/lib/libsaveargs/tests/dump/
H A Ddump.c103 (ss.ss_sym.st_value - textshdr.sh_addr);
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Di386-elf.h108 Elf32_Addr sh_addr; /* Section virtual addr at execution */ member in struct:__anon2185

Completed in 171 milliseconds

123