relax_func = loongarch_relax_pcala_ld;
break;
case R_LARCH_CALL36:
+ case R_LARCH_CALL30:
relax_func = loongarch_relax_call36;
break;
case R_LARCH_TLS_LE_HI20_R:
+ r_symndx;
if ((ELF_ST_TYPE (sym->st_info) == STT_GNU_IFUNC
- && r_type != R_LARCH_CALL36)
+ && (r_type != R_LARCH_CALL36 || r_type != R_LARCH_CALL30))
|| sym->st_shndx == SHN_ABS)
continue;
is not set yet. */
if (h != NULL
&& ((h->type == STT_GNU_IFUNC
- && r_type != R_LARCH_CALL36)
+ && (r_type != R_LARCH_CALL36 || r_type != R_LARCH_CALL30))
|| bfd_is_abs_section (h->root.u.def.section)
|| h->start_stop))
continue;
Undefweak for other relocations handing in the future. */
else if (h->root.type == bfd_link_hash_undefweak
&& !h->root.linker_def
- && r_type == R_LARCH_CALL36)
+ && (r_type == R_LARCH_CALL36 || r_type == R_LARCH_CALL30))
{
sym_sec = sec;
symval = rel->r_offset;
|| BFD_RELOC_LARCH_TLS_LE_LO12 == reloc_type
|| BFD_RELOC_LARCH_TLS_LE64_LO20 == reloc_type
|| BFD_RELOC_LARCH_TLS_LE64_HI12 == reloc_type
- || BFD_RELOC_LARCH_CALL36 == reloc_type))
+ || BFD_RELOC_LARCH_CALL36 == reloc_type
+ || BFD_RELOC_LARCH_CALL30 == reloc_type))
{
ip->reloc_info[ip->reloc_num].type = BFD_RELOC_LARCH_RELAX;
ip->reloc_info[ip->reloc_num].value = const_0;