summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxiang88 <94350585+liuxiang88@users.noreply.github.com>2023-05-13 12:08:50 +0800
committerGitHub <noreply@github.com>2023-05-12 21:08:50 -0700
commitbfe1bc257d6d177fb495c52b0bc2a1719d8eba6b (patch)
tree6fc417b1e350b183e2494e6cdfedf32501c5b7be
parent61e374f24718975e8175f048e70afaaf0c4771a9 (diff)
downloadyasm-bfe1bc257d6d177fb495c52b0bc2a1719d8eba6b.tar.gz
Add EM for loongarch (#192)
-rw-r--r--modules/objfmts/elf/elf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/objfmts/elf/elf.h b/modules/objfmts/elf/elf.h
index fce629ae..69ed3f01 100644
--- a/modules/objfmts/elf/elf.h
+++ b/modules/objfmts/elf/elf.h
@@ -75,7 +75,8 @@ typedef enum {
EM_SPARCV9 = 43, /* SPARC v9 64-bit */
EM_IA_64 = 50, /* Intel IA-64 */
EM_X86_64 = 62, /* AMD x86-64 */
- EM_ALPHA = 0x9026 /* Alpha (no ABI) */
+ EM_ALPHA = 0x9026, /* Alpha (no ABI) */
+ EM_LOONGARCH = 258 /* loongson LoongArch */
} elf_machine;
typedef enum {