summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2013-12-13 14:49:21 +0530
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-12-20 14:38:23 +0100
commit49904049066daf66e2937fcde860addc6ba23929 (patch)
tree32bf55dc05a1a897dceaac4c58841136b9d47923 /utils
parent052bcf13afb067cafac5e7f4fc21fbad2b34b11f (diff)
ldd: Add ARC support
Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/ldd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/ldd.c b/utils/ldd.c
index a95e56975..a12acd253 100644
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -20,6 +20,11 @@
#define ELFCLASSM ELFCLASS64
#endif
+#if defined(__arc__)
+#define MATCH_MACHINE(x) (x == EM_ARCOMPACT)
+#define ELFCLASSM ELFCLASS32
+#endif
+
#if defined(__arm__) || defined(__thumb__)
#define MATCH_MACHINE(x) (x == EM_ARM)
#define ELFCLASSM ELFCLASS32