Lines Matching defs:rsp

1398 ld_add_outrel(Word flags, Rel_desc *rsp, Ofl_desc *ofl)
1401 Sym_desc *sdp = rsp->rel_sym;
1419 Word rtype = rsp->rel_rtype;
1427 conv_reloc_SPARC_type(rsp->rel_rtype, 0, &inv_buf),
1428 rsp->rel_isdesc->is_file->ifl_name,
1429 ld_reloc_sym_name(rsp));
1443 conv_reloc_SPARC_type(rsp->rel_rtype, 0, &inv_buf),
1444 rsp->rel_isdesc->is_file->ifl_name,
1445 ld_reloc_sym_name(rsp));
1456 if (sdp && (rsp->rel_rtype != M_R_RELATIVE) &&
1485 if ((orsp = ld_reloc_enter(ofl, &ofl->ofl_outrels, rsp, flags)) == NULL)
1555 ld_reloc_register(Rel_desc *rsp, Is_desc *isp, Ofl_desc *ofl)
1559 Sym_desc *sdp = rsp->rel_sym;
1562 Xword offset = rsp->rel_roffset;
1576 return (ld_add_outrel((rsp->rel_flags | FLG_REL_REG), rsp, ofl));
1583 ld_reloc_local(Rel_desc *rsp, Ofl_desc *ofl)
1586 Sym_desc *sdp = rsp->rel_sym;
1601 if ((flags & FLG_OF_SHAROBJ) && (rsp->rel_flags & FLG_REL_LOAD) &&
1602 !(IS_PC_RELATIVE(rsp->rel_rtype)) && !(IS_SIZE(rsp->rel_rtype)) &&
1603 !(IS_GOT_BASED(rsp->rel_rtype)) &&
1604 !(rsp->rel_isdesc != NULL &&
1605 (rsp->rel_isdesc->is_shdr->sh_type == SHT_SUNW_dof)) &&
1608 Word ortype = rsp->rel_rtype;
1610 if ((rsp->rel_rtype != R_SPARC_32) &&
1611 (rsp->rel_rtype != R_SPARC_PLT32) &&
1612 (rsp->rel_rtype != R_SPARC_64))
1614 rsp, ofl));
1616 rsp->rel_rtype = R_SPARC_RELATIVE;
1617 if (ld_add_outrel(FLG_REL_ADVAL, rsp, ofl) == S_ERROR)
1619 rsp->rel_rtype = ortype;
1638 if (!(rsp->rel_flags & FLG_REL_LOAD) &&
1643 Os_desc *osp = RELAUX_GET_OSDESC(rsp);
1653 conv_reloc_SPARC_type(rsp->rel_rtype, 0, &inv_buf),
1654 rsp->rel_isdesc->is_file->ifl_name,
1655 ld_reloc_sym_name(rsp), osp->os_name);
1662 return (ld_add_actrel(NULL, rsp, ofl));
1682 ld_reloc_GOTOP(Boolean local, Rel_desc *rsp, Ofl_desc *ofl)
1684 Word rtype = rsp->rel_rtype;
1686 if (!local || (rsp->rel_sym->sd_sym->st_shndx == SHN_ABS)) {
1693 return (ld_reloc_GOT_relative(local, rsp, ofl));
1703 return (ld_add_actrel(FLG_REL_GOTFIX, rsp, ofl));
1707 ld_reloc_TLS(Boolean local, Rel_desc *rsp, Ofl_desc *ofl)
1709 Word rtype = rsp->rel_rtype;
1710 Sym_desc *sdp = rsp->rel_sym;
1742 GOT_REF_TLSIE, ofl, rsp)) == NULL)) {
1744 if (ld_assign_got_TLS(local, rsp, ofl, sdp,
1754 return (ld_add_actrel(FLG_REL_STLS, rsp, ofl));
1760 rsp, ofl));
1767 return (ld_add_actrel(FLG_REL_STLS, rsp, ofl));
1777 rsp, ofl));
1795 ofl, rsp)) == NULL)) {
1797 if (ld_assign_got_TLS(local, rsp, ofl, sdp, gnp, GOT_REF_TLSLD,
1804 ofl, rsp)) == NULL)) {
1806 if (ld_assign_got_TLS(local, rsp, ofl, sdp, gnp, GOT_REF_TLSGD,
1823 rsp->rel_sym = tlsgetsym;
1824 rsp->rel_rtype = R_SPARC_WPLT30;
1826 if (ld_reloc_plt(rsp, ofl) == S_ERROR)
1829 rsp->rel_sym = sdp;
1830 rsp->rel_rtype = rtype;
1835 return (ld_add_actrel(FLG_REL_MTLS, rsp, ofl));
1837 return (ld_add_actrel(FLG_REL_DTLS, rsp, ofl));
1894 Rel_desc *rsp, Sym_desc *sdp)
1907 raddend = rsp->rel_raddend;
1929 if (rsp->rel_rtype != R_SPARC_GOT13) {
1940 if (rsp->rel_rtype == R_SPARC_GOT13) {
1954 if (rsp->rel_rtype == R_SPARC_GOT13) {