Browse Source

ldd: ELFCLASSM was not defined for the Xtensa architecture

Signed-off-by: Chris Zankel <chris@zankel.net>
Chris Zankel 11 years ago
parent
commit
e3913641ef
1 changed files with 5 additions and 0 deletions
  1. 5 0
      utils/ldd.c

+ 5 - 0
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>