Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5451373pxb; Sun, 7 Nov 2021 12:36:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfqB7mQc4i2iUBCjHd9xWpG11sTR360vSSvSjY4UkkhjJgvs9zrfR9oKn/QLczkm1mtelE X-Received: by 2002:a17:907:6d10:: with SMTP id sa16mr43500099ejc.532.1636317371410; Sun, 07 Nov 2021 12:36:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636317371; cv=none; d=google.com; s=arc-20160816; b=BD8Ozmh+gTk0V6NsrUMhb4fMsln1JJis3592TVLrN9VQ6Ah8R+BXVm9E4KjvSPFJKI pWDmAPcPOEHu4wvtc5okMp2hUYLfEK+HFMjDuJT/x4NPCYV+C/YMxUwWiJMr3Aa06Ae3 nDIQT/Mg4RSiqO2V5i5fyA2QjSV34F6qxRSr0HKBDnzpQqYHrcRnFpIOMNrU5EVtT3xd PAmU9NQCA51yKhVm3XI3bFB/U5sGAguUVO0mGcoRgiCLNz1TpvAytDv3/bwxKZ3NUQxI FQYLG2qGG5dH216YE8aBj7wDsS0J4JbeD3f2SEKrv85unk/jvRH7tTGe8mWRIX+5SCUZ QZPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=s1NyX1ZaqRz0lA+F7W3QeWU8jgMRJfk5xOkduk3mJDw=; b=hDs68GXIp5G5+TS2+5Fl27tFjKpr6R732hCu1Uv7C/PbRE1UusueaFGw1zl8x5y+fq 9zbpbm3L3VBHoSztYGvgkYd5YLI2pUUvPbua9E9SQreMOybaofhLDHnpJFqaEKP+lo/f M7damBl0axY7z9FamiUKcpIradhDQXDUF9WwsztjHAGRgIZXHB5lBjetPSUhPMRe00GD kOd6/mpU/jwUDn0nsAfE8gKy7TD51BXC6QTZNzGH9oaZX/N2nrUq6Zendsg0AO6PKL/o f8IPQJxkDiamkhzXbpIqf1DqDuz0JubmlA7DWhUh6sSRcDSHEQPDghK864JaszwKEuPF blgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=m0YHGAor; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b2si12854695edx.237.2021.11.07.12.35.48; Sun, 07 Nov 2021 12:36:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=m0YHGAor; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235208AbhKGQYh (ORCPT + 99 others); Sun, 7 Nov 2021 11:24:37 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:48306 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233694AbhKGQYg (ORCPT ); Sun, 7 Nov 2021 11:24:36 -0500 Received: from grover.. (133-32-232-101.west.xps.vectant.ne.jp [133.32.232.101]) (authenticated) by conuserg-07.nifty.com with ESMTP id 1A7GLGH8014967; Mon, 8 Nov 2021 01:21:16 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com 1A7GLGH8014967 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1636302077; bh=s1NyX1ZaqRz0lA+F7W3QeWU8jgMRJfk5xOkduk3mJDw=; h=From:To:Cc:Subject:Date:From; b=m0YHGAor3BXzpCAAhVxMD4/60mb3KnJZc6x6hDUnosRLTpvDnHE/yy5uVjr5o5PKH XXh4Jexb0oYCKU+Cwm46YHNTPsVPYO1h8UDQYQKQ67Jdef6E+2rz60lGpSyZeCmw7M pIPVo0On/X6wRtDuNJKobBzYAsm9cIeD1ICzIhVeVPWDjqEWzOhmX1W58ZgHuRvPrt gElvI1HrWMGbX1B13rlvG+QbDZzCY3XTSQwYBmGmDLffP7ZcfbepQxmw6XqWJqYY7q MBxkZDgDjajtV9NcavXvyLfX+y16nEValrDAyhucwiUMzDm/cmYfK8qye0gyojQJp/ +Jc4vfK1tJT0w== X-Nifty-SrcIP: [133.32.232.101] From: Masahiro Yamada To: Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Alexander Gordeev , linux-s390@vger.kernel.org Cc: clang-built-linux@googlegroups.com, Masahiro Yamada , Ilya Leoshkevich , Sven Schnelle , linux-kernel@vger.kernel.org Subject: [PATCH] s390/vdso: remove -nostdlib compiler flag Date: Mon, 8 Nov 2021 01:21:11 +0900 Message-Id: <20211107162111.323701-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 2b2a25845d53 ("s390/vdso: Use $(LD) instead of $(CC) to link vDSO"), $(LD) is directly used, hence -nostdlib is unneeded. Signed-off-by: Masahiro Yamada --- arch/s390/kernel/vdso32/Makefile | 2 +- arch/s390/kernel/vdso64/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/kernel/vdso32/Makefile b/arch/s390/kernel/vdso32/Makefile index e3e6ac5686df..245bddfe9bc0 100644 --- a/arch/s390/kernel/vdso32/Makefile +++ b/arch/s390/kernel/vdso32/Makefile @@ -22,7 +22,7 @@ KBUILD_AFLAGS_32 += -m31 -s KBUILD_CFLAGS_32 := $(filter-out -m64,$(KBUILD_CFLAGS)) KBUILD_CFLAGS_32 += -m31 -fPIC -shared -fno-common -fno-builtin -LDFLAGS_vdso32.so.dbg += -fPIC -shared -nostdlib -soname=linux-vdso32.so.1 \ +LDFLAGS_vdso32.so.dbg += -fPIC -shared -soname=linux-vdso32.so.1 \ --hash-style=both --build-id=sha1 -melf_s390 -T $(targets:%=$(obj)/%.dbg): KBUILD_CFLAGS = $(KBUILD_CFLAGS_32) diff --git a/arch/s390/kernel/vdso64/Makefile b/arch/s390/kernel/vdso64/Makefile index 6568de236701..e7d911780935 100644 --- a/arch/s390/kernel/vdso64/Makefile +++ b/arch/s390/kernel/vdso64/Makefile @@ -25,7 +25,7 @@ KBUILD_AFLAGS_64 += -m64 -s KBUILD_CFLAGS_64 := $(filter-out -m64,$(KBUILD_CFLAGS)) KBUILD_CFLAGS_64 += -m64 -fPIC -shared -fno-common -fno-builtin -ldflags-y := -fPIC -shared -nostdlib -soname=linux-vdso64.so.1 \ +ldflags-y := -fPIC -shared -soname=linux-vdso64.so.1 \ --hash-style=both --build-id=sha1 -T $(targets:%=$(obj)/%.dbg): KBUILD_CFLAGS = $(KBUILD_CFLAGS_64) -- 2.30.2