Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp11035717imu; Mon, 31 Dec 2018 11:31:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN6cqMgLlrZmJMaihyMSkydrTHEhqhBgq1kt9TXoaVh1/zVGXiAkhiO7C+TQED1OtBdGGtqg X-Received: by 2002:a17:902:a411:: with SMTP id p17mr37791807plq.292.1546284714104; Mon, 31 Dec 2018 11:31:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546284714; cv=none; d=google.com; s=arc-20160816; b=REswZY6oeDN+p9mgCe/pmEeGR3m4pCBiW3q79s/B0hFs1pDhGaFWqka9NiwqpMD/JZ ukeBatmTBvhSnrwHLqjkmqoWbFuWRWC/SJTV7hYXGOAjh+LeHuvvCYu3b4LJ/IWdN7HN rU7A9GpVb86yYMPxsSX6uc2tZak1j44OdwLdwy8qPNcSaMRJBYxsDxn+6/g2JCudINDS BkrJXLykc5v2LzulDLstBdtsSmFE7Lv5Sau1NMtn130ZKV4vnRFeso+tUTaqLqmC5yyr CenpvwGx5lx5syYGooTPTfhWXf2zLWeLmzuMjL6JKLawWE9cOHi+VesgHBOSNyfNgoWX bvLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AAOnbAxkac0UC41NM/y5SZGaEvMV/qtWid+iG06fEiE=; b=SI5v2DDgLXzqqkUaI9oMm72QHqBk5OGTw93vtvAydVGoQflmGAipB9RzqCcwEN5e68 /At5YCAgNkBQu2ZmR3aVfKxXVaqDy8+zuHe76xvhQUNDcGWmyebDcl3bYRf878oK29o3 fK5D+tpbY7almIIvkw/w2Q6oLgJwE2AzeDNSA0AEOmBZhYSyE4kBzeBU5zJWthm290jq 2b+sjVlTV/8Iwdn89tibUnECTY9brRp/Rt7cscRezYr22RVv5Lk68Q1LOJm91IuQADGc O1+ohVFwrPGkw0EzJ0wpxHSr4zsR6YsDEcNK3f7d4b2sqD5Ui5pcDG3yw9GqdN/Af4TG JOLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V8DBKwCl; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t5si44849399pgc.369.2018.12.31.11.31.38; Mon, 31 Dec 2018 11:31:54 -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=@gmail.com header.s=20161025 header.b=V8DBKwCl; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727595AbeLaSM1 (ORCPT + 99 others); Mon, 31 Dec 2018 13:12:27 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:37087 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727311AbeLaSM0 (ORCPT ); Mon, 31 Dec 2018 13:12:26 -0500 Received: by mail-wm1-f65.google.com with SMTP id g67so24775039wmd.2 for ; Mon, 31 Dec 2018 10:12:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AAOnbAxkac0UC41NM/y5SZGaEvMV/qtWid+iG06fEiE=; b=V8DBKwClcmmVtlJtWihVDKHGuwOYfXuUtXwtEiRLJo4wr+TOqrrRwZ4gEwdrMg2Ybq 1HkfDWnSSuS1+p76KzZkj1Knum1hpzQGneiZgKFgK6q3L1XqgNTos71fOL8KwuaOo/d7 +3eA2kh7t67CPQNPDZ7vG+xS91oeFLv4+wyXASNeWyxmhEN5JZV21rFhurxDARm0HE5l LJe/hQklMch00z255TSgGVu0PqOZAHvydmk0o6y8APGPjoBRGy+u7TdZnRYL6fH++hNR AgcqZ0TeEyDWBZpmjnxQJv0tBnMaPkB2SVW6crILFEEPJpEFuAbZrqxqFqS5WH20JlqT 5uxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AAOnbAxkac0UC41NM/y5SZGaEvMV/qtWid+iG06fEiE=; b=RjI5ZypSG/2Txyj6Gp7jaYf3b+VEEWvTfOLf25Yloi84ZhAQAasMWcHyoEv/wZn6X/ Zn4OcQ7BxBTtNS1wutZ3sV5zTqM3qsqs+QtPJzWuydqGI7LLZh9TwlcTNpjXoKXxQBYT ynCrbfQBmzHhpIsxzw5W6jErpZ+07fXefJGIdRU1bIla8fxeDtDCApNJKX9PMEtanJFY Lvbyblz5z2wDCImF5Grz35KK8BGGoJ/KDTmp8bvFnfWkU/TTPlARuDAm1cX8qFIUINWc GuhT5HfgXgEI5t47k3k4W0SfpsD70kTp+JWCqagBJuQ48QU07gWtFl+UdQbDmzoRUIsx xODQ== X-Gm-Message-State: AJcUukdoTpF/aNIgTOUnyeYtmsLAxXNIAfz7/28NT35Y+IIj4VOrdheh yuS00i+32rw1H8TSv6L1nMfFfSNdd8k= X-Received: by 2002:a1c:af08:: with SMTP id y8mr29566776wme.94.1546279944581; Mon, 31 Dec 2018 10:12:24 -0800 (PST) Received: from localhost.localdomain ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id t5sm38254713wmd.15.2018.12.31.10.12.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Dec 2018 10:12:23 -0800 (PST) From: Nathan Chancellor To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nathan Chancellor , Ard Biesheuvel , Nicolas Pitre , Nick Desaulniers , Stefan Agner Subject: [PATCH v2] ARM: Remove '-p' from LDFLAGS Date: Mon, 31 Dec 2018 11:12:10 -0700 Message-Id: <20181231181209.28695-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181205014213.943-1-natechancellor@gmail.com> References: <20181205014213.943-1-natechancellor@gmail.com> MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Acked-by: Nicolas Pitre Reviewed-by: Nick Desaulniers Reviewed-by: Stefan Agner --- v1 -> v2: * Collect tags * Remove an additional occurence of '-p' in the bootp Makefile, thank you to Stefan for pointing it out * Drop patch 2/2, it will be fixed properly in lld: https://reviews.llvm.org/D55505 arch/arm/Makefile | 2 +- arch/arm/boot/bootp/Makefile | 2 +- arch/arm/boot/compressed/Makefile | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 0436002d5091..1d48c8ed5f89 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/bootp/Makefile b/arch/arm/boot/bootp/Makefile index 83e1a076a5d6..981a8d03f064 100644 --- a/arch/arm/boot/bootp/Makefile +++ b/arch/arm/boot/bootp/Makefile @@ -8,7 +8,7 @@ GCOV_PROFILE := n -LDFLAGS_bootp :=-p --no-undefined -X \ +LDFLAGS_bootp := --no-undefined -X \ --defsym initrd_phys=$(INITRD_PHYS) \ --defsym params_phys=$(PARAMS_PHYS) -T AFLAGS_initrd.o :=-DINITRD=\"$(INITRD)\" diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 01bf2585a0fa..ecfa4ca320a7 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -132,8 +132,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.1