Patchwork [2/6] ldd: Add ARC support

login
register
mail settings
Submitter Vineet Gupta
Date Nov. 1, 2013, 10:55 a.m.
Message ID <1383303307-1280-3-git-send-email-vgupta@synopsys.com>
Download mbox | patch
Permalink /patch/287785/
State Superseded
Headers show

Comments

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

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