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: Victor Kamensky X-Patchwork-Id: 3318 Received: (qmail 30859 invoked by alias); 22 Oct 2014 05:26:46 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk 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 Authentication-Results: sourceware.org; auth=none 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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cm+bf7QNy3xD6c8nW85FYecpd5gy99b9g3VX8PLFNHA=; b=WS9GXJVqeRjQLmCk0N9cqGbbER7l0eqQtSW76x/OnnS99SgV5lllCp4aJwSYMna8jg Nov2IRdyNZE2WctbjpEk0Ct+Fo190rf+y63K3bs95XhlyrByTnQfPm6nWk3yOKmfqhN5 Z6ig+cetCAa/uZS/ppPSoap4upc9A1hVjoZ9yu5Zx1iLJUqmPLbf4wSwgAjaW3zVejfB osEi5mUsBzxLqShp+/OXRRBz4LnBOfS1FCJ/UdQnLYoMEiGhlPv71ysT+qNOvq6hmf7E 9aITwHysBN/Ox/wUd+VDnEUzlfy7yiNI9Xtn8EnnYkN9HL1WSvL6+rthqU6iuJIlxKgS Iyug== X-Gm-Message-State: ALoCoQmFQdBog3W3qGZ+b43f0qXr2nOYXhEE9zvGSDsrktE5DSntkQwvAWohwvAN0pvWfbWHDFhf 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> 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 }