summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/ldd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/ldd.c b/utils/ldd.c
index 2812d2a07..e53f360d6 100644
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -106,6 +106,11 @@
#define ELFCLASSM ELFCLASS32
#endif
+#if defined(__xtensa__)
+#define MATCH_MACHINE(x) (x == EM_XTENSA)
+#define ELFCLASSM ELFCLASS32
+#endif
+
#ifndef MATCH_MACHINE
# ifdef __linux__
# include <asm/elf.h>