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