/illumos-gate/usr/src/cmd/sgs/librtld/common/ |
H A D | relocate.c | 57 Reloc *reloc; in count_reloc() local 76 if ((reloc = calloc(cnt, sizeof (Reloc))) == 0) in count_reloc() 78 _cache->c_info = (void *)reloc; in count_reloc() 92 for (_cnt = 0; _cnt < cnt; _cnt++, reloc++, in count_reloc() 108 reloc->r_pltndx = ++pltndx; in count_reloc() 119 reloc->r_flags = FLG_R_INC; in count_reloc() 126 reloc->r_flags |= FLG_R_UNDO; in count_reloc() 133 reloc->r_size = sym->st_size; in count_reloc() 135 reloc->r_size = 0; in count_reloc() 141 reloc->r_value = addr; in count_reloc() [all …]
|
/illumos-gate/usr/src/lib/libc/amd64/unwind/ |
H A D | eh_frame.c | 71 ptrdiff_t reloc; in _Unw_Decode_FDE() local 94 reloc = 0; in _Unw_Decode_FDE() 95 base = ((intptr_t)data) + reloc; in _Unw_Decode_FDE() 106 f->fde_reloc = reloc; in _Unw_Decode_FDE() 143 func = _Unw_get_val(&data, reloc, ADDR, 1, 1, code_enc); in _Unw_Decode_FDE() 144 range = _Unw_get_val(&data, reloc, SIZE, 1, 1, code_enc); in _Unw_Decode_FDE() 150 scratch = _Unw_get_val(&data, reloc, ULEB128, 1, 1, 0); in _Unw_Decode_FDE() 156 lsda = (void *)_Unw_get_val(&data, reloc, in _Unw_Decode_FDE() 163 lsda = (void*)_Unw_get_val(&data, reloc, in _Unw_Decode_FDE() 171 lsda = (void *)_Unw_get_val(&data, reloc, in _Unw_Decode_FDE() [all …]
|
H A D | call_frame_inst.c | 118 ptrdiff_t reloc, uint64_t current_loc, uint64_t pc, 356 static uint64_t get_encoded_val(void **datap, ptrdiff_t reloc, int enc); 363 _Unw_get_val(void **datap, ptrdiff_t reloc, in _Unw_get_val() argument 461 return (get_encoded_val(datap, reloc, enc)); in _Unw_get_val() 463 return (get_encoded_val(datap, reloc, enc & 0x7)); in _Unw_get_val() 473 get_encoded_val(void **datap, ptrdiff_t reloc, int enc) in get_encoded_val() argument 478 intptr_t loc = ((intptr_t)*datap) + reloc; in get_encoded_val() 488 res = _Unw_get_val(datap, reloc, ULEB128, 1, 1, 0); in get_encoded_val() 491 res = _Unw_get_val(datap, reloc, UNUM16, 1, 1, 0); in get_encoded_val() 494 res = _Unw_get_val(datap, reloc, UNUM32, 1, 1, 0); in get_encoded_val() [all …]
|
/illumos-gate/usr/src/cmd/sgs/librtld/i386/ |
H A D | _relocate.c | 39 undo_reloc(void *vrel, uchar_t *oaddr, uchar_t *iaddr, Reloc *reloc) in undo_reloc() argument 52 (void) memset((void *)oaddr, 0, (size_t)reloc->r_size); in undo_reloc() 57 *_oaddr = *_iaddr + reloc->r_value; in undo_reloc() 59 *_oaddr = reloc->r_value; in undo_reloc() 77 inc_reloc(void *vnrel, void *vorel, Reloc *reloc, uchar_t *oaddr, in inc_reloc() argument 89 *_oaddr = *_iaddr + reloc->r_value; in inc_reloc() 91 *_oaddr = reloc->r_value; in inc_reloc() 95 nrel->r_offset += reloc->r_value; in inc_reloc() 116 apply_reloc(void *vrel, Reloc *reloc, const char *name, uchar_t *oaddr, in apply_reloc() argument 121 Word value = reloc->r_value; in apply_reloc() [all …]
|
/illumos-gate/usr/src/cmd/sgs/librtld/amd64/ |
H A D | _relocate.c | 40 undo_reloc(void *vrel, uchar_t *oaddr, uchar_t *iaddr, Reloc *reloc) in undo_reloc() argument 49 (void) memset((void *)oaddr, 0, (size_t)reloc->r_size); in undo_reloc() 59 *_oaddr = *_iaddr + reloc->r_value; in undo_reloc() 61 *_oaddr = reloc->r_value; in undo_reloc() 83 inc_reloc(void *vnrel, void *vorel, Reloc *reloc, uchar_t *oaddr, in inc_reloc() argument 96 *_oaddr = *_iaddr + reloc->r_value; in inc_reloc() 98 *_oaddr = reloc->r_value; in inc_reloc() 102 nrel->r_offset += reloc->r_value; in inc_reloc() 124 apply_reloc(void *vrel, Reloc *reloc, const char *name, uchar_t *oaddr, in apply_reloc() argument 129 Xword value = reloc->r_value + rel->r_addend; in apply_reloc() [all …]
|
/illumos-gate/usr/src/cmd/sgs/librtld/sparc/ |
H A D | _relocate.c | 40 undo_reloc(void *vrel, uchar_t *oaddr, uchar_t *iaddr, Reloc *reloc) in undo_reloc() argument 52 (void) memset((void *)oaddr, 0, (size_t)reloc->r_size); in undo_reloc() 85 inc_reloc(void *vnrel, void *vorel, Reloc *reloc, uchar_t *oaddr, in inc_reloc() argument 92 nrel->r_offset += reloc->r_value; in inc_reloc() 114 apply_reloc(void *vrel, Reloc *reloc, const char *name, uchar_t *oaddr, in apply_reloc() argument 119 Xword value = reloc->r_value + rel->r_addend; in apply_reloc() 132 (uintptr_t)value, reloc->r_pltndx); in apply_reloc() 136 (size_t)reloc->r_size); in apply_reloc() 140 (void) do_reloc_rtld(type, oaddr, &value, reloc->r_name, name, in apply_reloc()
|
/illumos-gate/usr/src/cmd/sgs/librtld/sparcv9/ |
H A D | _relocate.c | 40 undo_reloc(void *vrel, uchar_t *oaddr, uchar_t *iaddr, Reloc *reloc) in undo_reloc() argument 52 (void) memset((void *)oaddr, 0, (size_t)reloc->r_size); in undo_reloc() 85 inc_reloc(void *vnrel, void *vorel, Reloc *reloc, uchar_t *oaddr, in inc_reloc() argument 92 nrel->r_offset += reloc->r_value; in inc_reloc() 114 apply_reloc(void *vrel, Reloc *reloc, const char *name, uchar_t *oaddr, in apply_reloc() argument 119 Xword value = reloc->r_value + rel->r_addend; in apply_reloc() 132 (uintptr_t)value, reloc->r_pltndx); in apply_reloc() 136 (size_t)reloc->r_size); in apply_reloc() 140 (void) do_reloc_rtld(type, oaddr, &value, reloc->r_name, name, in apply_reloc()
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgscripts/ |
H A D | i.CompCpio.sh | 299 if [ -r $PKGSRC/reloc.cpio.Z ]; then 301 Reloc_Arch=$PKGSRC/reloc.cpio.Z 311 if [ -r $PKGSRC/reloc.cpio ]; then 313 Reloc_Arch=$PKGSRC/reloc.cpio 323 if [ -r $PKGSRC/reloc.Z ]; then 325 Reloc_Arch=$PKGSRC/reloc.Z 335 if [ -f $PKGSRC/reloc ]; then 337 Reloc_Arch=$PKGSRC/reloc
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | relocate.c | 121 Rel *rend, *reloc; in is_disp_copied() local 127 reloc = (Rel *)irel->is_indata->d_buf; in is_disp_copied() 142 for (rend = (Rel *)((uintptr_t)reloc + (uintptr_t)rsize); in is_disp_copied() 143 reloc < rend; in is_disp_copied() 144 reloc = (Rel *)((uintptr_t)reloc + (uintptr_t)entsize)) { in is_disp_copied() 148 if (IS_PC_RELATIVE(ELF_R_TYPE(reloc->r_info, in is_disp_copied() 155 rstndx = (Word) ELF_R_SYM(reloc->r_info); in is_disp_copied() 167 (uint_t)ELF_R_TYPE(reloc->r_info, in is_disp_copied() 171 EC_XWORD(reloc->r_offset), in is_disp_copied() 180 (reloc->r_offset < symaddr) || in is_disp_copied() [all …]
|
/illumos-gate/usr/src/cmd/geniconvtbl/ |
H A D | assemble.c | 174 ref->reloc.itm_ptr, ref->size, in assemble() 516 name->reloc.itm_ptr = n_plc; in relocation_II() 533 name->reloc.itm_pad = 0; in relocation_II() 535 name->reloc.itm_ptr = n_plc; in relocation_II() 557 name->object->reloc.itm_ptr); in relocation_II() 587 itm_header->direc_init_tbl = ref_first[ITMC_OBJ_DIREC]->reloc; in relocation_II() 589 itm_header->direc_init_tbl = ref_first[ITMC_OBJ_MAP]->reloc; in relocation_II() 602 itm_header->op_init_tbl = ref->reloc; in relocation_II() 605 itm_header->op_reset_tbl = ref->reloc; in relocation_II() 622 ref->reloc.itm_ptr = place; in fix_itmc_ref_reloc() [all …]
|
H A D | itmcomp.h | 171 itm_place_t reloc; member 180 itm_place_t reloc; member
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | relocate.c | 66 Dbg_reloc_error(Lm_list *lml, int caller, Half mach, Word type, void *reloc, in Dbg_reloc_error() argument 74 Elf_reloc_entry_1(lml, caller, MSG_INTL(MSG_STR_IN), mach, type, reloc, in Dbg_reloc_error() 294 Dbg_reloc_out(Ofl_desc *ofl, int caller, Word type, void *reloc, in Dbg_reloc_out() argument 303 ofl->ofl_dehdr->e_machine, type, reloc, secname, symname, in Dbg_reloc_out() 308 Dbg_reloc_in(Lm_list *lml, int caller, Half mach, Word type, void *reloc, in Dbg_reloc_in() argument 319 Elf_reloc_entry_1(lml, caller, MSG_INTL(MSG_STR_IN), mach, type, reloc, in Dbg_reloc_in() 425 void *reloc, const char *secname, const char *symname, const char *poststr) in Dbg_reloc_entry() argument 434 Elf_reloc_entry_1(lml, ELF_DBG_LD, prestr, mach, type, reloc, secname, in Dbg_reloc_entry() 659 Word type, void *reloc, const char *secname, const char *symname, in Elf_reloc_entry_1() argument 668 Rela *rela = (Rela *)reloc; in Elf_reloc_entry_1() [all …]
|
H A D | got.c | 128 uchar_t ei_target_data, uchar_t ei_host_data, Word type, void *reloc, in Elf_got_entry() argument 149 if (reloc) { in Elf_got_entry() 151 rela = (Rela *)reloc; in Elf_got_entry() 155 rel = (Rel *)reloc; in Elf_got_entry()
|
/illumos-gate/usr/src/lib/libkvm/common/ |
H A D | kvm_getcmd.c | 91 ptrdiff_t reloc; in kvm_getcmd32() local 209 reloc = (char *)(argv + aptrcount) - (char *) in kvm_getcmd32() 214 str = (argv[i] += reloc); in kvm_getcmd32() 227 reloc = (char *)(envp + eptrcount) - (char *) in kvm_getcmd32() 231 (1 + argc) * sizeof (caddr32_t) + reloc); in kvm_getcmd32() 237 str = (envp[i] += reloc); in kvm_getcmd32()
|
/illumos-gate/usr/src/boot/efi/loader/arch/arm/ |
H A D | ldscript.arm | 58 .reloc : { *(.reloc) }
|
/illumos-gate/usr/src/boot/efi/loader/arch/amd64/ |
H A D | ldscript.amd64 | 67 .reloc : { *(.reloc) }
|
H A D | start.S | 73 .section .reloc, "a"
|
/illumos-gate/usr/src/boot/efi/loader/arch/arm64/ |
H A D | ldscript.arm64 | 77 .reloc : { *(.reloc) }
|
/illumos-gate/usr/src/boot/efi/loader/arch/i386/ |
H A D | ldscript.i386 | 70 .reloc : { *(.reloc) }
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | _elfdump.h | 189 #define reloc reloc64 macro 213 #define reloc reloc32 macro
|
/illumos-gate/usr/src/cmd/sgs/rtld/i386/ |
H A D | boot_elf.S | 292 elf_rtbndr(Rt_map * lmp, unsigned long reloc, caddr_t pc) 294 (void) elf_bndr(lmp, reloc, pc); 312 pushl 8(%ebp) / push reloc
|
/illumos-gate/usr/src/uts/sun4/conf/ |
H A D | Mapfile | 60 # put reloc seg in space between text and data 63 LOAD_SEGMENT reloc {
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | fixpath.c | 404 set_basedirs(int reloc, char *adm_basedir, char *pkginst, int nointeract) in set_basedirs() argument 409 relocatable = reloc; in set_basedirs() 423 if (reloc) { in set_basedirs()
|
/illumos-gate/usr/src/uts/common/io/nxge/npi/ |
H A D | npi_txdma.c | 330 channel, (cfgp->reloc & DMA_LOG_PAGE_RELO_MASK)); in npi_txdma_log_page_set() 337 channel, (cfgp->reloc & DMA_LOG_PAGE_RELO_MASK)); in npi_txdma_log_page_set() 417 cfgp->reloc = val & DMA_LOG_PAGE_RELO_MASK; in npi_txdma_log_page_get() 425 cfgp->reloc = val & DMA_LOG_PAGE_RELO_MASK; in npi_txdma_log_page_get() 552 cfgp->reloc = val & DMA_LOG_PAGE_RELO_MASK; in npi_txdma_log_page_config() 556 cfgp->reloc = val & DMA_LOG_PAGE_RELO_MASK; in npi_txdma_log_page_config() 576 cfgp->value = cfgp->reloc = 0; in npi_txdma_log_page_config() 610 (cfgp->reloc & DMA_LOG_PAGE_RELO_MASK)); in npi_txdma_log_page_config() 614 (cfgp->reloc & DMA_LOG_PAGE_RELO_MASK)); in npi_txdma_log_page_config()
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_fzc.c | 317 page1.reloc = 0; in nxge_init_fzc_rdc() 324 page2.reloc = 0; in nxge_init_fzc_rdc() 552 cfg.reloc = rbrp->page_reloc_1.value; in nxge_init_fzc_rxdma_channel_pages() 566 cfg.reloc = rbrp->page_reloc_2.value; in nxge_init_fzc_rxdma_channel_pages() 662 page1.reloc = 0; in nxge_init_fzc_tdc() 669 page1.reloc = 0; in nxge_init_fzc_tdc() 1154 cfg.reloc = tx_ring_p->page_reloc_1.value; in nxge_init_fzc_txdma_channel_pages() 1169 cfg.reloc = tx_ring_p->page_reloc_2.value; in nxge_init_fzc_txdma_channel_pages()
|