From nobody Mon Feb 9 17:53:39 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1578455736; cv=none; d=zohomail.com; s=zohoarc; b=dizBia89g79rar2NMrfseFXKqB5PEp+mtixP+TJjOW1C2FcpF4EIa6ZiZa10+sJxv1QjT0u8Vx3fq4lhUVF+XY9tNJVEJotjq9nPTkBhsN6Cl9TUgqULk4ebR3TZFPaRhQoHLAgkcBarkf+wBwYtCWvzwpjUlmszKfLGnYFrYGY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578455736; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=A0N0dguL22OusnU3Aul2sGZtJ4sR0312gx6xckIIDM8=; b=O5K0Xyk0NfhNikUwFa6eN0E4GPwXjccUuwEi6fLm96z62f/9l0WtPSZ9jOhTZ05m2p3/YlsJfDpmE5pbruCAIq7qfHPolg7DT6/T4SpeWQy4M7+1tmhocmAEzoZp4C4VXC2qukX56Q9DaRwlh5Yaypmes+S5fSuhdmJU3Y8LV2s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1578455736660825.6008146908538; Tue, 7 Jan 2020 19:55:36 -0800 (PST) Received: from localhost ([::1]:35326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ip2RS-0008NS-Jr for importer@patchew.org; Tue, 07 Jan 2020 22:55:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48516) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ip2Hv-00034B-1U for qemu-devel@nongnu.org; Tue, 07 Jan 2020 22:45:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ip2Ht-0002Xg-UO for qemu-devel@nongnu.org; Tue, 07 Jan 2020 22:45:42 -0500 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:36563) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ip2Ht-0002X6-Ov for qemu-devel@nongnu.org; Tue, 07 Jan 2020 22:45:41 -0500 Received: by mail-pg1-x543.google.com with SMTP id k3so877452pgc.3 for ; Tue, 07 Jan 2020 19:45:41 -0800 (PST) Received: from localhost.localdomain (alanje.lnk.telstra.net. [120.151.179.201]) by smtp.gmail.com with ESMTPSA id f23sm1198433pgj.76.2020.01.07.19.45.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 19:45:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A0N0dguL22OusnU3Aul2sGZtJ4sR0312gx6xckIIDM8=; b=OUyIdK3Mk05zg3M9AcYoDdbWRx4n5r0xRtIyyiN6Fzu4SfyNOy4C+zuUjT5tXZxPR/ RCLY70Aiv4U1IUY/X9zEVLVMe0QF36ic7ztCRandQ/GtGC2LNQgiNe4P4YwEstBakOQr w03D+1baPzaBjv7DOtdg/PmpOeKVZB0zj2JURI3RM7FVmm7HqTOvgLueGUynEGDCPFvn HJQmxyJG2pcIlxemfhTK/1z1r0joQXobQiucSxVYSbjIgguO0dwdM/Bqrib1djgx2ShQ Gz4w75yFlDcleIGPFu5/C2uW2W5gUM5k6TduBUnIjRpMMVVejftabmfFacLBwakTz0Fp NWAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=A0N0dguL22OusnU3Aul2sGZtJ4sR0312gx6xckIIDM8=; b=bNtnJ+uvC8Hpv73zWgzgAwSCtCsW6HaAccQstkQGhznh4FzUWyMnbFVuIj4CVq8v7B Y1QagN2yw11GhGqB1mETwNvtTjQ37YFO8OlsvKUa58ILbyZ4LJx+F/2EBjt9WwG4TQlI D65PxnmL+4rM22ri+AdYrEFl7NpzGMITda2XEbn1D5BPoa/gNTxqD0rzvZ1jr/LfzhSz FSAXoC6D0zoLHp99DABTqXVG2DEDf96rl1/JJcCoGg3XYPh08YMqHr4A1Zhxb1pnWZgq vH13slhRo0W4FoWVzlaCkmpY3ZxJsc5roAYeGqiLohfFJJXfZLusrF5Hh8DwQQpLQ+qz 0m6A== X-Gm-Message-State: APjAAAWcZ9rxytZvA+QwiJY/yBpVTbflQZEpxAIHvEO6ULJikD0tHwB/ gNnxfOuCD2msV6sZGv0d8VWyOL/DPQMPWg== X-Google-Smtp-Source: APXvYqyJLDrXMM8x71veEqmaQt9QNwbweQIITCF5/OlZdXC0t6E1Qedsu4Hc87yXA3R5fcMdj+J3VQ== X-Received: by 2002:a63:5211:: with SMTP id g17mr3220421pgb.426.1578455140562; Tue, 07 Jan 2020 19:45:40 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 04/41] configure: Always detect -no-pie toolchain support Date: Wed, 8 Jan 2020 14:44:46 +1100 Message-Id: <20200108034523.17349-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200108034523.17349-1-richard.henderson@linaro.org> References: <20200108034523.17349-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::543 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) The CFLAGS_NOPIE and LDFLAGS_NOPIE variables are used in pc-bios/optionrom/Makefile, which has nothing to do with the PIE setting of the main qemu executables. This overrides any operating system default to build all executables as PIE, which is important for ROMs. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth Signed-off-by: Richard Henderson --- configure | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/configure b/configure index 351e39795b..f5248f86cd 100755 --- a/configure +++ b/configure @@ -2019,26 +2019,24 @@ if ! compile_prog "-Werror" "" ; then "Thread-Local Storage (TLS). Please upgrade to a version that does." fi =20 -if test "$pie" !=3D "no" ; then - cat > $TMPC << EOF +cat > $TMPC << EOF =20 #ifdef __linux__ # define THREAD __thread #else # define THREAD #endif - static THREAD int tls_var; - int main(void) { return tls_var; } - EOF - # check we support --no-pie first... - if compile_prog "-Werror -fno-pie" "-no-pie"; then - CFLAGS_NOPIE=3D"-fno-pie" - LDFLAGS_NOPIE=3D"-nopie" - fi =20 +# Check we support --no-pie first; we will need this for building ROMs. +if compile_prog "-Werror -fno-pie" "-no-pie"; then + CFLAGS_NOPIE=3D"-fno-pie" + LDFLAGS_NOPIE=3D"-no-pie" +fi + +if test "$pie" !=3D "no" ; then if compile_prog "-fPIE -DPIE" "-pie"; then QEMU_CFLAGS=3D"-fPIE -DPIE $QEMU_CFLAGS" LDFLAGS=3D"-pie $LDFLAGS" --=20 2.20.1