[PATCH] D138135: [lld][ELF] Support LoongArch

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 7 14:46:02 PDT 2023


MaskRay added inline comments.


================
Comment at: lld/ELF/Arch/LoongArch.cpp:406
+    return R_TPREL;
+  case R_LARCH_ADD8:
+  case R_LARCH_ADD16:
----------------
These `R_LARCH_ADD*` and `R_LARCH_SUB*` are untested.

You can use `.reloc ., R_LARCH_ADD8, sym` to force generating a relocation in a test.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138135/new/

https://reviews.llvm.org/D138135



More information about the llvm-commits mailing list