summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2019-10-16 02:24:18 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2019-11-01 00:39:10 +0100
commit60eae0def70b8a2e768c6a5bec352da9d648b26c (patch)
tree9317f3e850bbccd618c274a25bd3deadee5f5549 /utils
parent01e863c89fc772a406fe56c6dddb39f71a570c06 (diff)
riscv64: add shared library support
Diffstat (limited to 'utils')
-rw-r--r--utils/ldd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/ldd.c b/utils/ldd.c
index 4c5635ca7..8852be399 100644
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -122,6 +122,11 @@
#define ELFCLASSM ELFCLASS32
#endif
+#if defined(__riscv)
+#define MATCH_MACHINE(x) (x == EM_RISCV)
+#define ELFCLASSM ELFCLASS64
+#endif
+
#if defined(__sh__)
#define MATCH_MACHINE(x) (x == EM_SH)
#define ELFCLASSM ELFCLASS32