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