From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSqMk-0007Tv-Fo for qemu-devel@nongnu.org; Tue, 22 Nov 2011 08:26:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSqMj-0003fx-Ah for qemu-devel@nongnu.org; Tue, 22 Nov 2011 08:26:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:64027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSqMi-0003fm-Uv for qemu-devel@nongnu.org; Tue, 22 Nov 2011 08:26:25 -0500 Message-ID: <4ECBA2FB.9020705@redhat.com> Date: Tue, 22 Nov 2011 14:26:19 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: <1321965139-31265-1-git-send-email-avi@redhat.com> In-Reply-To: <1321965139-31265-1-git-send-email-avi@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1.0] configure: tighten pie toolchain support test for tls variables List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Paolo Bonzini , qemu-devel@nongnu.org On 11/22/11 13:32, Avi Kivity wrote: > Some toolchains don't support pie properly when tls variables are > in use. Disallow pie when such toolchains are detected. > > Signed-off-by: Avi Kivity > --- > configure | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/configure b/configure > index 75e1f10..7e6c640 100755 > --- a/configure > +++ b/configure > @@ -1120,7 +1120,10 @@ fi > > if test "$pie" != "no" ; then > cat > $TMPC << EOF > -int main(void) { return 0; } > + > +static __thread tls_var; > + > +int main(void) { return tls_var; } > EOF > if compile_prog "-fPIE -DPIE" "-pie"; then > QEMU_CFLAGS="-fPIE -DPIE $QEMU_CFLAGS" Survived testbuild. thanks, Gerd