[llvm] [BinaryFormat][LoongArch] Define psABI v2.30 relocs (PR #77039)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 6 21:57:31 PST 2024


================
@@ -77,6 +77,10 @@ TEST(ELFTest, getELFRelocationTypeNameForLoongArch) {
             getELFRelocationTypeName(EM_LOONGARCH, R_LARCH_TLS_TPREL64));
   EXPECT_EQ("R_LARCH_IRELATIVE",
             getELFRelocationTypeName(EM_LOONGARCH, R_LARCH_IRELATIVE));
+  EXPECT_EQ("R_LARCH_TLS_DESC32",
----------------
MaskRay wrote:

You don't need to update this unittest. Currently VE/LoongArch add relocation types here but the llvm-readobj test suffices.

https://github.com/llvm/llvm-project/pull/77039


More information about the llvm-commits mailing list