summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2017-11-24 13:24:19 (GMT)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2017-11-24 17:13:40 (GMT)
commitda2fa8ebe3118a32036199880589760584882ac9 (patch)
treee1c2cfd764a3f024762315de1500294ac65acf45
parent3ea3fb3ff7153e3d3859f971160a80a0d2403eea (diff)
utils: add EM_MCORE for csky machine.
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
-rw-r--r--utils/ldd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/ldd.c b/utils/ldd.c
index 963dd1a..4c5635c 100644
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -54,6 +54,11 @@
#define ELFCLASSM ELFCLASS32
#endif
+#if defined(__csky__)
+#define MATCH_MACHINE(x) (x == EM_MCORE)
+#define ELFCLASSM ELFCLASS32
+#endif
+
#if defined(__frv__)
#define MATCH_MACHINE(x) (x == EM_CYGNUS_FRV)
#define ELFCLASSM ELFCLASS32