26 lines
605 B
Diff
26 lines
605 B
Diff
From b8be0013703604f1370eefb1f40fcaacc0e285a4 Mon Sep 17 00:00:00 2001
|
|
From: Lee Qian <liqian@kylinos.cn>
|
|
Date: Mon, 13 May 2024 16:10:39 +0800
|
|
Subject: [PATCH] add loonagrch support
|
|
|
|
|
|
diff --git a/src/local-elf.h b/src/local-elf.h
|
|
index f784b12..acf0820 100644
|
|
--- a/src/local-elf.h
|
|
+++ b/src/local-elf.h
|
|
@@ -197,7 +197,10 @@
|
|
#error Unsupported ELF class
|
|
#endif
|
|
#define ELF_TARG_DATA ELFDATA2LSB
|
|
-
|
|
+#elif defined(__loongarch64)
|
|
+#define ELF_TARG_MACH EM_LOONGARCH
|
|
+#define ELF_TARG_CLASS ELFCLASS64
|
|
+#define ELF_TARG_DATA ELFDATA2LSB
|
|
#elif defined(__sparc__)
|
|
|
|
#if defined(__arch64__)
|
|
--
|
|
2.43.0
|
|
|