From patchwork Sun Nov 7 16:18:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 12606833 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E22E7C433F5 for ; Sun, 7 Nov 2021 16:20:55 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id AF97760EE0 for ; Sun, 7 Nov 2021 16:20:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AF97760EE0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=t3qmokAJGsqQZH/HSnXl0hDX9fAMxwoQS9SmM/jeoi8=; b=FvPbhzVdsaI0vM IAuFM9jlkpO7rHRhIoOXMIuWUr3HLr4mjjNfiOVbVt3iQcc1YZsCObscGPZgXl/aSE+XTgh4FGouj hzxkC6pj90m/CzH6FImJSPL10OgITMwfiOP00/lXRaPiwVMuQo0DfTJp4QmN2mARj7DwcwQp7Bdwb JyxbAoPNvXl7QEb9NqDtGek6G470hlnPb3FFwH39Y1i+PEKU8ogpm1IixzNfcb5ICP8/59d1kcjxD U3DzqPgEcVj3ebWMxQciPC1WR4AuijW5ATf5qe06lVCtAETtowvtPHQlX0xSlX102y1RTVtnm/zfV cAO1VfHrh87MVqnOGCIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mjktJ-00EXkt-Mk; Sun, 07 Nov 2021 16:19:33 +0000 Received: from conuserg-10.nifty.com ([210.131.2.77]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mjktF-00EXjY-L0 for linux-arm-kernel@lists.infradead.org; Sun, 07 Nov 2021 16:19:31 +0000 Received: from grover.. (133-32-232-101.west.xps.vectant.ne.jp [133.32.232.101]) (authenticated) by conuserg-10.nifty.com with ESMTP id 1A7GJ3t0006971; Mon, 8 Nov 2021 01:19:03 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com 1A7GJ3t0006971 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1636301944; bh=5RXmLl5bCtAukQN97+d2QAYSEJ6auZ6akf2R3WZ4+JM=; h=From:To:Cc:Subject:Date:From; b=KEFQ5bWVkFpjPorZjMi7DSvrAYeTQ6GMuqkx3ousylTarq6E8lMym35/95j20Fhvj c5u+ZzUZJXRhKr61kk3PcqWK66wrPIzSVOqz1jR4PFbtWJSbwN1MHHfd6uDhbsQibN EcW34voj4X/A7XQO7MNqjx406Ez26anOAK5fixruq+GOEJOwPmPPr75rQnoi6vMH5o KVCqJhf3z6jbSUvdzuknFXPsAmqd3MDtccbdgTkNctHmKOX/+PDmfgCSn3I5sQD0+l yO63gyMHzIzKYhFK03408dAQ5ERMYvjoAuSJ/voVfeG3ILTLEpQqPTYFMmG2lIWCwO El31kaW0s5wOg== X-Nifty-SrcIP: [133.32.232.101] From: Masahiro Yamada To: linux-arm-kernel@lists.infradead.org, Russell King Cc: clang-built-linux@googlegroups.com, Masahiro Yamada , Russell King , linux-kernel@vger.kernel.org Subject: [PATCH] ARM: vdso: remove -nostdlib compiler flag Date: Mon, 8 Nov 2021 01:18:55 +0900 Message-Id: <20211107161855.323312-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211107_081929_935601_36658B42 X-CRM114-Status: GOOD ( 10.43 ) 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 --- 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