From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MisFM-0006An-1F for qemu-devel@nongnu.org; Wed, 02 Sep 2009 11:59:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MisFL-0006AP-B4 for qemu-devel@nongnu.org; Wed, 02 Sep 2009 11:59:43 -0400 Received: from [199.232.76.173] (port=49660 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MisFL-0006AK-7s for qemu-devel@nongnu.org; Wed, 02 Sep 2009 11:59:43 -0400 Received: from lechat.rtp-net.org ([88.191.19.38]:44926) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MisFK-0005N6-PB for qemu-devel@nongnu.org; Wed, 02 Sep 2009 11:59:42 -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> <87pra9ic2p.fsf@lechat.rtp-net.org> Date: Wed, 02 Sep 2009 18:03:17 +0200 In-Reply-To: (Kirill A. Shutemov's message of "Wed\, 2 Sep 2009 18\:52\:26 +0300") Message-ID: <87ljkxibay.fsf@lechat.rtp-net.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: > On Wed, Sep 2, 2009 at 6:46 PM, Arnaud Patard wrote: >> "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" =3D "yes" ; then >>> =C2=A0 =C2=A0esac >>> =C2=A0fi >>> >>> +if test "$target_user_only" =3D "yes" -a "$static" =3D "no" ; then >>> + =C2=A0cflags=3D"-fpie $cflags" >>> + =C2=A0ldflags=3D"-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 i= t >> 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 >> > > Will you happy if I provide option like --disable-user-pie to configure= ? yes, it's fine as I hope that pie support will be fixed. > > P.S. Sorry I forgot to put qemu-devil into CC. qemu-_devil_ ? :) Arnaud