From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MirzI-0006Fg-8g for qemu-devel@nongnu.org; Wed, 02 Sep 2009 11:43:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MirzH-0006FF-AH for qemu-devel@nongnu.org; Wed, 02 Sep 2009 11:43:07 -0400 Received: from [199.232.76.173] (port=41245 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MirzH-0006F8-1Y for qemu-devel@nongnu.org; Wed, 02 Sep 2009 11:43:07 -0400 Received: from lechat.rtp-net.org ([88.191.19.38]:53324) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MirzG-0002S9-Le for qemu-devel@nongnu.org; Wed, 02 Sep 2009 11:43:06 -0400 From: Arnaud Patard (Rtp) Subject: Re: [Qemu-devel] [PATCH 2/2] Build *-user targets as PIE References: <1251904883-13706-1-git-send-email-kirill@shutemov.name> <1251904883-13706-2-git-send-email-kirill@shutemov.name> Date: Wed, 02 Sep 2009 17:46:38 +0200 In-Reply-To: <1251904883-13706-2-git-send-email-kirill@shutemov.name> (Kirill A. Shutemov's message of "Wed\, 2 Sep 2009 18\:21\:23 +0300") Message-ID: <87pra9ic2p.fsf@lechat.rtp-net.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Kirill A. Shutemov" Cc: qemu-devel@nongnu.org "Kirill A. Shutemov" writes: Hi, [...] > diff --git a/configure b/configure > index 0d0162a..b501526 100755 > --- a/configure > +++ b/configure > @@ -2302,6 +2302,11 @@ if test "$target_softmmu" = "yes" ; then > esac > fi > > +if test "$target_user_only" = "yes" -a "$static" = "no" ; then > + cflags="-fpie $cflags" > + ldflags="-pie $ldflags" > +fi > + Please do that on per-arch basis. For instance, pie support tends to be broken quite often on mips (afaik, it's currently broken on debian unstable). I know qemu doesn't support mips host but it doesn't mean it will never be supported - I need to find time to update to current git and fix remaining bugs in my code before sending it for merge. Unfortunately, this kind of patch will make sure it won't happen soon :( Thanks, Arnaud