Lines Matching refs:orsp

225 ld_perform_outreloc(Rel_desc * orsp, Ofl_desc * ofl, Boolean *remain_seen)  in ld_perform_outreloc()  argument
234 sdp = orsp->rel_sym; in ld_perform_outreloc()
240 if (orsp->rel_isdesc && ((orsp->rel_flags & in ld_perform_outreloc()
242 (orsp->rel_isdesc->is_flags & FLG_IS_DISCARD)) { in ld_perform_outreloc()
243 DBG_CALL(Dbg_reloc_discard(ofl->ofl_lml, M_MACH, orsp)); in ld_perform_outreloc()
251 if (RELAUX_GET_MOVE(orsp)) in ld_perform_outreloc()
252 ld_adj_movereloc(ofl, orsp); in ld_perform_outreloc()
265 (psym = ld_am_I_partial(orsp, *(Xword *) in ld_perform_outreloc()
266 ((uchar_t *)(orsp->rel_isdesc->is_indata->d_buf) + in ld_perform_outreloc()
267 orsp->rel_roffset)))) { in ld_perform_outreloc()
275 if (orsp->rel_flags & FLG_REL_GOT) { in ld_perform_outreloc()
277 roffset = (Word)ld_calc_got_offset(orsp, ofl); in ld_perform_outreloc()
279 } else if (orsp->rel_flags & FLG_REL_PLT) { in ld_perform_outreloc()
290 } else if (orsp->rel_flags & FLG_REL_BSS) { in ld_perform_outreloc()
298 osp = RELAUX_GET_OSDESC(orsp); in ld_perform_outreloc()
305 roffset = orsp->rel_roffset + in ld_perform_outreloc()
306 (Off)_elf_getxoff(orsp->rel_isdesc->is_indata); in ld_perform_outreloc()
308 roffset += orsp->rel_isdesc->is_osdesc-> in ld_perform_outreloc()
321 if (orsp->rel_rtype == R_386_RELATIVE) in ld_perform_outreloc()
323 else if ((orsp->rel_flags & FLG_REL_SCNNDX) || in ld_perform_outreloc()
344 if (orsp->rel_flags & FLG_REL_NADDEND) { in ld_perform_outreloc()
345 Xword addend = orsp->rel_raddend; in ld_perform_outreloc()
351 addr = (uchar_t *)((uintptr_t)orsp->rel_roffset + in ld_perform_outreloc()
352 (uintptr_t)_elf_getxoff(orsp->rel_isdesc->is_indata)); in ld_perform_outreloc()
353 addr += (uintptr_t)RELAUX_GET_OSDESC(orsp)->os_outdata->d_buf; in ld_perform_outreloc()
354 if (ld_reloc_targval_set(ofl, orsp, addr, addend) == 0) in ld_perform_outreloc()
360 rea.r_info = ELF_R_INFO(ndx, orsp->rel_rtype); in ld_perform_outreloc()
363 ld_reloc_sym_name(orsp))); in ld_perform_outreloc()
380 if (orsp->rel_rtype == R_386_JMP_SLOT) in ld_perform_outreloc()
383 ld_reloc_remain_entry(orsp, osp, ofl, remain_seen); in ld_perform_outreloc()
1112 Rel_desc *orsp; in ld_add_outrel() local
1158 if ((orsp = ld_reloc_enter(ofl, &ofl->ofl_outrels, rsp, flags)) == NULL) in ld_add_outrel()
1170 RELAUX_GET_OSDESC(orsp)->os_szoutrels += (Xword)sizeof (Rel); in ld_add_outrel()
1172 if (orsp->rel_rtype == M_R_RELATIVE) in ld_add_outrel()
1186 if (IS_GOT_REQUIRED(orsp->rel_rtype)) in ld_add_outrel()
1192 if (orsp->rel_flags & FLG_REL_DISP) { in ld_add_outrel()
1196 ld_disp_errmsg(MSG_INTL(MSG_REL_DISPREL4), orsp, ofl); in ld_add_outrel()
1199 M_MACH, orsp)); in ld_add_outrel()