summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldso/util/ldd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ldso/util/ldd.c b/ldso/util/ldd.c
index 664f55a4f..f613815af 100644
--- a/ldso/util/ldd.c
+++ b/ldso/util/ldd.c
@@ -92,6 +92,12 @@
#define ELFCLASSM ELFCLASS32
#endif
+#if defined (__sparc__)
+#define MATCH_MACHINE(x) ((x) == EM_SPARC || (x) == EM_SPARC32PLUS)
+#define ELFCLASSM ELFCLASS32
+#endif
+
+
#ifndef MATCH_MACHINE
#warning "You really should add a MATCH_MACHINE() macro for your architecture"
#endif