From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.57 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795024389; b=vEdQRGsY4TrgWmm/TydpqnPQWVL7ivqQGUw7gzhMU5Zg+OZ3FCNTcqCp2W3OUB+eO+MS ECnjxq2OIxkXSmRomZAS2btLvlMcLiZrdE0874CuSJVJinlSbCtCMLEdBSAYp5TSgtx+G eMeDgYa/SmRmPFIaA9A+9uhhQM3l2eSgBPH0o/w6GSSM5pK2d6WqtrbInV83APWTj9aRg xI5hdIENpyST3CsyrVs1T2uPEry1mhHAIEZvn+fUeZ+OBlb2yWyYVI5keV0WnJT9n3whe CKnzaVll96hk43R3sLnrOMD2sXYn8fN+pEf+kM6C0JWh2JZpGyP2arSwT2isDtoo22g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795024389; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=mIvlMhQp2XPMKkyqstwBRddoJIhsg5ZvouNFjygJYDk=; b=c+eVNtD76cCrOa2vexTYym6pBCNQV72XQ3KdEoVmxuNMgQBxZv5y01fHjCeuitaYqp3P tVKOBnwB1lvd3W0KXsdG7VvHwvfd0Ss5fmqa5Px0LVxHTaEp2FEMW4L+Nm1oTigNE8+I8 NUwb+WcsGlE3h5Hq29cJuNBk9eSJ1banGbuJHYKFBJZkhYFrZhbKODZL8fjcfjboQZbF8 chFvEaGCMbKhTvpeaDNnXLvlgYXurQJIdXc2gZYHKmDMe2V7WrObr8itUKVKhQDnz/RSX IJRCEO3sjku9swduPOZZdJ/CcAOLTATbwNQEkyUCPWdh0192Iz9WHxKJjHBHuf6c0EA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=kKrkgOt9; arc=none smtp.remote-ip=95.215.58.57 Received: from mta1.migadu.com (out-57.mta1.migadu.com [95.215.58.57]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61EF6606A32C for ; Wed, 18 Nov 2026 17:53:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 61EF6606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=kKrkgOt9 X-Envelope-To: linux-s390@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=+m7k99GokHGG2Xt0WNDUpUu/POJp/u8hXMkzLb7HkPI=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795024385; v=1; x=1795629185; b=kKrkgOt9Z0+Uxd0OLSeRAMXHHLAwszcLDUbKbF12OkJtRBtdtWKPCEIzYjNBS/HTPbsasfAS uB5YRPSbid1q4JNdkyBI3GN/ci90xJ1VOlf8DjQgJu1KHxicG+32bBCr18ovse2tMz48PwuBhzD 9MA0algsT312UDIoJhrsXcmk= X-Envelope-To: linux-s390@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 55e39e18abac30ad; Wed, 18 Nov 2026 17:53:05 +0000 X-Mizu-Trace-ID: 55e39e18abac30ad X-Migadu-Flow: FLOW_OUT Date: Wed, 18 Nov 2026 18:52:30 +0100 From: Andrew Jones To: Thomas Huth Cc: Paolo Bonzini , kvm@vger.kernel.org, Laurent Vivier , Claudio Imbrenda , Janosch Frank , Nico =?utf-8?B?QsO2aHI=?= , Chinmay Rath , kvmarm@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-s390@vger.kernel.org, Amit Machhiwal Subject: Re: [kvm-unit-tests PATCH] Move position-independant code flags into the target specific Makefiles Message-ID: References: <20261113120101.145183-1-thuth@redhat.com> X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261113120101.145183-1-thuth@redhat.com> On Fri, Nov 13, 2026 at 01:01:01PM +0100, Thomas Huth wrote: > The settings for position-independant code are currently quite a mess: > It depends on the target whether we need the flags or rather should even > disable PIC / PIE, but currently the settings are spread between the > main Makefile (-fno-pic is the default, unless CONFIG_EFI has been set) > and the target specific Makefiles. > This leads to some weird situations where we have -fno-pic in the CFLAGS, > but link with -pie in the LDFLAGS since we still want to get a relocation > table, but then again need to add a "-z notext" to the linker flags to > avoid warnings about relocation entries in the text segment. > Let's face it: Always adding -fno-pic / -no-pie in the main Makefile is > a bad idea. Move the settings to the target specific Makefiles instead > where we know what we really want, and then we can finally drop the > "-z notext" settings, too. > > Signed-off-by: Thomas Huth > --- > Makefile | 6 +----- > arm/Makefile.arm | 2 ++ > arm/Makefile.arm64 | 3 +-- > powerpc/Makefile | 5 ++++- > riscv/Makefile | 1 + > s390x/Makefile | 3 +++ > x86/Makefile.common | 5 +++++ > 7 files changed, 17 insertions(+), 8 deletions(-) > Acked-by: Andrew Jones