From patchwork Thu Jan 20 05:44:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 12718257 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6468CC433EF for ; Thu, 20 Jan 2022 05:46:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=aiXBf5xsfiWzCxd9j9x6w2+JDo+dfYsJx0lAwmZvfxg=; b=BJbddk/eYXZKdm HWNcWjU6r/DBZo3U5PGFXC5j6DJzwsVhwWZ8EhWvWrksKyIz1/2yBdAU9H3ckyVQ863z6TkMSG6Y8 cozIflcRl4aCd1J+rcbiNr9LS36BX0H/sIgT1+bh2H7aaWDRUc8mqIopVUCoIhCwaMPWIm+5PrtYe S0LZ74ZuvkBQoGWJCv1Zh0l+CUgzKcUF3nnvL2hghr0qzd70HKQKCfL9bAgA+B9Ze4g0nZEG9mm9j EhqGZiVSLEn78r4GBelxSzmN5pLRUTVoUanWEEutIASwi3wd+e9hBRijfirAQormLLB6tgZELnkwz 3UcFiLsvociFA4hSpHuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nAQFr-008s9n-8N; Thu, 20 Jan 2022 05:45:03 +0000 Received: from conuserg-11.nifty.com ([210.131.2.78]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nAQFn-008s7x-Dw for linux-arm-kernel@lists.infradead.org; Thu, 20 Jan 2022 05:45:00 +0000 Received: from grover.. (133-32-232-101.west.xps.vectant.ne.jp [133.32.232.101]) (authenticated) by conuserg-11.nifty.com with ESMTP id 20K5iPc1014412; Thu, 20 Jan 2022 14:44:25 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com 20K5iPc1014412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1642657466; bh=6NBzqKga/+HNsV98/PVzJhpBeK1/WIjSf8sHuENVzx0=; h=From:To:Cc:Subject:Date:From; b=l4h4ieWNaDiDamIOQdOEyCjjFaKazFjf5XcE+i5edODj38bdWDUVxg6bussfVDIOo 1vPbeOO9bf+7k2XmwJqVLmswwAZhBB2GmNqxeFYm14wJJdmplFUpKoldhZpq5Ad+ke BDESRoH+fXu8Fj8rkmVpMFtQ7o6dFFw+lLbUSnM2f3nNaXFW9QgpRX8K2OF9zoU1IV 4hrbcFCx84ingIE8Vxww5qLBOCHiSP5tvZDqgSC0MlrJmbdBJNWgoKiAPwsivoiGUJ 4Len3aCJbxgd7d4j8Andhhwt+Pe45bPGX+vdx5JtqFYVHKbO4pugq2opnNE3AP8MvO gLjugG4+oS6dQ== X-Nifty-SrcIP: [133.32.232.101] From: Masahiro Yamada To: patches@arm.linux.org.uk Cc: Masahiro Yamada , Nick Desaulniers , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: vdso: remove -nostdlib compiler flag Date: Thu, 20 Jan 2022 14:44:18 +0900 Message-Id: <20220120054418.409817-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220119_214459_733545_7BD97001 X-CRM114-Status: GOOD ( 10.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The -nostdlib option requests the compiler to not use the standard system startup files or libraries when linking. It is effective only when $(CC) is used as a linker driver. Since commit fe00e50b2db8 ("ARM: 8858/1: vdso: use $(LD) instead of $(CC) to link VDSO"), $(LD) is directly used, hence -nostdlib is unneeded. Signed-off-by: Masahiro Yamada Reviewed-by: Nick Desaulniers --- KernelVersion: 5.16 arch/arm/vdso/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/vdso/Makefile b/arch/arm/vdso/Makefile index 7c9e395b77f7..ec52b776f926 100644 --- a/arch/arm/vdso/Makefile +++ b/arch/arm/vdso/Makefile @@ -18,7 +18,7 @@ ccflags-y += -DDISABLE_BRANCH_PROFILING -DBUILD_VDSO32 ldflags-$(CONFIG_CPU_ENDIAN_BE8) := --be8 ldflags-y := -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \ - -z max-page-size=4096 -nostdlib -shared $(ldflags-y) \ + -z max-page-size=4096 -shared $(ldflags-y) \ --hash-style=sysv --build-id=sha1 \ -T