OSDN Git Service

ldd: ELFCLASSM was not defined for the Xtensa architecture
authorChris Zankel <chris@zankel.net>
Wed, 17 Oct 2012 23:13:15 +0000 (16:13 -0700)
committerChris Zankel <chris@zankel.net>
Sat, 3 Nov 2012 19:57:45 +0000 (12:57 -0700)
Signed-off-by: Chris Zankel <chris@zankel.net>
utils/ldd.c

index 2812d2a..e53f360 100644 (file)
 #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>