瀏覽代碼

ldd: ELFCLASSM was not defined for the Xtensa architecture

Signed-off-by: Chris Zankel <chris@zankel.net>
Chris Zankel 11 年之前
父節點
當前提交
e3913641ef
共有 1 個文件被更改,包括 5 次插入0 次删除
  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>