Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9175652imu; Tue, 4 Dec 2018 23:38:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/WHl2IXFYK1jTRAdSF/9fyugWkg8XJ7iCG9lTBizL9fdqKr7WzRzFvylEHoJ4fif7cy/RJd X-Received: by 2002:a63:5252:: with SMTP id s18mr18469936pgl.326.1543995528306; Tue, 04 Dec 2018 23:38:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543995528; cv=none; d=google.com; s=arc-20160816; b=JN5LtBL8gwdez0kScBEsiSn16vwtUxxtZORZNxzHBZQRfGk4s9pUPfhr5K4krGR/m2 vvKUyJaepxCLR2d8uWY2FHlko/NmP7YjBbqJkmqq1xqWI1ZbIswLdpY4StK/7j2FC2C5 YZdCYY2XUYlNSFSLav82TvALmizC6M7vtZ3p5sOtNauMi0oTwTNS023BZyKcDJ2RXojN 8kYCeYIwSANX4RzgBD3h45xyCbSjyfBeqvOMrwI5okfcS1op6S0/EYBwsjour7Rc5lDA KiWl76+GK9k2pfsMJr01fLmm9Vou+YrOQb5CJ9vB9WCvE02gKlkf/ieL4cL5aa87WSC4 fkWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Z76If0p+l5i8rlrL5R28Djtm7LDYPTVAIf0MqlMbqMk=; b=Yhu5mZlxOWiroMzig85CS+i8et/KaqalFM7L/sBlyp0P79/dGn0quWxECP2VCDvESj Nrb2uLHPqWXnXQ/eFG4dOlruwvgytyI1YARbYbVy3gRq/GZG+0/9EBtIMeJgySp1KAqh EC03gl4fYhxNlQ74vXAfDVP4km0ApX5L9hYUzKUV6mFGv0+lXVSUBCDoNDWyRnf1CsQu XgEqpik2cDyVZy9H/JZRRyape5/pH0YVBjkgMZvtC+mVvIvsHlP6lyJUSIraenR55LKT 0T0xip6VO2Os5IDeB3OKOzwVoa7I56m2t1i/XqZHpKCE8CGZoSltt1XUklpgINprp32b omNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OVYBbuwi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 38si19414510pln.313.2018.12.04.23.38.33; Tue, 04 Dec 2018 23:38:48 -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=@linaro.org header.s=google header.b=OVYBbuwi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727103AbeLEHhp (ORCPT + 99 others); Wed, 5 Dec 2018 02:37:45 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:39760 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726695AbeLEHho (ORCPT ); Wed, 5 Dec 2018 02:37:44 -0500 Received: by mail-it1-f195.google.com with SMTP id a6so18779436itl.4 for ; Tue, 04 Dec 2018 23:37:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Z76If0p+l5i8rlrL5R28Djtm7LDYPTVAIf0MqlMbqMk=; b=OVYBbuwiJanc+Q0bDCmTelZkKYgn9PTeVkDuj6aOvU1h0ERxw1ES5z05T0OFe4Vzi+ /ibR1ORs/7k3pgX+kR7HIoMGF6wZgkuveJjn3AeErH+p2dmvLejtGZ+roRpXl1dWlZyU U9yE24m9LiDof1MYukKqog87XwO88pLKIwhXM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Z76If0p+l5i8rlrL5R28Djtm7LDYPTVAIf0MqlMbqMk=; b=m1S217Rwi3cAew4sSMLKU2uH2c7LE2nFEnNuvarFVd0s+/H5XFy2nO4fRzzsbRnaP2 d8NfZRhmKJNW7NveSle6T8BxLGEb5IDaaa4v/G+oNnMMVNMUH4XQGoWQ9QJhgh3so0GG qJUBer+jCL7/v/BR3ERzZkc2mIG+wMEBXiOIyI7ijzEIQxC5+/2onNlFgAkqWhjG+60J 5NlGEUUZZYL9gKBbbmmoGxa4PIyMu8UPkiY3U7MS0WlRjvgW7O05wvXRCsJp8SNv4NDC 5LSb1/wSKUuYfsAmzunJedEjwXGkd2qLjinGDIdP76uyi6mXSpKfgjtSRM//E/SwleSB ln0g== X-Gm-Message-State: AA+aEWYow0nHFi9bTayHNpZb6SrQ0B/xaFa/uQV0MRH/hX3c/UiXMjpV Cd628doszckeI9TbF40dM+Pj/uKawTSdrDBhLewA+w== X-Received: by 2002:a24:710:: with SMTP id f16mr12835659itf.121.1543995463471; Tue, 04 Dec 2018 23:37:43 -0800 (PST) MIME-Version: 1.0 References: <20181205014213.943-1-natechancellor@gmail.com> In-Reply-To: <20181205014213.943-1-natechancellor@gmail.com> From: Ard Biesheuvel Date: Wed, 5 Dec 2018 08:37:32 +0100 Message-ID: Subject: Re: [PATCH 1/2] ARM: Remove '-p' from LDFLAGS To: Nathan Chancellor Cc: Russell King , linux-arm-kernel , Linux Kernel Mailing List , Stefan Agner , Nicolas Pitre , Nick Desaulniers 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 On Wed, 5 Dec 2018 at 02:42, Nathan Chancellor wrote: > > This option is not supported by lld: > > ld.lld: error: unknown argument: -p > > This has been a no-op in binutils since 2004 (see commit dea514f51da1 in > that tree). Given that the lowest officially supported of binutils for > the kernel is 2.20, which was released in 2009, nobody needs this flag > around so just remove it. Commit 1a381d4a0a9a ("arm64: remove no-op -p > linker flag") did the same for arm64. > > Signed-off-by: Nathan Chancellor Acked-by: Ard Biesheuvel > --- > arch/arm/Makefile | 2 +- > arch/arm/boot/compressed/Makefile | 2 -- > 2 files changed, 1 insertion(+), 3 deletions(-) > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index 05a91d8b89f3..e2a0baf36766 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -10,7 +10,7 @@ > # > # Copyright (C) 1995-2001 by Russell King > > -LDFLAGS_vmlinux :=-p --no-undefined -X --pic-veneer > +LDFLAGS_vmlinux := --no-undefined -X --pic-veneer > ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) > LDFLAGS_vmlinux += --be8 > KBUILD_LDFLAGS_MODULE += --be8 > diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile > index 1f5a5ffe7fcf..dcd07bd24b85 100644 > --- a/arch/arm/boot/compressed/Makefile > +++ b/arch/arm/boot/compressed/Makefile > @@ -131,8 +131,6 @@ endif > ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) > LDFLAGS_vmlinux += --be8 > endif > -# ? > -LDFLAGS_vmlinux += -p > # Report unresolved symbol references > LDFLAGS_vmlinux += --no-undefined > # Delete all temporary local symbols > -- > 2.20.0.rc1 >