From patchwork Mon Dec 31 18:12:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 10745525 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BDDB86C2 for ; Mon, 31 Dec 2018 18:12:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A523528802 for ; Mon, 31 Dec 2018 18:12:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 98B9E28831; Mon, 31 Dec 2018 18:12:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 05AF328802 for ; Mon, 31 Dec 2018 18:12:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=whOjBu/yqahGBiG5iDAmeOlu96i+uAbJhGEdiWpQmLc=; b=PSUX49eOs2Ce3e Ie7O+p0ycgsV50oKCwXYihQk5V4cM4Zaljf7IQL2IMlse6k2ay+OAGU1C+T0zqeYJDuZ1EeaUNgky DdbDEcatyJt1vqikuvm/xfPw4btRKhHxT8cI/sd/F1Aml+/odV0WcLGEP3TNx19N88+ZmD+m3zQIv y7iLgIyoQTYXaK82U9hMxW9B2KNvDEgO6/eOqWiJB4KqADGkfTi7UPwV1Zy3LbieaLKPB0yQ6UmFE WRo2qSqGZH+OphprorFPT/FKvsGUsftBkfqz3hll3/I4QTiTBFw50Bl4O7F3k9AFiGTVy169Wy8TL KeWd6Ln+XSnP5/NQekDw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ge23D-0006vL-TO; Mon, 31 Dec 2018 18:12:31 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ge23A-0006uf-AZ for linux-arm-kernel@lists.infradead.org; Mon, 31 Dec 2018 18:12:30 +0000 Received: by mail-wm1-x341.google.com with SMTP id m1so23890521wml.2 for ; Mon, 31 Dec 2018 10:12:26 -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=Hu21QaZBVWmvESKzMsFwh2mPDZd9ZP7SE1hBVGteEDViXRaGZSdU2pLMfk0XQWifMw 4eRc0F4owcf5HvvGmUKo4JFY8f4vlUMgOOLjg2DUldUNFCuQB7dnRxWA5bCtZczxdVq+ culUkAWjlDHTthQ6CNAZiHGjIPAzLmd7EahI8kNeFfkJwiuCcMviupTazwM4FhLpLNaI oe5XeKzPd6TVHS3GGrnGvT7OtZpOVkxezp1LCe3gvrKKWCv85IunZYX3eMnhpzVAks+C X5LimUk7i3yRltyGH13yezSETRgA2eD9LLZZ/dIMc4M/umoAB6rlgVXY6xEptgQqqqqA lRQg== X-Gm-Message-State: AJcUukdtoVn6ND/7M8HJtPx59yRdRV9nglpNXsR0G6KyrNUmK845OzCa lU1yb8pk8wj8VVphpUlW5c8= X-Google-Smtp-Source: AFSGD/V96Ltg1sJB72FtjDfLwpK33HJZhp0Nwx6OIVwcf2HNJiuq2TM9KfYhSR9Jq9PYXn+oQKRZXA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181231_101228_388661_57689F19 X-CRM114-Status: GOOD ( 13.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nicolas Pitre , Ard Biesheuvel , Nick Desaulniers , linux-kernel@vger.kernel.org, Stefan Agner , Nathan Chancellor , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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