Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9763862imu; Wed, 5 Dec 2018 09:51:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/VXS4dre3N6kGWl7+AnyDsU4PYpeEOytpbQE88ekzQcjvNCVk3RQ7FCjQ0aLmZ+edr4RzKo X-Received: by 2002:a63:de04:: with SMTP id f4mr20922173pgg.292.1544032261728; Wed, 05 Dec 2018 09:51:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544032261; cv=none; d=google.com; s=arc-20160816; b=SkSVvgGTw8VU0aZtvkFH7UkEZSyaQ/YuIzS2UA37erQ4O9vy8W/qtWbs/wzR4zXZk3 D+R35MA3DQ515xcS0LMwBvNtUECRVZMwg5bu9Kuy5E+l+7f5JkrVcw0M0LIqayRuWzIC cNCoiuLhIwyVGc/KNB2nxews0pBztJIlMR/QIhoaRDaBIpQas0J+4bcGJhk+QksjFgs3 mUyS70Q3iThqDheUI6ySmbeebgY3by/2s7G5j2uAYNLcBqR5KZZjACyFvzUUH38ArAE0 FHVfqM0V31+Ch922tZTkK4Z9eBf2v40r6IJXG+1NGHcH/qzszkeWLMppBYYWcJ2o+gKS IuOQ== 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=GWWzcbrSwfAg0ZxQMB2tb6h9CB60uyE2zzgL39jC1qs=; b=sx2by5ngx0+Y4YCh2u8aVzzA2dmETWPm+AxuYa4KYbvSVkUUQY+6R+ccWDqqAyfUiv FREGnt+UG9EZF8CXn5DDox8+K2kv+9/qPeO22VrafXaLtqhe9+iNXy4WgwQKxebL2Y2y OrsrCgmWzl3KwYxVHbUyRSzUSbg+hBmQOXvACcG9V+a01d0bWQUfMc6YIsWbKOz/33AX +dvsX9zkM4n94eQamIAkCRIijr5gU/ISzdaocKcRtqM72jXQmJkhNl+E+W6RaYJ3TvwM 1Vh7pmp3S0s+HPdIgY6g98sr6mYIr1pDV+fTEjNhrp3XMzSmF2k2zeC8GOpZMcSOJ7q5 AHfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QhGKxBJV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c3si20024601plr.178.2018.12.05.09.50.46; Wed, 05 Dec 2018 09:51:01 -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=@google.com header.s=20161025 header.b=QhGKxBJV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727809AbeLERrp (ORCPT + 99 others); Wed, 5 Dec 2018 12:47:45 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36938 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727297AbeLERrp (ORCPT ); Wed, 5 Dec 2018 12:47:45 -0500 Received: by mail-pf1-f195.google.com with SMTP id y126so10378045pfb.4 for ; Wed, 05 Dec 2018 09:47:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GWWzcbrSwfAg0ZxQMB2tb6h9CB60uyE2zzgL39jC1qs=; b=QhGKxBJVc+/PGXaVm70xwsQpApDz+s2UfTF7gkB0RXEnJxCkN0udCkhAedwxkUZWQH Z3z+yxctfHtkqHdRXpei9BNSZqX4xFi+SqOCfAcwQRpbP+0jKjrOVbgmAa407gH6clxW sGKYxxsu2ISOUBYU9BMcDrQERLLYHptpxjmR1J54WgJk46n3Dh0XSFp09ZpaIF/9CgGz uVCywZ0/C9wIEcZEfr6GFJhWjo/Q7WKC7PL3b1V2KyhSkuKfGsQw97RVvgWSenVsSa02 Fuq4Qg+6h69qsU0NONkDidqQIKACnNhD8FEpo3nqmjN5rL2VyxcDySRl13OM4AFKuRv/ Q3rQ== 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=GWWzcbrSwfAg0ZxQMB2tb6h9CB60uyE2zzgL39jC1qs=; b=rPiQVrBLzaVqFtgNWzIUHnfxiffx16oqweInM7JkVoaBEL3kgLJBXR4Qhe7/43YB+A fmT/YsfSKxfEdLaa+hqaWNtIHA2v9U1oiwtesFpvdpoO+s4Xhwy03kzZBT5JSlJGUP7c x0tlZnB6C/PYjMx/Et8so8aVlPUHOPBxRCaADcjcizskFu/MsQrjntN5EXBG80Uvk6G4 j6NXcA2zOsK2B1mmp/P4Dn9Z+Y6ikHDZT04p7WNIhtArgrzwiq7rMM71t80mdvfOQLU5 xYFODCRuSnNiOPdHXjkda+i5snHtXHftaMyvUw68AehjwQl7QVyZ/JoZC4WPPOu7+CDn 7RTg== X-Gm-Message-State: AA+aEWb+cqDehP6b/Wty3tcQ7EWJAugyUBmSE2OLoIgFdIVXBII8bUcF naL3FspN0oXTqgnNCsf5piFk3/PXQiJt+1RVRewO4Q== X-Received: by 2002:a65:4683:: with SMTP id h3mr20384165pgr.225.1544032063638; Wed, 05 Dec 2018 09:47:43 -0800 (PST) MIME-Version: 1.0 References: <20181205014213.943-1-natechancellor@gmail.com> In-Reply-To: <20181205014213.943-1-natechancellor@gmail.com> From: Nick Desaulniers Date: Wed, 5 Dec 2018 09:47:32 -0800 Message-ID: Subject: Re: [PATCH 1/2] ARM: Remove '-p' from LDFLAGS To: Nathan Chancellor Cc: linux@armlinux.org.uk, Linux ARM , LKML , Stefan Agner , Nicolas Pitre , Ard Biesheuvel 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 Tue, Dec 4, 2018 at 5:42 PM 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. While investigating the context of 1a381d4a0a9a for review, I found that bfd had removed -p's implementation a long time ago, but kept the flag as a no-op for compatibility. I asked that the patch be extended to arm as well, but don't think a v2 was ever cut. Thanks for sending this Nathan. Reviewed-by: Nick Desaulniers > > Signed-off-by: Nathan Chancellor > --- > 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 > -- Thanks, ~Nick Desaulniers