Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp715513imj; Wed, 13 Feb 2019 16:22:30 -0800 (PST) X-Google-Smtp-Source: AHgI3IZnwD1rlwLyqfLBdYv9OFpm4LCdVce6Qt6r++stD3uBytIiid2IG+4+cMyGRTCsK0ZzKN2R X-Received: by 2002:a17:902:4324:: with SMTP id i33mr956995pld.227.1550103750757; Wed, 13 Feb 2019 16:22:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550103750; cv=none; d=google.com; s=arc-20160816; b=DBN183G4CEiWzGFmQB0/6tvUm1kP77fGEQvUaGzQc8SS2b1wrzh8+QugFmhUPBI5Xu UontA29orvv5IuuFz+E7nmF61ExT+iQleK0GDgGdCugMemYnlDiKl33LtA3lT0rh0H3C 3Dvt/fwyTnYf/+BkEIkFLZqwo7wuiR3lc6Vj7Ma5sCT5ozPX2g0kyxl9RpqiRZ5FYoKM wEbmkNO+4EC+zG1b4qpEOn+lhiJnjiwrZQRLhBTRHmk0SPb3aTTxDAXQIdJyjirglbPu +IvpWgcyZGGy2WlDtBdvPPKzsKuuwOJKvBiuZzTTSGu7xfxSNwUmdC4fVt/1VXZxruJu Zgtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=27x2p+lmyiFUKQ1HP0jBdjMdKUqmVKdvOPXJ1dnHGP4=; b=cwl/EVpIIqWkAy2hkcqktrDa9EVHM7w0nJ46teaku7skSBl8hLx1EEExUyeQDofzKq 92Pkn+V1jT95XVaRo/hy6hImgHM73RfEzlbV/FhNtQ/uY7gql8XBWeMlfD4UTLs9LCBc c+8R7dwQEzayDn8kRr3pU8UCfp3jlzU3HPB+v2iy/bFBE83irimxaAnfTEIMJ9sXJb6h TWkCW+6u7Nkw3M8eBmEepyDBEogm2GuFRPqTv6aVi/9UbHN+pVOrhcKx96BAeAiO1Zlr avUTSfRcHEuURsfKdGRBIw6ZLoHwBKU45Tu+i9Y769VLdIFo61FVn4/UusQJ2W5Vv335 zIOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="wskwdAf/"; 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 h5si762353pls.125.2019.02.13.16.22.15; Wed, 13 Feb 2019 16:22:30 -0800 (PST) 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=@kernel.org header.s=default header.b="wskwdAf/"; 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 S2394126AbfBMSs7 (ORCPT + 99 others); Wed, 13 Feb 2019 13:48:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:44372 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394089AbfBMSpo (ORCPT ); Wed, 13 Feb 2019 13:45:44 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A1A5520835; Wed, 13 Feb 2019 18:45:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550083544; bh=G8Xz/bRJBcTKWRmbv2mKjnyl6xW3Y7D8WOe1hMS+rBA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wskwdAf/r2Fxmyz2HEG61AOJ3DjAPJYb/3TBrVsF5AB7ZSwfCD3vz6WSGRBuQsVk/ AdOEH48XxxHLu3HWbzZX+uzovLkDFmWFdxiear1+iQmouka8FxVd/CfTWY0pM5ohq4 KUE8F1XinE7rBFI2C6TUnKhmxPt/t6AquyY3NT24= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paul Burton , linux-mips@vger.kernel.org, Kevin Hilman , Guenter Roeck , "Maciej W . Rozycki" Subject: [PATCH 4.20 28/50] MIPS: VDSO: Include $(ccflags-vdso) in o32,n32 .lds builds Date: Wed, 13 Feb 2019 19:38:33 +0100 Message-Id: <20190213183657.995261189@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213183655.747168774@linuxfoundation.org> References: <20190213183655.747168774@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Paul Burton commit 67fc5dc8a541e8f458d7f08bf88ff55933bf9f9d upstream. When generating vdso-o32.lds & vdso-n32.lds for use with programs running as compat ABIs under 64b kernels, we previously haven't included the compiler flags that are supposedly common to all ABIs - ie. those in the ccflags-vdso variable. This is problematic in cases where we need to provide the -m%-float flag in order to ensure that we don't attempt to use a floating point ABI that's incompatible with the target CPU & ABI. For example a toolchain using current gcc trunk configured --with-fp-32=xx fails to build a 64r6el_defconfig kernel with the following error: cc1: error: '-march=mips1' requires '-mfp32' make[2]: *** [arch/mips/vdso/Makefile:135: arch/mips/vdso/vdso-o32.lds] Error 1 Include $(ccflags-vdso) for the compat VDSO .lds builds, just as it is included for the native VDSO .lds & when compiling objects for the compat VDSOs. This ensures we consistently provide the -msoft-float flag amongst others, avoiding the problem by ensuring we're agnostic to the toolchain defaults. Signed-off-by: Paul Burton Fixes: ebb5e78cc634 ("MIPS: Initial implementation of a VDSO") Cc: linux-mips@vger.kernel.org Cc: Kevin Hilman Cc: Guenter Roeck Cc: Maciej W . Rozycki Cc: stable@vger.kernel.org # v4.4+ Signed-off-by: Greg Kroah-Hartman --- arch/mips/vdso/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/mips/vdso/Makefile +++ b/arch/mips/vdso/Makefile @@ -129,7 +129,7 @@ $(obj)/%-o32.o: $(src)/%.c FORCE $(call cmd,force_checksrc) $(call if_changed_rule,cc_o_c) -$(obj)/vdso-o32.lds: KBUILD_CPPFLAGS := -mabi=32 +$(obj)/vdso-o32.lds: KBUILD_CPPFLAGS := $(ccflags-vdso) -mabi=32 $(obj)/vdso-o32.lds: $(src)/vdso.lds.S FORCE $(call if_changed_dep,cpp_lds_S) @@ -169,7 +169,7 @@ $(obj)/%-n32.o: $(src)/%.c FORCE $(call cmd,force_checksrc) $(call if_changed_rule,cc_o_c) -$(obj)/vdso-n32.lds: KBUILD_CPPFLAGS := -mabi=n32 +$(obj)/vdso-n32.lds: KBUILD_CPPFLAGS := $(ccflags-vdso) -mabi=n32 $(obj)/vdso-n32.lds: $(src)/vdso.lds.S FORCE $(call if_changed_dep,cpp_lds_S)