Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2556254lqp; Mon, 25 Mar 2024 02:28:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwEeObXPSDAjT1VN/S1wh/xBNXLmRn1J4zagl3/n3uolKhS/AGTv3b8VurHqWcWQ+GgMYyBV8HEf96C9j/vMxqqpAk02suaTvKkG/ddg== X-Google-Smtp-Source: AGHT+IFdEUgX8ehq+zcLHK7TP0rmfOo3gE0s7x0HByv62Yafmb/fKYTObU0ZgiJTxU3diGAvsk2w X-Received: by 2002:a05:6830:155a:b0:6e6:cba3:acfd with SMTP id l26-20020a056830155a00b006e6cba3acfdmr4687189otp.31.1711358923132; Mon, 25 Mar 2024 02:28:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711358923; cv=pass; d=google.com; s=arc-20160816; b=xu475FP1RNhIcj+zHpVxp1uic9V9bLal2+P1VPD9iD9G/y5AiXRWN3dqdnmYMvVCS+ k6GKWClfOdO/8rvGnja4poj8pOwE5WLdkG22lNxo6li1D+SaHg3vhIwM6hTaeVOr7b24 wuxta3w2TnLB5982ao9rBAxSLjoyyxDABif3OTacAZ3bBkzMDmn0Ean6CNskjfk/X4Fm Dc8trFTic36U9VsuT+QOhSvHWwNDNY7H7mkreXFtnPsZ2P9fv7QDN1kud959mOd+1wz8 s5gxlQJ2PDNbwmwpBd3nfvxIuaTztbRJ0isAuQfhC8T8j55z7gDzZqSoK8Dk/dRgtO3C xp4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=mRmg+IZq6czs69psHeQtjqIRLfQTQpm+vqVM2I4s4/0=; fh=G4ow2AgPQ1Ep1j2/iV+RiqbJtnHOmDQifOXh0L3iobo=; b=CIOARCBa9C9GR4Z4gc2NSzauh4F7oLS71jJUrfwbHWQHAfchUowg3VmGCGFTCKPh6c pXHYQLeXo2ypw2JSnyGhi9ntyjfsp7NUF5UcE1x+ZSp63YcjJlkdDNvhBzXlV6IWga/i 4dM7xFFJwEtE8+Z50/2GzVW01R1q7ypC32dZwhlJ2H0eK5nwODtHbBpRdxF7j0WcvsY2 wsIdMJNSQ1lNKzFTQ29jB7lvfBdCeh8rnfIViv05quLuX6UID3XVHb5RoKh7WjqBYZHq lTGCxsCpg1nbXrvuVl1ZI468wXIBd+SqquQz9dely6WUohLNh1KcQq8NEmHQPiLBesh5 +KAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bYdkDIzI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115860-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f11-20020a6547cb000000b005d8fdbbd5d7si7101647pgs.606.2024.03.25.02.28.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 02:28:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bYdkDIzI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115860-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 52E9CB3A8AE for ; Mon, 25 Mar 2024 08:08:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D796158A37; Mon, 25 Mar 2024 03:02:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bYdkDIzI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DFA7146002; Sun, 24 Mar 2024 23:14:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322064; cv=none; b=WH2e9XG71HjEMcD+A7lUZcbt72LZKy8yjk9S0qhhBmxSBr9lLPxO3gCBARdaLcvwJ1EkJt7XWMjAdeubENh9/5agJ4beyYfn7LZzpGIYU4PsQO/N8d9/cxr26DA+YnDD7g0QzEQEmblSTsFqBCCqI/ozkQClXP11muMROelMetc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322064; c=relaxed/simple; bh=Ty54UJkyHxXnxmNG3U9Di3z28hRX9+NIx75utLzM6ws=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qAUWLBYfCSPedqTnnqLwlOIIC0K2wKcMJS90E+h7djzh/q7SbzoASyclC+fnHZVKwGxK57FRWkC5JsVgCCUqbZmmllERQB7HSrdrXCq0UGdgTY09P54NmdPndR/bu+dPi2xYn14nbNruR8X9wwEK0Xs8KlSmXz3+vjL1d6bURY8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bYdkDIzI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5C8CC43399; Sun, 24 Mar 2024 23:14:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322064; bh=Ty54UJkyHxXnxmNG3U9Di3z28hRX9+NIx75utLzM6ws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bYdkDIzIUmPa56PY2k4ekwyr1LcmPKLvCjRb8sSfB7lnOJCWjg3gz/MY0EVnedY68 fDdSBTqfh+nO8FXUM9WBOnM11EKacLAoQpdDkbCkme71qHes6gtqbd5GMcWTbu+O6e o1+ffpSLtzXZVqSnhom8Xcm1reGmuuSBnkBthM/wWW7TULBc2GemCWL82ccAXyh1Ig /gX5SpWHCtZjq+FzrfWxdug4DKGT/fopnKTVl8+2HhU05k2gVqGpbsGKLGJerHAKK4 cKlQTDLW1Lt1xlGl5Fh/v5QRtuyf8q4XdPN4QxWxAlEUYF0ADio8YQXpywtr7l0i8h 9uzUoTr+kqLSw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nathan Chancellor , Fangrui Song , Heiko Carstens , Sasha Levin Subject: [PATCH 6.1 137/451] s390/vdso: drop '-fPIC' from LDFLAGS Date: Sun, 24 Mar 2024 19:06:53 -0400 Message-ID: <20240324231207.1351418-138-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Nathan Chancellor [ Upstream commit 0628c03934187be33942580e10bb9afcc61adeed ] '-fPIC' as an option to the linker does not do what it seems like it should. With ld.bfd, it is treated as '-f PIC', which does not make sense based on the meaning of '-f': -f SHLIB, --auxiliary SHLIB Auxiliary filter for shared object symbol table When building with ld.lld (currently under review in a GitHub pull request), it just errors out because '-f' means nothing and neither does '-fPIC': ld.lld: error: unknown argument '-fPIC' '-fPIC' was blindly copied from CFLAGS when the vDSO stopped being linked with '$(CC)', it should not be needed. Remove it to clear up the build failure with ld.lld. Fixes: 2b2a25845d53 ("s390/vdso: Use $(LD) instead of $(CC) to link vDSO") Link: https://github.com/llvm/llvm-project/pull/75643 Signed-off-by: Nathan Chancellor Reviewed-by: Fangrui Song Link: https://lore.kernel.org/r/20240130-s390-vdso-drop-fpic-from-ldflags-v1-1-094ad104fc55@kernel.org Signed-off-by: Heiko Carstens Signed-off-by: Sasha Levin --- 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 245bddfe9bc0e..cc513add48eb5 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 -soname=linux-vdso32.so.1 \ +LDFLAGS_vdso32.so.dbg += -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 1605ba45ac4c0..42d918d50a1ff 100644 --- a/arch/s390/kernel/vdso64/Makefile +++ b/arch/s390/kernel/vdso64/Makefile @@ -26,7 +26,7 @@ KBUILD_AFLAGS_64 += -m64 -s KBUILD_CFLAGS_64 := $(filter-out -m64,$(KBUILD_CFLAGS)) KBUILD_CFLAGS_64 += -m64 -fPIC -fno-common -fno-builtin -ldflags-y := -fPIC -shared -soname=linux-vdso64.so.1 \ +ldflags-y := -shared -soname=linux-vdso64.so.1 \ --hash-style=both --build-id=sha1 -T $(targets:%=$(obj)/%.dbg): KBUILD_CFLAGS = $(KBUILD_CFLAGS_64) -- 2.43.0