Received: by 10.223.176.5 with SMTP id f5csp2839899wra; Mon, 5 Feb 2018 10:44:28 -0800 (PST) X-Google-Smtp-Source: AH8x227Sp4UiiNQ22ml/oyAmhhNnbw1GHacGCdQBOWSSvDIZiuVLUMvQ/8EnDRVC4mCFaMGNDYsr X-Received: by 2002:a17:902:42c3:: with SMTP id h61-v6mr44377053pld.269.1517856268096; Mon, 05 Feb 2018 10:44:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517856268; cv=none; d=google.com; s=arc-20160816; b=dkxdAkuR0Y75zRGRii8tY1XJ3h7vsFxPqEQbKXivYb7GJ1jsi8U9t9fN8P01Vh4ZSz 4fKNhZMhw0yBo71PEfg4OJyu1580HVUy4pqWrNj/g/qqsAEqDYnEwSrpr+g/AqhIO+K7 ycjx1W4aMp7bgo1tjLh7wzlVzYDCnn23u91hTcA+J3x48Tu/kQchOECxNtzip9ZPjW+N xXeQg4Reo/gw1wLFtnkznV2wPQ/3rMbAe1CPMU2/9OQNXgoMwUoZfPcT3HZIfFiIkFZE e6jrj6BeJT8/zSN/5GGzIc7ESq8WWKJ8jx3pbxriVvMJ44fNEW+ApPoOJgMOdh0P02UK OTSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=drg7RdKqmrMTjmuSP1EEsh7fe7ZnAZsNWnuNRQqLYZI=; b=ZBnTDDJo0DCWwVzq5PR7RebFGBl02fk3q7fTQcf3tC3x00nzhVYB5mQCdywYoMq/cQ 9p1CLyUpj70SQjqaK2AYInF5lp42DFCvOHJfvefbA2BdFMLZYgxBrGPpfWJIFobSbVQ9 aDAptbsaBkSREf7+zh7YDhVLjYyxZBBEVhCmrxcSqfmU76RvkCbbpDo5NsdWMyBmqing DbFvlQmU2lX14Ih3dVI2d18V7vJBOdP866WyyNH32GDZEutaI6Tf1AKPuIsPo/cuk+eD RkoaFX66dcV3uVm/3abxY0hkgtgQ6CggI4ZQc+Mm/jcBKT/JTAzwitTYlmrCL+2AlhHZ RWIw== ARC-Authentication-Results: i=1; mx.google.com; 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 d4si135712pfd.127.2018.02.05.10.44.14; Mon, 05 Feb 2018 10:44:28 -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; 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 S1753886AbeBESmq (ORCPT + 99 others); Mon, 5 Feb 2018 13:42:46 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:53200 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753899AbeBES0U (ORCPT ); Mon, 5 Feb 2018 13:26:20 -0500 Received: from localhost (unknown [104.132.1.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 020001130; Mon, 5 Feb 2018 18:26:13 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Meyer , Richard Weinberger , Bernie Innocenti Subject: [PATCH 3.18 02/36] um: link vmlinux with -no-pie Date: Mon, 5 Feb 2018 10:23:30 -0800 Message-Id: <20180205182351.879522463@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180205182351.774761393@linuxfoundation.org> References: <20180205182351.774761393@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Meyer commit 883354afbc109c57f925ccc19840055193da0cc0 upstream. 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 Cc: Bernie Innocenti Signed-off-by: Greg Kroah-Hartman --- arch/um/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/um/Makefile +++ b/arch/um/Makefile @@ -116,7 +116,7 @@ archheaders: archprepare: include/generated/user_constants.h LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static -LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib +LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib $(call cc-option, -no-pie) CFLAGS_NO_HARDENING := $(call cc-option, -fno-PIC,) $(call cc-option, -fno-pic,) \ $(call cc-option, -fno-stack-protector,) \