From patchwork Fri Nov 1 10:55:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 287785 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 46FDF2C00CE for ; Fri, 1 Nov 2013 21:55:49 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6EFFC8B8A0; Fri, 1 Nov 2013 10:55:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NiIH4LfXlzO4; Fri, 1 Nov 2013 10:55:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 040CE8B806; Fri, 1 Nov 2013 10:55:48 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 494211BF962 for ; Fri, 1 Nov 2013 10:55:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4210B8BCC3 for ; Fri, 1 Nov 2013 10:55:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cAaKIVHnZpOt for ; Fri, 1 Nov 2013 10:55:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from vaxjo.synopsys.com (vaxjo.synopsys.com [198.182.60.75]) by whitealder.osuosl.org (Postfix) with ESMTP id AF39F8BCBD for ; Fri, 1 Nov 2013 10:55:45 +0000 (UTC) Received: from WBSNus01mta1 (us01secmta1.synopsys.com [10.9.203.100]) by vaxjo.synopsys.com (Postfix) with ESMTP id 88DD4DA72 for ; Fri, 1 Nov 2013 03:55:43 -0700 (PDT) Received: from us01secmta1.internal.synopsys.com (us01secmta1.internal.synopsys.com [127.0.0.1]) by us01secmta1.internal.synopsys.com (Service) with ESMTP id 73C3227113 for ; Fri, 1 Nov 2013 03:55:43 -0700 (PDT) Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by us01secmta1.internal.synopsys.com (Service) with ESMTP id 5A87927102 for ; Fri, 1 Nov 2013 03:55:43 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 508F087A for ; Fri, 1 Nov 2013 03:55:43 -0700 (PDT) Received: from US01WEHTC2.internal.synopsys.com (us01wehtc2.internal.synopsys.com [10.12.239.237]) by mailhost.synopsys.com (Postfix) with ESMTP id 4BEA6878 for ; Fri, 1 Nov 2013 03:55:43 -0700 (PDT) Received: from IN01WEHTCA.internal.synopsys.com (10.144.199.104) by US01WEHTC2.internal.synopsys.com (10.12.239.237) with Microsoft SMTP Server (TLS) id 14.2.298.4; Fri, 1 Nov 2013 03:55:43 -0700 Received: from vineetg-E6520.internal.synopsys.com (10.12.197.76) by IN01WEHTCA.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.2.298.4; Fri, 1 Nov 2013 16:25:38 +0530 From: Vineet Gupta To: Subject: [PATCH 2/6] ldd: Add ARC support Date: Fri, 1 Nov 2013 16:25:03 +0530 Message-ID: <1383303307-1280-3-git-send-email-vgupta@synopsys.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1383303307-1280-1-git-send-email-vgupta@synopsys.com> References: <1383303307-1280-1-git-send-email-vgupta@synopsys.com> MIME-Version: 1.0 X-Originating-IP: [10.12.197.76] Cc: Vineet Gupta X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: uclibc-bounces@uclibc.org Sender: uclibc-bounces@uclibc.org Signed-off-by: Vineet Gupta --- utils/ldd.c | 5 +++++ 1 file changed, 5 insertions(+) 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