Sfoglia il codice sorgente

ldd: ELFCLASSM was not defined for the Xtensa architecture

Signed-off-by: Chris Zankel <chris@zankel.net>
Chris Zankel 11 anni fa
parent
commit
e3913641ef
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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>