Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5617176imm; Tue, 12 Jun 2018 10:28:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI21sP1euDY2AhsCgWBlayYqwNWkKqDTPPV6TA3T3o9lQnaUQ2DsJF2WpfXOTl23MKTmgam X-Received: by 2002:a17:902:2864:: with SMTP id e91-v6mr1381383plb.240.1528824499041; Tue, 12 Jun 2018 10:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528824499; cv=none; d=google.com; s=arc-20160816; b=vZSIOJ1JFEfYFweiHRAT0yUcz1YBceXAZ9pmMZLNEPQll07zzzj0mpqOerCQ2crlnb rjpaKJIQ/uq75p/f6Iuw8/6NgKCpVlKtjC9SY0ZIrPXSwAQn5Y6Gfp9OUX4/lYvD5amF 034s7AP8KfrE6+tNxcJJUW+hHKCjGMX5vR7nJMEyoUh0nddA/YXjOjim+rDK0/pEAjte mzTTFU5jUIWHfASkBrt/B8pS6V4+dxSipMO7dc9VdXRJWkKE6mMrqPn6tc/sNfMQqgWE sdUbMrP+PfEuGWVqLnYuR/m50MpoS4gs1O93oqfObTH7AJksRDXiHsE8REibyusgT37G hRdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=HklWwuh0cZquAYRASyqnaHZv7zNlLk5/8n9W8VNvlsk=; b=I/Xg/Dhh/Z+mbd2zt9fn+IAzeteWCe36dEuC5VRAVOPL3foqnzc1t/gjChOMg0oj4P nfviFqwarDcrmNVr8CpsgQ+YgwtSgZ22BixhGqZzzKTm/m2a5iFTC+/PV4Xu1XMIx0ZP LayHE9fTgveCTEYTH46Dhmc9TSDO+SfwlbbImi4T1WLoKw8rq3XWNuWM9QnVyHYc2sSI 9RxXkAKUvXYQfv8xv33T88cksgBMrQ3sYNAYYYepjXxfyYZDmAwrhe5B+9xqtGQTvaSq qDxvSGGUPmgBzOjo5edxBT4lojjRh0VYfVLFAE8ss7+ssbpq1XMb9xcKTKOtApnSGZvl J9bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=eCCVlU+8; 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 b3-v6si504232pls.119.2018.06.12.10.28.04; Tue, 12 Jun 2018 10:28:19 -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=pass header.i=@agner.ch header.s=dkim header.b=eCCVlU+8; 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 S1754378AbeFLR1c (ORCPT + 99 others); Tue, 12 Jun 2018 13:27:32 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:50826 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754244AbeFLR1b (ORCPT ); Tue, 12 Jun 2018 13:27:31 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id CC2615C1305; Tue, 12 Jun 2018 19:27:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1528824449; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HklWwuh0cZquAYRASyqnaHZv7zNlLk5/8n9W8VNvlsk=; b=eCCVlU+8Mp0vuy/w/XNnCxLpRqBCdxGWrfU01SLTCXrew6kExOtrxBQnF7CuEK6gLn/F5s tk7CryBxOwSlOTJ6T0ztdY/jCVrtvE6UbU59YjZq0uyafVeY8I2FHLjZ4pAU6Sh6OafOTh yajHLh4mMwXPFNI98hpLEBDlsptcrYk= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Tue, 12 Jun 2018 19:27:29 +0200 From: Stefan Agner To: Guenter Roeck 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 In-Reply-To: <20180612171929.GA7829@roeck-us.net> References: <20180325180959.28008-5-stefan@agner.ch> <20180612171929.GA7829@roeck-us.net> Message-ID: <325243a63755a1f6ae578dae35154b17@agner.ch> X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.4 X-Spamd-Result: default: False [-1.34 / 15.00]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWELVE(0.00)[12]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; ASN(0.00)[asn:29691, ipnet:2a02:418::/29, country:CH]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-1.24)[89.54%]; ARC_NA(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12.06.2018 19:19, Guenter Roeck wrote: > 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. Hm, interesting. However, even 4.9.0 claims this option is meaningless when using AAPCS configurations: https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/ARM-Options.html#ARM-Options > > 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 ? I used to have call cc-option in place, but I removed that when I realized that gcc claims it is meaningless with AAPCS configurations. -- Stefan > > 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