Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9165459imu; Sat, 29 Dec 2018 11:54:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN6odLkJA2qyGasHPvXHiJakmPQhiBZ0pkctONdOuEiuPy+IL07585xMk/i7FYfFXoktS+t7 X-Received: by 2002:a17:902:24e7:: with SMTP id l36mr32184133plg.61.1546113273988; Sat, 29 Dec 2018 11:54:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546113273; cv=none; d=google.com; s=arc-20160816; b=GP0QaeQ1BWdlXrt0nHueiWTkpTBIi4FedOvDmEX/jcPC6mJ2P7vs5UqFIdCpJPku3I tUVLZ6+l2MGirr1TIMVl9Vn6jPROTQ2Po0m1YyitcFwm1Lhz8pyY1gyx11jcQmVCuGFP kIm6YS9sf8nXSwavJWJtqfL70PF5eVCaPrFnTQ84K0wT1ak6xx4mDxd+hK+Y726nAabz CJ4NK9Y8VSX4ZdDffGZ/hKxWe6mEkuN0yMRp5ft0hynbEMszohzpkUeuHxXd615CEZt7 qzthXYhTD+LnegFDZt9B9zSiH3S89HRYWJ25WrThcpJ30pjJxyXduiRfp8AAnkQxHAq1 MErA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=RDa0ox/a1r/Xo9WAoQ6E54h/Id7DcOHbf7mAU3MfjNY=; b=VQCGIvZPUk6ilS0kNfM9uwIDWD4uZYfTxHOaaYoSbvVv37MiGkdT95zHG+QWajdfUE /lC/Tk6ay7r39xa3JpR8suL+ppM/PHtckiQEJvrjWNVju3fhEw7yHadOPQj/F8k9ifxk 5vC98UvXbaBMdm4FbKGUU4xezwHIKPZqaq5wS9RLCcwnYD3mnd8Bgu6SjTCwnDa5yQD1 ahrO8w6n7tdxaGgUmeb87dtRvjKBwe7XsurHRNJ5iv7fd5OpmEm765LgwECXFeROD37J DhiZDo1Wacge7MNgRui0rGlagIKieetHIhA1xtgy6cSSNa/fo2q/tlEpKxRcsrWQJJlG Xpjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=eGDrthbF; 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 f65si25308263pfb.194.2018.12.29.11.54.18; Sat, 29 Dec 2018 11:54:33 -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=@agner.ch header.s=dkim header.b=eGDrthbF; 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 S1726983AbeL2Mta (ORCPT + 99 others); Sat, 29 Dec 2018 07:49:30 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:57458 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726041AbeL2MtZ (ORCPT ); Sat, 29 Dec 2018 07:49:25 -0500 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 0E1685C03A3; Sat, 29 Dec 2018 13:49:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1546087764; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RDa0ox/a1r/Xo9WAoQ6E54h/Id7DcOHbf7mAU3MfjNY=; b=eGDrthbFS+drBwAaGSJ2ZCbMQwIayoq6gvyJxtaDfDLtGc2kNi3w7ndrDuacSvlVUVw3LI c1c9vdJyIobX3bu8xsfAiNWALNXfGirMx8peGaovZ6nDQTEvPBqLU9URUiVQvd4x54vc27 FAC0qAUalG0MTf5dpZHLhaNxqUgTtWw= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Sat, 29 Dec 2018 13:49:23 +0100 From: Stefan Agner To: Nathan Chancellor Cc: Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nicolas Pitre , Ard Biesheuvel , Nick Desaulniers Subject: Re: [PATCH 1/2] ARM: Remove '-p' from LDFLAGS In-Reply-To: <20181205014213.943-1-natechancellor@gmail.com> References: <20181205014213.943-1-natechancellor@gmail.com> Message-ID: X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.7 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05.12.2018 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 There is another -p in arch/arm/boot/bootp/Makefile. With that fixed: Reviewed-by: Stefan Agner I guess you can send a v2 with this patch only, which then can make it in. Patch 2 seems to get fixed by adding --pic-veneer support in lld. -- Stefan > --- > 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