Received: by 10.223.176.5 with SMTP id f5csp3398293wra; Mon, 29 Jan 2018 12:36:16 -0800 (PST) X-Google-Smtp-Source: AH8x226GldahYoXN9cI/vUAT5d4WdJS8q4txKMs0Ut3c8cQ+V98rQ9M4Kp6v9JDhV+pcFSnUI7Xk X-Received: by 2002:a17:902:6b48:: with SMTP id g8-v6mr13985226plt.151.1517258176361; Mon, 29 Jan 2018 12:36:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517258176; cv=none; d=google.com; s=arc-20160816; b=QRGFzpStYiw6XE8vDaUGfPpF5AqgcUsu1VdWP9112NJctUmL6aj75gX0gocifFIKGv IPGGK+hOjKNqYluxO+h69v+B1QkbUFRF3Nt5WCTtEkw7yXXgO2okcj/5M81sklkSMr+4 YIg3DWIlsDG4SHVPvhg4fNh7qxO3JwXDs8JXK5fJEzzNaiBjPQFetWdh9cJQECdcM/82 JWrgmOW6wFMn7CiRq49VDGNQuoOvj3+UyDXVY4JH7r300Jhd5zoNjxgJr08E3Foo+qgs uaxq84C7vwTw3Sahmlahnhfc9Qp1A3/nsiojl1Cw5aQL/s+MQZ6jAz2OySaSffNd95Y9 1Esg== 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=+7H07ALX70COpdttKIFuWGXAn1h+7yaBiyRHsAQyaGM=; b=kYLY1xPpCPtlsFssXKBiXVdBBWaQMOJ79EUrLvvf32n/dBFNR63u/uYrweh4GT/Y3f jHt6IMOxTx/1LvZCSk+8/a8O7zv5AuNHIBRFiOBbtfgt+7P0P4p9i9+35lPCMxHEAwlg /q0XylS2KWiNxNCM40RnzpictiiPw7j/XlZoAh09MZfCcEjNOOmfqcOrawq4IyYRPy2j X5jL/ZjZkHYb3bDBrdFlMDVtzpoHgKHfmXM+o38mtDIrslYUV97Lq0bsNwBXV5b5r3RK N5vPB+4e8Ls/qvi7p2vmrVMu2g9uSEPLnZj7mOfiCpxL32KU2rYAhAjMbITqvNqQQ7Ao ogKw== 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 l129si7885592pga.408.2018.01.29.12.36.01; Mon, 29 Jan 2018 12:36:16 -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 S932234AbeA2UO2 (ORCPT + 99 others); Mon, 29 Jan 2018 15:14:28 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:40136 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932113AbeA2UO1 (ORCPT ); Mon, 29 Jan 2018 15:14:27 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 95F032F87; Mon, 29 Jan 2018 13:05:27 +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 4.9 30/66] um: link vmlinux with -no-pie Date: Mon, 29 Jan 2018 13:56:54 +0100 Message-Id: <20180129123841.419093033@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180129123839.842860149@linuxfoundation.org> References: <20180129123839.842860149@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 4.9-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 @@ -117,7 +117,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,) \