Эх сурвалжийг харах

ldd: ELFCLASSM was not defined for the Xtensa architecture

Signed-off-by: Chris Zankel <chris@zankel.net>
Chris Zankel 12 жил өмнө
parent
commit
e3913641ef
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      utils/ldd.c

+ 5 - 0
utils/ldd.c

@@ -106,6 +106,11 @@
 #define ELFCLASSM	ELFCLASS32
 #define ELFCLASSM	ELFCLASS32
 #endif
 #endif
 
 
+#if defined(__xtensa__)
+#define MATCH_MACHINE(x) (x == EM_XTENSA)
+#define ELFCLASSM	ELFCLASS32
+#endif
+
 #ifndef MATCH_MACHINE
 #ifndef MATCH_MACHINE
 # ifdef __linux__
 # ifdef __linux__
 #  include <asm/elf.h>
 #  include <asm/elf.h>