Return-Path: Received: from mail-sn1nam02on0125.outbound.protection.outlook.com ([104.47.36.125]:45242 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1032278AbeCAPbi (ORCPT ); Thu, 1 Mar 2018 10:31:38 -0500 From: Sasha Levin To: "stable@vger.kernel.org" , "stable-commits@vger.kernel.org" CC: Thomas Meyer , Richard Weinberger , Sasha Levin Subject: [added to the 4.1 stable tree] um: link vmlinux with -no-pie Date: Thu, 1 Mar 2018 15:24:57 +0000 Message-ID: <20180301152116.1486-235-alexander.levin@microsoft.com> References: <20180301152116.1486-1-alexander.levin@microsoft.com> In-Reply-To: <20180301152116.1486-1-alexander.levin@microsoft.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: From: Thomas Meyer This patch has been added to the 4.1 stable tree. If you have any objections, please let us know. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ Upstream commit 883354afbc109c57f925ccc19840055193da0cc0 ] Debian's gcc defaults to pie. The global Makefile already defines the -fno-= pie option. Link UML dynamic kernel image also with -no-pie to fix the build. Signed-off-by: Thomas Meyer Signed-off-by: Richard Weinberger Signed-off-by: Sasha Levin --- arch/um/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/Makefile b/arch/um/Makefile index 17d4460b1af3..01558aeeba50 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile @@ -116,7 +116,7 @@ archheaders: archprepare: include/generated/user_constants.h =20 LINK-$(CONFIG_LD_SCRIPT_STATIC) +=3D -static -LINK-$(CONFIG_LD_SCRIPT_DYN) +=3D -Wl,-rpath,/lib +LINK-$(CONFIG_LD_SCRIPT_DYN) +=3D -Wl,-rpath,/lib $(call cc-option, -no-pi= e) =20 CFLAGS_NO_HARDENING :=3D $(call cc-option, -fno-PIC,) $(call cc-option, -f= no-pic,) \ $(call cc-option, -fno-stack-protector,) \ --=20 2.14.1