binutils-gdb/ld/testsuite/ld-loongarch-elf/libjirl.s
liuzhensong 42bd5254fb LoongArch: ld: Fix bug not generate plt when link a dso
Fix the bug that can not generate func@plt
  when linking a undefined function with cmodel=medium.
  Add testcase.

  bfd/
    * elfnn-loongarch.c
  ld/testsuite/ld-loongarch-elf/
    * cmodel-libjirl.dd
    * cmodel.exp
    * libjirl.s
2022-08-24 14:27:03 +08:00

3 lines
61 B
ArmAsm

pcalau12i $r12, %pc_hi20(func)
jirl $r1,$r12, %pc_lo12(func)