From patchwork Fri Mar 27 22:03:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 185028 Delivered-To: patch@linaro.org Received: by 2002:a92:de47:0:0:0:0:0 with SMTP id e7csp1828965ilr; Fri, 27 Mar 2020 15:08:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vurHA6v9AjAjE9dPr2ThpWOjuiJnviC9GtED6UPfljiNu8dN3sIjwx9TBwV/1tdD+mMttX5 X-Received: by 2002:ac8:33cd:: with SMTP id d13mr1480126qtb.265.1585346936507; Fri, 27 Mar 2020 15:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585346936; cv=none; d=google.com; s=arc-20160816; b=qPP6FKUo3kK6vF4j0RUZgzSv7Aswu1VbWu1qGa1yiBDdpzYLq41ff+RV8qQUEyVYoy 10tzWUrSyBl55RqnnmsM25aZYGHJGBpI1kd95eQ8n+MvyCvKyKtKkzAo0P4oqfzvK/eO I3Bk9ywKGC6hbwLcwTA4TkpPknyn850SJbcvFPhnTw3sN4v72MLOxvmS6p2IkdmSdMIz s7HylCwJSEs0bchxB0SbqZ5FH1Nqglb6FT49ymDpJPiBHY8SA67GmgL5F1ua8ia8pmAz p/U4gigbmC7zx34FbQH/jr812ux6Dqu/yH7xSQUDNCLqc04gklK7376vTHuxrrtspwYG ABzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=o9JKpzI/epj4oTMvrkZSj1+UhfI0QZGWg+p5R22DKV4=; b=pB5mEkKoABHZlL8kvRw8fXxj9FBroR4IenBSw2AaAObTPPOrpFTGGMxJtDNJodNgTS gMFbEwbyIwfoo6aoCalud7tt3cFlbNX2TsHmlpTX4IReRsIoKNhIogSmw7rMBvbsr/Wi 7Z3wwwY4CFTr1vivSDSLw3SEQY/2zs0HxePmn2DhGVIQ2Allz1bceuRKEbbSAHCCoJAj qtBnihCqU2hZr44g6VMu2vejklnFjCXQ3inDm9m4zyp/LD4EdpJyPvnrRXEHOekG3r5t k6foJvrkRNnhDv/pFVTCzUaRog6XzdJruAQM7jtNzdUS6vkMVU2vUhtDb3wcosAjHmGq jaQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=eBqtBNxX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k5si3808943qte.315.2020.03.27.15.08.56 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Mar 2020 15:08:56 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=eBqtBNxX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHx9r-0008Mx-WA for patch@linaro.org; Fri, 27 Mar 2020 18:08:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49268) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHx59-0003Dm-EL for qemu-devel@nongnu.org; Fri, 27 Mar 2020 18:04:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHx58-0000Yr-Cy for qemu-devel@nongnu.org; Fri, 27 Mar 2020 18:04:03 -0400 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:43883) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jHx58-0000W8-67 for qemu-devel@nongnu.org; Fri, 27 Mar 2020 18:04:02 -0400 Received: by mail-pg1-x542.google.com with SMTP id u12so5220731pgb.10 for ; Fri, 27 Mar 2020 15:04:02 -0700 (PDT) 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=o9JKpzI/epj4oTMvrkZSj1+UhfI0QZGWg+p5R22DKV4=; b=eBqtBNxXIBOxeXQY8NqlCB7pb3vAtGykDRG6rNeEQlvdzs36JRFf4qCAm1SVErhlOe R6ltlBev+GqfksWLzEVfZ3yqoLuU+npojA1N/XHZPK+owchAdjT0MiFAvAxTI6qgyxt6 F3XOjwo1Dvs/ATrN+2NfZsEmoyolH99WBbSmmvch5jGsUypTgp2camMIIYQIhlgWZ7c7 QUCkyulUIxUpC6Sl12L4TT66LgXADmuEnpG9/u+6R4cVYDCaP7bZbrwW2Eyubd+xTLYf JQ9E5CVLU9bhG/xkQgBkpnnSQCnQwkUAABgVWWpfNGwzO978/eKUUWXAbahTTENtPAQj hdrw== 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=o9JKpzI/epj4oTMvrkZSj1+UhfI0QZGWg+p5R22DKV4=; b=IkMOA9Nvji4ttTLwCI8Lwe2GNeIWLME8AVlC9W8FtL/fqjtZ5riay9nmphrA3FAwsd fsltGhlBTJ/L5j+CQ/nkiBkl6uX+w+fF4SiLU9ksG7IVtCCSJAZv+LMoHWHTcyPekLLH dChwHcVpSm2GULzdLAqIDxyvp85vhlU8TwhdFBre1t/cpC/EzEIUsQOF+E+IM8HtuFS5 iO1/L5SGUMxB9d5y+4I9tG+Fk0WgiVVtGgB5Roga0T0zy7pK4B6w8F5FSln0C/NTPpiF hNKnn1sPdrsArV2RUYOsQBG5IU2prcCF2GeBQeNVY2O7+qEbRnqepvasjoCcsPQy7us3 cQyQ== X-Gm-Message-State: ANhLgQ0XQakGtUTyQ4i20vDQ9PVYmlW3DP6WfxX0xvI0gucQ7jwl64Fr VjNz8CjHI/VLO1IzuJ20rZ1VcjZyITU= X-Received: by 2002:a62:1a03:: with SMTP id a3mr1345219pfa.171.1585346639574; Fri, 27 Mar 2020 15:03:59 -0700 (PDT) Received: from localhost.localdomain (174-21-138-234.tukw.qwest.net. [174.21.138.234]) by smtp.gmail.com with ESMTPSA id y29sm4516929pge.22.2020.03.27.15.03.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2020 15:03:58 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH for-5.0 v3 3/7] configure: Do not force pie=no for non-x86 Date: Fri, 27 Mar 2020 15:03:49 -0700 Message-Id: <20200327220353.27233-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200327220353.27233-1-richard.henderson@linaro.org> References: <20200327220353.27233-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::542 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: dim@FreeBSD.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , alex.bennee@linaro.org, roger.pau@citrix.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" PIE is supported on many other hosts besides x86. The default for non-x86 is now the same as x86: pie is used if supported, and may be forced via --enable/--disable-pie. The original commit (40d6444e91c) said: "Non-x86 are not changed, as they require TCG changes" but I think that's wrong -- there's nothing about PIE that affects TCG one way or another. Tested on aarch64 (bionic) and ppc64le (centos 7) hosts. Tested-by: Alex Bennée Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- configure | 10 ---------- 1 file changed, 10 deletions(-) -- 2.20.1 diff --git a/configure b/configure index 2afcae61df..cbde833f6e 100755 --- a/configure +++ b/configure @@ -2107,16 +2107,6 @@ if ! compile_prog "-Werror" "" ; then "Thread-Local Storage (TLS). Please upgrade to a version that does." fi -if test "$pie" = ""; then - case "$cpu-$targetos" in - i386-Linux|x86_64-Linux|x32-Linux|i386-OpenBSD|x86_64-OpenBSD) - ;; - *) - pie="no" - ;; - esac -fi - if test "$pie" != "no" ; then cat > $TMPC << EOF