Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5608681imm; Tue, 12 Jun 2018 10:20:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIWsNZsAtiZ/gqScnypl/1hr7YYI55uu172VBf8IjTVH7ake3s0fa2sbT2eiu1a+tgc8WpN X-Received: by 2002:a17:902:d697:: with SMTP id v23-v6mr1338182ply.193.1528824016021; Tue, 12 Jun 2018 10:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528824015; cv=none; d=google.com; s=arc-20160816; b=s7vrqrBJvukZHz1Uzz7upzZ0e5sQBbJI53eOVe1BiTL9aibzS7eikgOhS78KhxGAQj ph9fC0f/sIlnbM4NyHo/A4S6ZeRxm2F0qGG2WYdvG+YNpHij38yFE8X/BvaBhFloqPOj Puks1HZJCE43h1GYtkvt/2eh6fm+MPo0hEasZi87H07jnSyrtgGCp5tQnK8Mt0GjI05K kRSR73PEBHxT9xpK2m5tMFh3RXMQnc6cUs/Ibv+YsXpp/bcjgogpF9C0tQx8AI6vrmed jXkaLvsbg4h4xCKBgC6J1mQkcW2ZNc99KjobJKsRNkXjlH+jxscxIM2shpEv48wl6bA7 jJ3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=eHkwHAZ1nEmkXvV9xIBRlqoAqE1dDoJW749YgxWXtts=; b=dup1PaQ6tpabf08GblpmB22hpl0lRHgZ6FSqwKaQmNJy1furnfYcYqDa6EEI2VPZjV blho0kiXggXvPGtGKNODKoC4UWMKRMdwvdzl1+yCxOXtot1f0OIhqTbfQawP/86TMaqg Tp82ivyscxvYAIZJajVSbfvRSvIHZQFqcz24BDxPGhP5vMbXSt2z9JuTypyWJ5v39t8v a4IcsCfyYpSL35I3KVbHD+pKpilOM95HPBf/hNkl6geCR1C6xOUKWajDe3aMXlAZ7uCH n7RmDm4V5sOPxb0eLQy0x18QQlC4rEGMjHlcFvjfNxZZFFl7z3o84zTeG95WyXBkt884 1JkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@roeck-us.net header.s=default header.b=tku3ZLBB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14-v6si589782pli.419.2018.06.12.10.20.01; Tue, 12 Jun 2018 10:20:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@roeck-us.net header.s=default header.b=tku3ZLBB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933983AbeFLRTg (ORCPT + 99 others); Tue, 12 Jun 2018 13:19:36 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:51233 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933584AbeFLRTd (ORCPT ); Tue, 12 Jun 2018 13:19:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=In-Reply-To:Content-Type:MIME-Version:References :Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=eHkwHAZ1nEmkXvV9xIBRlqoAqE1dDoJW749YgxWXtts=; b=tku3ZLBBdnhzg5rtLbWVhsge1x oxAqzakkNS5MpNxoempgc7cDWSzDmNCeN6LbOKTJbpuMt7kmOSvwICr1sWQcFa9xMHmdcsbIieL6O RRZGpsTAEUZM/zQsb+HRpHPV+hfqhScW/wNsogvadCB4gepYCAe9pqejzjvvQCIIn9zgomgrJyz8R XU7PUx89L0IShXFtT5UeUsuEUjPOb+uLhK+mjw0PBHSH3m0XkGnYnHmGb88hVHw0SLPoJqmPrvQly ag0XdaiChgUwf5ZJ/KoFcYB3rFB5oZ+yrpVRiAB7rI26VLpJ03yTP1PCbKhOPSSlrA8vvRGp0UF7T 3ggcwRug==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:46846 helo=localhost) by bh-25.webhostbox.net with esmtpa (Exim 4.89) (envelope-from ) id 1fSmx8-00Emxj-Hy; Tue, 12 Jun 2018 17:19:31 +0000 Date: Tue, 12 Jun 2018 10:19:29 -0700 From: Guenter Roeck To: Stefan Agner Cc: linux@armlinux.org.uk, ard.biesheuvel@linaro.org, arnd@arndb.de, nicolas.pitre@linaro.org, keescook@chromium.org, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, mka@chromium.org, robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org, Bernhard.Rosenkranzer@linaro.org Subject: Re: [v2,4/6] ARM: drop no-thumb-interwork in EABI mode Message-ID: <20180612171929.GA7829@roeck-us.net> References: <20180325180959.28008-5-stefan@agner.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180325180959.28008-5-stefan@agner.ch> User-Agent: Mutt/1.5.24 (2015-08-30) X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 25, 2018 at 08:09:57PM +0200, Stefan Agner wrote: > According to GCC documentation -m(no-)thumb-interwork is > meaningless in AAPCS configurations. Also clang does not It appears that this is only correct for recent versions of gcc. With gcc 4.9.2, this patch causes the qemu collie emulation to fail with collie_defconfig+CONFIG_AEABI. qemu-system-arm: Trying to execute code outside RAM or ROM at 0x02000000 This usually means one of the following happened: ... With gcc 7.3.0, the emulation works as expected. Reverting the patch fixes the problem with gcc 4.9.2. Not that it matters much to me - I can and will switch to gcc 7.3.0 for my testing - but effectively this means that older versions of gcc are no longer supported for all configurations. Maybe $(call cc-option,-mno-thumb-interwork,) would have been safer ? Guenter > support the flag: > clang-5.0: error: unknown argument: '-mno-thumb-interwork' > > Just drop -mno-thumb-interwork in AEABI configuration. > > Signed-off-by: Stefan Agner > --- > arch/arm/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index e83f5161fdd8..e9e3fde3c657 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -106,7 +106,7 @@ tune-$(CONFIG_CPU_V6K) =$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm) > tune-y := $(tune-y) > > ifeq ($(CONFIG_AEABI),y) > -CFLAGS_ABI :=-mabi=aapcs-linux -mno-thumb-interwork -mfpu=vfp > +CFLAGS_ABI :=-mabi=aapcs-linux -mfpu=vfp > else > CFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,) > endif