From patchwork Tue Oct 21 00:57:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vkamensky X-Patchwork-Id: 39089 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C57C1202DB for ; Tue, 21 Oct 2014 00:58:06 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id d1sf231533wiv.2 for ; Mon, 20 Oct 2014 17:58:06 -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=TCB+yKcL14yEo6qrdgQgcwRM9aZ6sNcexVrsDAQxDRk=; b=hkvb5BVi8Q+PXuDZZwB5jyPNmIxtjmS7dX3aPnO9cbzaKPqwzctzHer16+ueqxVawk fM88NNDevlyjw1qWFwu7/Iu3+qi5RHl9P2JwDg2Vp3lIj6RGpd7AN6cCMszPR+yx5gNO 6D4jtZKrS20hrnuEqyNXqSZiQKIMH5S6k13XNS9nINlXpkpOO4XHSW29COqzFH0zSxbo Y58GWy1SZpkTzpmrF44B7dr46x7a6yHwFpzzWSWiap3xnYbvOehLYnyR1WIB6yAr7Oeb oWTbEDuGYYYLlPXThYFPxITgA+jq7A59XnAcRl2Kis6JUUWCYg0Y91DoHcMf+6dLdEWv m+Ag== X-Gm-Message-State: ALoCoQnMgucG1cUIvhNmjtAg7gV+FPV5wX2ABYJ3cGtNtAwDg7x7SWEp1Vd7OKaFW4OQGBzEfqeZ X-Received: by 10.112.254.226 with SMTP id al2mr4575297lbd.1.1413853085622; Mon, 20 Oct 2014 17:58:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.41 with SMTP id s9ls6189lae.41.gmail; Mon, 20 Oct 2014 17:58:05 -0700 (PDT) X-Received: by 10.112.135.197 with SMTP id pu5mr30944231lbb.22.1413853085224; Mon, 20 Oct 2014 17:58:05 -0700 (PDT) Received: from mail-la0-x22f.google.com (mail-la0-x22f.google.com. [2a00:1450:4010:c03::22f]) by mx.google.com with ESMTPS id u2si16483577laa.120.2014.10.20.17.58.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Oct 2014 17:58:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::22f as permitted sender) client-ip=2a00:1450:4010:c03::22f; Received: by mail-la0-f47.google.com with SMTP id pv20so121318lab.34 for ; Mon, 20 Oct 2014 17:58:05 -0700 (PDT) X-Received: by 10.112.135.229 with SMTP id pv5mr30822493lbb.52.1413853085154; Mon, 20 Oct 2014 17:58:05 -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 c5csp412143lbz; Mon, 20 Oct 2014 17:58:04 -0700 (PDT) X-Received: by 10.66.170.46 with SMTP id aj14mr31643075pac.68.1413853083694; Mon, 20 Oct 2014 17:58:03 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id n3si9408828pdk.38.2014.10.20.17.58.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Oct 2014 17:58:03 -0700 (PDT) Received-SPF: pass (google.com: domain of gdb-patches-return-116855-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 12864 invoked by alias); 21 Oct 2014 00:57:33 -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 12761 invoked by uid 89); 21 Oct 2014 00:57:32 -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-pd0-f173.google.com Received: from mail-pd0-f173.google.com (HELO mail-pd0-f173.google.com) (209.85.192.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 21 Oct 2014 00:57:30 +0000 Received: by mail-pd0-f173.google.com with SMTP id g10so203844pdj.4 for ; Mon, 20 Oct 2014 17:57:29 -0700 (PDT) X-Received: by 10.70.35.72 with SMTP id f8mr7218625pdj.134.1413853048978; Mon, 20 Oct 2014 17:57:28 -0700 (PDT) Received: from kamensky-w530.cisco.com.net ([24.6.79.41]) by mx.google.com with ESMTPSA id g15sm10230692pdm.68.2014.10.20.17.57.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Oct 2014 17:57:28 -0700 (PDT) From: Victor Kamensky To: gdb-patches@sourceware.org Cc: victor.kamensky@linaro.org Subject: [PATCH 5/5] ARM: asm-source.exp link options in case of armv7b target Date: Mon, 20 Oct 2014 17:57:01 -0700 Message-Id: <1413853021-4393-6-git-send-email-victor.kamensky@linaro.org> In-Reply-To: <1413853021-4393-1-git-send-email-victor.kamensky@linaro.org> References: <1413853021-4393-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:c03::22f 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 | 4 ++++ gdb/testsuite/gdb.asm/asm-source.exp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index b7cc1c6..1d5fefa 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2014-10-13 Victor Kamensky + + * gdb.asm/asm-source.exp: add armv7b case for target. + 2014-09-30 Yao Qi * lib/prelink-support.exp (build_executable_own_libs): Error if 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 }