summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHengqi Chen <hengqi.chen@gmail.com>2022-12-03 21:47:07 +0800
committerMark Wielaard <mark@klomp.org>2022-12-19 23:34:43 +0100
commit13a4d1279c5b7847049ca3045d04f2705c45ce31 (patch)
treeb832b1f58e49df801a7863c950e5c47d89e65d22 /src
parent9c136cb3007f3c8649a6856c7e2f4fa6aabf76b8 (diff)
downloadelfutils-13a4d1279c5b7847049ca3045d04f2705c45ce31.tar.gz
Add support for LoongArch
This implements initial support for the LoongArch architecture. Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/elflint.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 66428b70..b679f092 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2022-12-02 Hengqi Chen <hengqi.chen@gmail.com>
+
+ * elflint.c (valid_e_machine): Add EM_LOONGARCH.
+
2022-11-03 Mark Wielaard <mark@klomp.org>
* readelf.c (get_dynscn_addrs): Check gelf_getdyn doesn't
diff --git a/src/elflint.c b/src/elflint.c
index 565cffdc..b9548862 100644
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -329,7 +329,7 @@ static const int valid_e_machine[] =
EM_CRIS, EM_JAVELIN, EM_FIREPATH, EM_ZSP, EM_MMIX, EM_HUANY, EM_PRISM,
EM_AVR, EM_FR30, EM_D10V, EM_D30V, EM_V850, EM_M32R, EM_MN10300,
EM_MN10200, EM_PJ, EM_OPENRISC, EM_ARC_A5, EM_XTENSA, EM_ALPHA,
- EM_TILEGX, EM_TILEPRO, EM_AARCH64, EM_BPF, EM_RISCV, EM_CSKY
+ EM_TILEGX, EM_TILEPRO, EM_AARCH64, EM_BPF, EM_RISCV, EM_CSKY, EM_LOONGARCH,
};
#define nvalid_e_machine \
(sizeof (valid_e_machine) / sizeof (valid_e_machine[0]))