[all-commits] [llvm/llvm-project] d1539e: [lld][LoongArch] Fix range checking of R_LARCH_*_P...

hev via All-commits all-commits at lists.llvm.org
Mon Jun 15 23:07:22 PDT 2026


  Branch: refs/heads/users/hev/fix-lld-pcadd-check
  Home:   https://github.com/llvm/llvm-project
  Commit: d1539edb0e10c4cdb1257bb6da83b29ec03455b6
      https://github.com/llvm/llvm-project/commit/d1539edb0e10c4cdb1257bb6da83b29ec03455b6
  Author: WANG Rui <wangrui at loongson.cn>
  Date:   2026-06-16 (Tue, 16 Jun 2026)

  Changed paths:
    M lld/ELF/Arch/LoongArch.cpp

  Log Message:
  -----------
  [lld][LoongArch] Fix range checking of R_LARCH_*_PCADD_HI20 relocations on 64-bit

According to the la-abi-specs, the R_LARCH_*_PCADD_HI20 relocations are
also used on 64-bit LoongArch. Fix the range checking accordingly.


  Commit: 4f8a1e93a25ac2e73b557a8c4a9e7f41f6414c1e
      https://github.com/llvm/llvm-project/commit/4f8a1e93a25ac2e73b557a8c4a9e7f41f6414c1e
  Author: WANG Rui <wangrui at loongson.cn>
  Date:   2026-06-16 (Tue, 16 Jun 2026)

  Changed paths:
    A lld/test/ELF/loongarch-pcadd-hi20.s

  Log Message:
  -----------
  Add test case


Compare: https://github.com/llvm/llvm-project/compare/04f075f19705...4f8a1e93a25a

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list