[all-commits] [llvm/llvm-project] 88548d: [lld][LoongArch] Support the R_LARCH_CALL36 reloca...

Lu Weining via All-commits all-commits at lists.llvm.org
Mon Dec 25 01:41:02 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 88548df0fc08364bd03148c936e36f0bb07dde8a
      https://github.com/llvm/llvm-project/commit/88548df0fc08364bd03148c936e36f0bb07dde8a
  Author: Lu Weining <luweining at loongson.cn>
  Date:   2023-12-25 (Mon, 25 Dec 2023)

  Changed paths:
    M lld/ELF/Arch/LoongArch.cpp
    A lld/test/ELF/loongarch-call36.s

  Log Message:
  -----------
  [lld][LoongArch] Support the R_LARCH_CALL36 relocation type (#73346)

R_LARCH_CALL36 was designed for function call on medium code model where
the 2 instructions (pcaddu18i + jirl) must be adjacent. This is expected
to replace current medium code model implementation, i.e.
R_LARCH_PCALA_{HI20,LO12} on pcalau12i + jirl.

See https://github.com/loongson/la-abi-specs/pull/3 for more details.




More information about the All-commits mailing list