/* Relax pcalau12i,addi.d => pcaddi. */
static bool
-loongarch_relax_pcala_addi(bfd *abfd, asection *sec,
+loongarch_relax_pcala_addi (bfd *abfd, asection *sec,
Elf_Internal_Rela *rel_hi, bfd_vma symval)
{
bfd_byte *contents = elf_section_data (sec)->this_hdr.contents;
{
if (i + 4 > sec->reloc_count)
break;
- loongarch_relax_pcala_addi(abfd, sec, rel, symval);
+ loongarch_relax_pcala_addi (abfd, sec, rel, symval);
}
break;
case R_LARCH_GOT_PC_HI20:
break;
if (loongarch_relax_pcala_ld (abfd, sec, rel))
{
- loongarch_relax_pcala_addi(abfd, sec, rel, symval);
+ loongarch_relax_pcala_addi (abfd, sec, rel, symval);
}
}
break;
#include "opcode/loongarch.h"
#include "libiberty.h"
-struct loongarch_ASEs_option LARCH_opts;
+struct loongarch_ASEs_option LARCH_opts =
+{
+ .relax = 1
+};
size_t
loongarch_insn_length (insn_t insn ATTRIBUTE_UNUSED)