Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp947496ybi; Wed, 19 Jun 2019 10:35:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmHUNoMtvC0eVnL6JGpgmWsc+CpSbW4/6uA/lEJMOvSz+MjaTe3JvEoRz/qACzlbgsFjnd X-Received: by 2002:a17:902:7603:: with SMTP id k3mr13303506pll.245.1560965727643; Wed, 19 Jun 2019 10:35:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560965727; cv=none; d=google.com; s=arc-20160816; b=YfPwqROW/CXAj798XlDSa7EcTSyLTCJldliTTbGUE8ShhlJc5xH8L8LHz+eLrTPMQ3 jlt63saqussHU1tWlwtD0gJoOrcK164wZ1qmUp+c+TaDg1snkdd4FaGGCXydkflbXyJV m0scYpy1PPpm6hj84bpdc4bl6DJiJ7GVPv8r6y+HlYsrJCwOdlKs4tNmRjtqm4Ni5/OY z3GDfBU8aS8Ka5Ails/Ye1kWm6kK7+xib1JWHd8wzyMvLwRXH6LijwKR3OWbkq34i1eD 8zk8pPQiRKtNwTJKJCGRKmdnxL3Ivz8G9442o/ESh3cTlg9XLeVMZIoidWKn4v0SbVKW NTAQ== 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; bh=htP0r9H4Ug/hMWstSFNELmZ5mjTD+8H5I4sHYA1uA1o=; b=DlHqH0NxTQ4HYZcyzmJKrTrxaWRI1s3PUrkeEYO46jL3C2anquwPpmuZjslMBlc2zi bv1MES9qizD4iYpfG+1WuLbSZvCxPEIzVRBSzfcio1vEXQMTVGWCE70NxM9XAdvPZXbM O3uSMjGAUzLCNcdrJsbCfHtkY1NRjFP9ASrQlz74HQ4htNQPD7mMfY2pe1PnfJwWKqTu kGPzaCbOdH07RFskTS7acIXfaiim5/yCpGkpXcj+OrIF1ILZFigUXwFEMBUWnsC64yJw 5XlPnFpvBfw4Kyax8VHoN9JK2QQooZB5MsGduBKwGBz25jyXfZEcmHr2Ur/C/YuW/8Io qSOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=Wd86yREJ; 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 j17si17311839pfn.278.2019.06.19.10.35.12; Wed, 19 Jun 2019 10:35:27 -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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=Wd86yREJ; 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 S1729988AbfFSRfE (ORCPT + 99 others); Wed, 19 Jun 2019 13:35:04 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:46484 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726330AbfFSRfE (ORCPT ); Wed, 19 Jun 2019 13:35:04 -0400 Received: by mail-lj1-f196.google.com with SMTP id v24so4045421ljg.13 for ; Wed, 19 Jun 2019 10:35:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=htP0r9H4Ug/hMWstSFNELmZ5mjTD+8H5I4sHYA1uA1o=; b=Wd86yREJsjvOnqdXLgJP1v+h2vrhJ2IEHn0raqMpzzpFi0uO59iXALOtxzAk/IQwmR Plu1ZW/HIz385hiVY+P4EFqoEdXf6Ek73vu+zYzBuIF2JcNb/03Qxq7LGLjPwS/HA6B6 SBfNZha08W1x1Yl3dx65ddk8DyU5kyfqyDx575BK8uBjnhd6HkF8nbHntQqYRUEFGIPx zuusCCdrtWF9ZCW50WSd08ikGjrjIxiyU/L0qVnzrfV6fJYXUHvkpq4WBpdyVD7bMRd1 XyQlq0hlq0Sp0uGDI+IAToaJKpAGraaH7sMFr0YM1WEaVgLsNTsXEqrxgK5vpbZvbzb1 tgJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=htP0r9H4Ug/hMWstSFNELmZ5mjTD+8H5I4sHYA1uA1o=; b=hmNegtSZ8Hd5zSzsSNSfiVv3APVPl7gJMdJpDSF92MXU43Q/Lw1Ko4QSgM5kRY+Qh6 qplD90TfGXDPP2FUStT6/DHJ4E50UcXREIODkJn685bzwdNlu3L/Bo/lpYwRe0D9R1BD ZY1NiBtuW8njBMCtRfxc/rELJH+mlbPrg4hjBGtON8lumdZCLkfQHCz6i4TAjWbVUR0K Up6DevWfqwUklBM7vWvrbHhNgyrasJZNbXEov8WslAxZXQ6bGEkp5a5EqssY3Fzr4fmX kwSOLwpklzSJESHk2VL2gr4O0ET0txNIgYhYLA/sdD9H6ic6Sljr14Np6rL0J9zUjJjN FtAA== X-Gm-Message-State: APjAAAXLEhYhszws2jJpnIdTI1nLWKX15Y8TgKA/Btfxh0rM85fd2v+k Y1gmMoNoQpNGZoDkoaJXblsKQw== X-Received: by 2002:a2e:29d:: with SMTP id y29mr57904265lje.134.1560965702770; Wed, 19 Jun 2019 10:35:02 -0700 (PDT) Received: from localhost (h85-30-9-151.cust.a3fiber.se. [85.30.9.151]) by smtp.gmail.com with ESMTPSA id v2sm2773214lfi.52.2019.06.19.10.35.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Jun 2019 10:35:01 -0700 (PDT) Date: Wed, 19 Jun 2019 10:33:54 -0700 From: Olof Johansson To: Stefan Agner Cc: arm@kernel.org, linux@armlinux.org.uk, arnd@arndb.de, ard.biesheuvel@linaro.org, robin.murphy@arm.com, nico@fluxnic.net, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, kgene@kernel.org, krzk@kernel.org, robh@kernel.org, ssantosh@kernel.org, jason@lakedaemon.net, andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, tony@atomide.com, marc.w.gonzalez@free.fr, mans@mansr.com, ndesaulniers@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/2] ARM: use arch_extension directive instead of arch argument Message-ID: <20190619173354.z5znqao6iveoffc7@localhost> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 28, 2019 at 12:40:50AM +0200, Stefan Agner wrote: > The LLVM Target parser currently does not allow to specify the security > extension as part of -march (see also LLVM Bug 40186 [0]). When trying > to use Clang with LLVM's integrated assembler, this leads to build > errors such as this: > clang-8: error: the clang compiler does not support '-Wa,-march=armv7-a+sec' > > Use ".arch_extension sec" to enable the security extension in a more > portable fasion. Also make sure to use ".arch armv7-a" in case a v6/v7 > multi-platform kernel is being built. > > Note that this is technically not exactly the same as the old code > checked for availabilty of the security extension by calling as-instr. > However, there are already other sites which use ".arch_extension sec" > unconditionally, hence de-facto we need an assembler capable of > ".arch_extension sec" already today (arch/arm/mm/proc-v7.S). The > arch extension "sec" is available since binutils 2.21 according to > its documentation [1]. > > [0] https://bugs.llvm.org/show_bug.cgi?id=40186 > [1] https://sourceware.org/binutils/docs-2.21/as/ARM-Options.html > > Signed-off-by: Stefan Agner > Acked-by: Mans Rullgard > Acked-by: Arnd Bergmann > Acked-by: Krzysztof Kozlowski > --- > Changes since v1: > - Explicitly specify assembler architecture as armv7-a to avoid > build issues when bulding v6/v7 multi arch kernel. > > Changes since v2: > - Add armv7-a also in mach-tango > - Move .arch armv7-a outside of ifdef'ed area in sleep44xx.S > to make the kernel compile also without CONFIG_SMP/PM. > > Changes since v3: > - Rebase on top of v5.2-rc2 Thanks, applied to arm/soc. -Olof