From patchwork Wed Dec 5 01:42:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 10712889 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 070D013BB for ; Wed, 5 Dec 2018 01:42:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E52262C99E for ; Wed, 5 Dec 2018 01:42:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D85BA2C9AF; Wed, 5 Dec 2018 01:42:55 +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 8D4232C99E for ; Wed, 5 Dec 2018 01:42:55 +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: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:In-Reply-To:References: List-Owner; bh=dpKZpeyEhJbYkxtQ4B0WVlM/n0nUzt2uRRkMTy8ccTU=; b=Xu0QpKFlP8G7rD /el7CxFy6fFEUGfB7MMx3exSxnjSoNkmVIzqgUgWT0rK7/l/+9HyTtRbD5o6G68GsRbhiBRZZpV2I Q/AOFiSXBMWIm8RIaYXGHMe94l+EAO+Zukbc6dxkp763tyuz5xnKcO/4S9lfte45WYT9Tuq5QzTzo +KMXaP9BH2by+PgcIYJoR/JAOCTtG6k4aOnaEXHnh9iWr55xtERDAhgcQV9RLLll9dGbPwDcirwJs AxJLumI01uVGvNPe8qyYl5mHplO37c88sSzyuFqvaAm24O++/XBFYbA6vHOFkKsGz8nrq/RLeWuy7 f03qmR8zwMGVrACiVReg==; 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 1gUMDA-00041v-U2; Wed, 05 Dec 2018 01:42:48 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gUMD6-000400-Vz for linux-arm-kernel@lists.infradead.org; Wed, 05 Dec 2018 01:42:46 +0000 Received: by mail-wm1-x343.google.com with SMTP id g67so11197350wmd.2 for ; Tue, 04 Dec 2018 17:42:33 -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:mime-version :content-transfer-encoding; bh=9MYR1fL4LMIx7JzNK3MR85Ll1dY3Hp/rUqi3GHmQqLE=; b=ObUvhjBX3KdQS8ZBooFUoCSL1m+/V1krnW0L5tB8QaXp24sHBWmTSGMUsbQARuLu01 uLkUrSAgj/+T7MKthdojXLP3a27Ny0pmoSm+OwJgWP9O3sQC6ZUK1GMz6UzpP6ie+93A 9sjtZ7l5c3lqr8vGblsApe3LgbATTmBO42EI7IUBnePWAdk2KpQ7Rv7uZ1R54nsYoIEJ w+ERHMrJtlQfTEZDU5bD0tROatf48z28nRE5mkEnZxPWtcy0tgRIl3KuuQoe0DJsJaGP 0dqglt7ZbH8oDkORW0AmHP2hlAYBiuad157tNHrdHgzbKNSHkI4WuDLRnof+yknSMFdL llPw== 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:mime-version :content-transfer-encoding; bh=9MYR1fL4LMIx7JzNK3MR85Ll1dY3Hp/rUqi3GHmQqLE=; b=VdhEQMf5LdMQy+6hzxoQsyLT1wEkLfAUhIpVyzPacoxgjlp9OZD1g51aSy44yreGxV ZCXq4Cu629nT4wwDb6yRGJrrFVk27lq5ywNjPCOU0CdQuH2BlObAYL06O8tT0ymPCWMF IKhgO/b36WTAqQGI5W+nGapbAe88Vf3xFMAtY7Ny9AiogEwiEXdRSr4rio04u5GzfqxQ RUV/ia1LNfhOtBT9/eT+aCAIQxF4PM/x+zeCsBh407lj3gJ88gubHDxPNcg70wiQFgXk s3bjcBBJ9SSUDQW8sGkbyzi3cjM6+x+hhyOpQpXoEilYmm5NKmFKzcYiAufMkeSYJhVr 9fcw== X-Gm-Message-State: AA+aEWZnhxlDxpScqlSrnalUIogW5TLeRvnoWOPlK47npbVqBIs6xjo9 cSm66gJf9dwYSKAEkcVvmAo= X-Google-Smtp-Source: AFSGD/VPRx8YCkGZV+pYuBcL+DwQ2v2wcepkQtBrmGNvw0iMVrqiWbtdUq7OJOffpk4TskbLuTlnDw== X-Received: by 2002:a1c:b189:: with SMTP id a131mr14761433wmf.38.1543974152112; Tue, 04 Dec 2018 17:42:32 -0800 (PST) Received: from localhost.localdomain ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id b7sm15845784wrs.47.2018.12.04.17.42.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Dec 2018 17:42:31 -0800 (PST) From: Nathan Chancellor To: Russell King Subject: [PATCH 1/2] ARM: Remove '-p' from LDFLAGS Date: Tue, 4 Dec 2018 18:42:12 -0700 Message-Id: <20181205014213.943-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.20.0.rc1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181204_174245_032411_8DBAAF40 X-CRM114-Status: GOOD ( 12.73 ) 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 --- 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 From patchwork Wed Dec 5 01:42:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 10712891 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 CA48813BB for ; Wed, 5 Dec 2018 01:43:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B82502C99E for ; Wed, 5 Dec 2018 01:43:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA5762C9AF; Wed, 5 Dec 2018 01:43:04 +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 69B072C99E for ; Wed, 5 Dec 2018 01:43:04 +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=39r5vXHkmj4G96VjJ9ce2FNL0oIuiDIwgJlw19KegG0=; b=plQh92o0cLvg53 tSKbKo9CRnt3/CQ/sSkYURZ4m7c31b56TmjTClQcVeDE1+hxuTGYKY4O1nyjSGCHv+FfNf3YhGZuX ttZroa72Kfuadponzmq2P9X4ejnA3wc7MQ6ErzlKttQaGtWnkuyKrnhGFZlJhMKdulcMoEdOpC64K TkjmXpKe3jBaRsnxuDnxAuEIaKRX+PS2g6xAztW3Ns1AIQoAxHuCyTIB6fTdg+Y/iRABxwSab1UHG q324vXGrfuK2JIEMjE0zejx+WYKYhpN8/AA2IQ9vVtc3T1++vAdHrEJZzMF/RzlzF0srfx2EiNeH3 whBJAlZ/BSvlvNFk23Ew==; 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 1gUMDJ-00049w-47; Wed, 05 Dec 2018 01:42:57 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gUMD8-000403-8y for linux-arm-kernel@lists.infradead.org; Wed, 05 Dec 2018 01:42:47 +0000 Received: by mail-wr1-x443.google.com with SMTP id z5so17933332wrt.11 for ; Tue, 04 Dec 2018 17:42:35 -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=W0RQ4W4GOIgM92/vcDV5u070gtrTghilwsK18K8ftuM=; b=KAV6r52BSoydvVh/fT6UYReTo+kUH9aGLV73C9LyFs7zzAuiD/b5Tj/ElJU6idKQcU uLvLp8noe26vFTeemlaDo5o28i1UPkazxNfQrTahTSwzK5Po+vItbFSz01crEOq4TqAL 4oNvxN+vf0AjU0/HrW2SeZaq71aZQMvlvlBbNgmePe0O4hV81bxTaA6qmdrglP3MOEEc lAmZeiXr6tbhoIYBv2h1zR/6MQhqc8/1wRGgVx/OZMXXuLlUjKNeM2Q9Xz3Kz6jm9ya3 PFW1fAHojr/aEkpl2tN1jIaD6INmZ9rgglnnegFJbAMq5gvarmvlxJ4Li5+ApNXSycas lFMg== 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=W0RQ4W4GOIgM92/vcDV5u070gtrTghilwsK18K8ftuM=; b=e5dFSdn7funyokaaasHXAU7HDTm2wOPa4teTXuFO1ZXgHCSaGVige4BOe91N1mBCs8 BFwSZEV2UOPJPYhDTPueiTNFFn/TQ58gvdB84BZdrlDyDlhcMQzU9qEAUHypkgIvXScE dni5q8nBXmQpbqrVNAUcL7dzHTYvAeZdZRiXi+wRMBQDNJpHIY6kHSRjejwFXsUulf4W m+pgcn2Xtd1FZArGW9Gq3aNjrgKIoH0Rww+G4oVKPNicPdLkJi2WjlnHrv2nbBhyJC+D ZdcjVjJSPFNKM0HdnUxVbek5gD52jN3F05cR1hckU6hhrao39zy8pYGkq3hS6rHlkAOi q6GQ== X-Gm-Message-State: AA+aEWYXjGZG53FXR1ac9AT7IPASH4OlMQw49nm/6Ot1uEOPlOBNL2J8 e5xrsweO2Gj2YC1bsqppjBo= X-Google-Smtp-Source: AFSGD/UeihGXAfdhJOnkYVqMFj/b90JXNt4Mlsw6T1Fj23zeKRfG11Fnpnr8k7mtCm8Ympnnlph5Tw== X-Received: by 2002:adf:d1d2:: with SMTP id m18mr21026171wri.138.1543974154263; Tue, 04 Dec 2018 17:42:34 -0800 (PST) Received: from localhost.localdomain ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id b7sm15845784wrs.47.2018.12.04.17.42.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Dec 2018 17:42:33 -0800 (PST) From: Nathan Chancellor To: Russell King Subject: [PATCH 2/2] ARM: Wrap '--pic-veneer' with ld-option Date: Tue, 4 Dec 2018 18:42:13 -0700 Message-Id: <20181205014213.943-2-natechancellor@gmail.com> X-Mailer: git-send-email 2.20.0.rc1 In-Reply-To: <20181205014213.943-1-natechancellor@gmail.com> References: <20181205014213.943-1-natechancellor@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181204_174246_310837_0AADBEFE X-CRM114-Status: GOOD ( 13.09 ) 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 flag is not supported by lld: ld.lld: error: unknown argument: --pic-veneer Signed-off-by: Nathan Chancellor --- arch/arm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index e2a0baf36766..4fab2aa29570 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -10,7 +10,7 @@ # # Copyright (C) 1995-2001 by Russell King -LDFLAGS_vmlinux := --no-undefined -X --pic-veneer +LDFLAGS_vmlinux := --no-undefined -X $(call ld-option,--pic-veneer) ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) LDFLAGS_vmlinux += --be8 KBUILD_LDFLAGS_MODULE += --be8