194aa3
Partial backport of the scripts/glibcelf.py part of:
194aa3
194aa3
commit 2d83247d90c9f0bfee7f3f2505bc1b13b6f36c04
194aa3
Author: caiyinyu <caiyinyu@loongson.cn>
194aa3
Date:   Tue Jul 19 09:20:45 2022 +0800
194aa3
194aa3
    LoongArch: Add relocations and ELF flags to elf.h and scripts/glibcelf.py
194aa3
194aa3
diff --git a/scripts/glibcelf.py b/scripts/glibcelf.py
194aa3
index 47f95d07baefb4ae..de0509130ed9ad47 100644
194aa3
--- a/scripts/glibcelf.py
194aa3
+++ b/scripts/glibcelf.py
194aa3
@@ -252,7 +252,8 @@ class Machine(_OpenIntEnum):
194aa3
     EM_RISCV = 243
194aa3
     EM_BPF = 247
194aa3
     EM_CSKY = 252
194aa3
-    EM_NUM = 253
194aa3
+    EM_LOONGARCH = 258
194aa3
+    EM_NUM = 259
194aa3
     EM_ALPHA = 0x9026
194aa3
 
194aa3
 class Et(_OpenIntEnum):