Message ID | 20220914155950.804707-19-alex.bennee@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:ab3:1c02:0:b0:1e7:4ce8:c350 with SMTP id u2csp877289lth; Wed, 14 Sep 2022 10:04:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6061ZPodMsJseZBf+QY+GzRk/kAgDUtFm+HJiDZH3dnPmwtsaundXDWS88utWpG4eWEQf7 X-Received: by 2002:ab0:2106:0:b0:3bd:27cf:e95f with SMTP id d6-20020ab02106000000b003bd27cfe95fmr1213934ual.30.1663175068870; Wed, 14 Sep 2022 10:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663175068; cv=none; d=google.com; s=arc-20160816; b=I8WuyFwenSwWi6Pck0W3aJj496MYcye3v68pdB83YPatN7c3gdRsMMH3vT9DUfdqta ifqYPdj7//ALAW8Ttu9BAfxIQGbSMrE6voup2yI6Qtkm6c+XRPzsLeMeu9dKv0fF068G vmTN3dSBYPWnDudAy1w2cKTaNgmnqXM55dLgKBdY/W6RWf3y4IB64UOa0roK1TQTMJlZ qGyYH8TLiMWVJsPMLdfZPG89BJntnAISxFRo/mxfL5As3QpBNkxnSIVC77v1sYWjxnbd pRhvJ+sVlpojfPvJKqfGs/INCgeLMXXuNyL1KWSRPR3Tw9z4eSfiq/9rNnucBVxznhkN IN/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=QTQr9TtcMW+CLdYuqmZS0eZEFv1TYRf+0Q4Vht/BZfk=; b=DDLdI2RTSsV8Rua8PNwMK9IlyxAyO9vbxhOrLsyOYjfJUxf1rutU9MblWGCCxQT1hV ITgTF0o3wn5mTNWKyJSpgtySyWDS+rvOfPCV5V1Yo5M+ZBpmAUtzaHS9nXSZm0T4AIZb B//N8gnHq2S4+umh/rqnwblYumxwAlwwORKcf+7qpS5JkMA8vn18neLpImpD9WdPErTu MxjMFyBOM6vmgo+uYRIHXz7Wmf9VrukXh04wyggs8KlT5WX7orHXaU3RK6ll8efcUhA2 8wJuAnp/Q5g+9Fi9/0GMHNk5UeUvHz3p0IuZKySjg8rRtzOsFdxC0jVUny+wD/Cmw/5i fIxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Vn/onk6+"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q9-20020a67d789000000b003983a274b0esi321136vsj.265.2022.09.14.10.04.28 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Sep 2022 10:04:28 -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=pass header.i=@linaro.org header.s=google header.b="Vn/onk6+"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1oYVoK-0001my-BA for patch@linaro.org; Wed, 14 Sep 2022 13:04:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>) id 1oYUu0-0001Qm-2q for qemu-devel@nongnu.org; Wed, 14 Sep 2022 12:06:16 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:42935) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>) id 1oYUty-0003r7-Ek for qemu-devel@nongnu.org; Wed, 14 Sep 2022 12:06:15 -0400 Received: by mail-wr1-x434.google.com with SMTP id z12so8147361wrp.9 for <qemu-devel@nongnu.org>; Wed, 14 Sep 2022 09:06:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=QTQr9TtcMW+CLdYuqmZS0eZEFv1TYRf+0Q4Vht/BZfk=; b=Vn/onk6+J4j0X27Fgz2iYgN5LSNypw6UWZ+8Ebq6LgU9fp27xi+8fDaKlloxEqWuEg DXzNiKVZbFCCzs9BY3ueO08AKnynDgMWoUcFit78uPQYyiUaKAebVW+bxyWRPV9gQwSI 7I/TL70LoF/e+cVQGA88tvUenSazwZyLjIoQ9rMXnfBI3NLVDtA074cKbnvdag+3QIdY KDg0PGpMAI9Twzb51Q/by3/1qqNqoZRRdXU6B54crDOqRD2BI2u23buQhb7GIBSB/coS pg8YLVks4XqTYHTUhwV7PmloT3lcOT9DOth63Y6fSbf6Kp6oDbYRZsoqrhOvCcDq/GuQ uaXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=QTQr9TtcMW+CLdYuqmZS0eZEFv1TYRf+0Q4Vht/BZfk=; b=zMOJ7ZgqwM01ORdFT72F1B+fh51xU712YEjbafSAv494oPEkCWg/yjakfdkuLWaFnj Sxksz7Hnt1GXO2ymFgOr7M+WMnOgZkzLcvxP0yGTDJtsXQm/m+SQzHAnCIaf/au+uXJj y4pI0NhPsDhxbK/fn87FZocKdylCyfwwfUUdM5GAp10DlM6k9Fjuw5yCDX1VfjYVwuqJ 8UjmcwUnAE8w61/luueBo6vRKA/vOOSyOYDVQUBHD1weQJ38+18KWak8hEbj14cWW2x5 OY8Nt0sU9znrx5Q4iC3RGvXu1Sxd2fwpfZzTPZfN1cC+4cgwEuYNWMRezxn+bnbS3egb I4gA== X-Gm-Message-State: ACgBeo2M53Cp/Ts5Ze6fsrs0lEAEcuHqxEIU8JyWUnhaIa7AfxjYm3Da x1A83H3LfkQSw0XiwY/T4oP+wg== X-Received: by 2002:a05:6000:1d9d:b0:22a:745b:9f00 with SMTP id bk29-20020a0560001d9d00b0022a745b9f00mr10579090wrb.280.1663171572977; Wed, 14 Sep 2022 09:06:12 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id o14-20020a5d684e000000b002287d99b455sm13638515wrw.15.2022.09.14.09.06.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 09:06:11 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id EEFFB1FFCA; Wed, 14 Sep 2022 16:59:51 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: qemu-devel@nongnu.org Cc: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, aurelien@aurel32.net, pbonzini@redhat.com, stefanha@redhat.com, crosa@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> Subject: [PATCH v2 18/30] configure: explicitly set cflags for --disable-pie Date: Wed, 14 Sep 2022 16:59:38 +0100 Message-Id: <20220914155950.804707-19-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220914155950.804707-1-alex.bennee@linaro.org> References: <20220914155950.804707-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
testing/next pre-PR (testing update and mips deprecation)
|
expand
|
On 9/14/22 16:59, Alex Bennée wrote: > This is working around current limitation of Meson's handling of > --disable-pie. > > Signed-off-by: Alex Bennée<alex.bennee@linaro.org> > Cc: Paolo Bonzini<pbonzini@redhat.com> > --- > configure | 6 ++++++ > 1 file changed, 6 insertions(+) Ah, yes, thanks. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
diff --git a/configure b/configure index 575dde1c1f..6c169b23b5 100755 --- a/configure +++ b/configure @@ -1394,6 +1394,12 @@ else pie="no" fi +# Meson currently only handles pie as a boolean for now so if we have +# explicitly disabled PIE we need to extend our cflags because it wont. +if test "$pie" = "no"; then + QEMU_CFLAGS="-fno-pie -no-pie $QEMU_CFLAGS" +fi + # Detect support for PT_GNU_RELRO + DT_BIND_NOW. # The combination is known as "full relro", because .got.plt is read-only too. if compile_prog "" "-Wl,-z,relro -Wl,-z,now" ; then
This is working around current limitation of Meson's handling of --disable-pie. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Cc: Paolo Bonzini <pbonzini@redhat.com> --- configure | 6 ++++++ 1 file changed, 6 insertions(+)