From patchwork Wed Oct 22 05:26:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vkamensky X-Patchwork-Id: 39245 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9CDF9202DB for ; Wed, 22 Oct 2014 05:27:15 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id fb4sf176734wid.8 for ; Tue, 21 Oct 2014 22:27:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:cc:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results; bh=cm+bf7QNy3xD6c8nW85FYecpd5gy99b9g3VX8PLFNHA=; b=BafAztL2EbTVoUOCgF4qqJJJQqb3rKY8YZ2qeDIBM16PTOAswfIiwcFmNExLYZwBFu wcZYAcrkCWaukN9s/vYta/NNNaoNZO6lI8JiKSFamA5UInyIQCeX4RI5+nJaqWep6aOz KBr1R67OZyMW5YpXKllPj584wDjXuoj6oHCoUHHa8kTDpFQ2h8a5eJAfBSBnLOsmvJyh IsD7zkLfCB9S5jD0xO8CAdT2+VNkW+dTKRZxeIUmPitCEYfW4J4RISV0HlC4d8qjtY3T Ba/KaAeLh3yQFOVkveni1UBFG3H1W8zK8/J1XLh1S+CMceg8jr010oWlzGWgjQ0KNOCJ 3wlQ== X-Gm-Message-State: ALoCoQkobCaSkqq/NzLhSeYZfwBz2hjMjAXTVhz3xorYbMZT501OuAaYZOiq0/4APFItyBMDje5D X-Received: by 10.112.26.82 with SMTP id j18mr26887lbg.16.1413955634802; Tue, 21 Oct 2014 22:27:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.71 with SMTP id k7ls76449lam.90.gmail; Tue, 21 Oct 2014 22:27:14 -0700 (PDT) X-Received: by 10.112.198.73 with SMTP id ja9mr38740666lbc.19.1413955634664; Tue, 21 Oct 2014 22:27:14 -0700 (PDT) Received: from mail-lb0-x233.google.com (mail-lb0-x233.google.com. [2a00:1450:4010:c04::233]) by mx.google.com with ESMTPS id wx5si21793777lbb.123.2014.10.21.22.27.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 22:27:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::233 as permitted sender) client-ip=2a00:1450:4010:c04::233; Received: by mail-lb0-f179.google.com with SMTP id l4so2134878lbv.24 for ; Tue, 21 Oct 2014 22:27:14 -0700 (PDT) X-Received: by 10.152.29.8 with SMTP id f8mr39340591lah.56.1413955634539; Tue, 21 Oct 2014 22:27:14 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp14066lbz; Tue, 21 Oct 2014 22:27:13 -0700 (PDT) X-Received: by 10.70.65.37 with SMTP id u5mr40076218pds.93.1413955632921; Tue, 21 Oct 2014 22:27:12 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id k3si7131185pdm.103.2014.10.21.22.27.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Oct 2014 22:27:12 -0700 (PDT) Received-SPF: pass (google.com: domain of gdb-patches-return-116886-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 30859 invoked by alias); 22 Oct 2014 05:26:46 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list List-Id: List-Unsubscribe: , List-Subscribe: List-Archive: List-Post: , List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 30737 invoked by uid 89); 22 Oct 2014 05:26:45 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f46.google.com Received: from mail-pa0-f46.google.com (HELO mail-pa0-f46.google.com) (209.85.220.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 22 Oct 2014 05:26:44 +0000 Received: by mail-pa0-f46.google.com with SMTP id fa1so2958145pad.33 for ; Tue, 21 Oct 2014 22:26:42 -0700 (PDT) X-Received: by 10.70.100.199 with SMTP id fa7mr40126667pdb.114.1413955602651; Tue, 21 Oct 2014 22:26:42 -0700 (PDT) Received: from kamensky-w530.hsd1.ca.comcast.net ([24.6.79.41]) by mx.google.com with ESMTPSA id i16sm13364690pdk.66.2014.10.21.22.26.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Oct 2014 22:26:42 -0700 (PDT) From: Victor Kamensky To: gdb-patches@sourceware.org, Yao Qi Cc: Andrew Pinski , victor.kamensky@linaro.org Subject: [PATCH V2 4/4] ARM: asm-source.exp link options in case of armv7b target Date: Tue, 21 Oct 2014 22:26:29 -0700 Message-Id: <1413955589-5054-5-git-send-email-victor.kamensky@linaro.org> In-Reply-To: <1413955589-5054-1-git-send-email-victor.kamensky@linaro.org> References: <1413955589-5054-1-git-send-email-victor.kamensky@linaro.org> X-Original-Sender: victor.kamensky@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::233 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 gdb.asm/asm-source.exp fails in armv7b case, because it does not pass --be8 option to link, as result instructions in asm-source executable are in big endian order and crash with SIGILL. Solution is to add --be8 option to link command during test creation. gdb/testsuite/ChangeLog: 2014-10-21 Victor Kamensky * gdb.asm/asm-source.exp: Add armv7b case for target. --- gdb/testsuite/gdb.asm/asm-source.exp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp index fa4585c..153bc50 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -37,6 +37,10 @@ switch -glob -- [istarget] { set asm-flags "-no-mdebug -I${srcdir}/${subdir} $obj_include" set debug-flags "-gdwarf-2" } + "armv7b-*-*" { + set asm-arch arm + append link-flags " -be8" + } "arm*-*-*" { set asm-arch arm }