[all-commits] [llvm/llvm-project] 036b17: [LoongArch] Produce a R_LARCH_32_PCREL relocation

wangleiat via All-commits all-commits at lists.llvm.org
Wed Sep 28 18:05:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 036b170c24f77d83d2f09186490ef5332aa8e243
      https://github.com/llvm/llvm-project/commit/036b170c24f77d83d2f09186490ef5332aa8e243
  Author: wanglei <wanglei at loongson.cn>
  Date:   2022-09-29 (Thu, 29 Sep 2022)

  Changed paths:
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchELFObjectWriter.cpp
    A llvm/test/MC/LoongArch/Relocations/fde-reloc.s

  Log Message:
  -----------
  [LoongArch] Produce a R_LARCH_32_PCREL relocation

LoongArchELFObjectWriter::getRelocType check IsPCRel for FK_Data_4
(which we produce a R_LARCH_32_PCREL relocation for if IsPCRel).

R_LARCH_32_PCREL is required for FDE relocation.

Differential Revision: https://reviews.llvm.org/D134715




More information about the All-commits mailing list