diff mbox

[2/6] ldd: Add ARC support

Message ID 1383303307-1280-3-git-send-email-vgupta@synopsys.com
State Superseded
Headers show

Commit Message

Vineet Gupta Nov. 1, 2013, 10:55 a.m. UTC
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
---
 utils/ldd.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/utils/ldd.c b/utils/ldd.c
index a95e56975194..a12acd2533be 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