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