From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MjDv2-00060U-Hm for qemu-devel@nongnu.org; Thu, 03 Sep 2009 11:08:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjDux-0005tT-Ty for qemu-devel@nongnu.org; Thu, 03 Sep 2009 11:08:11 -0400 Received: from [199.232.76.173] (port=36483 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjDux-0005tA-I3 for qemu-devel@nongnu.org; Thu, 03 Sep 2009 11:08:07 -0400 Received: from mail-yx0-f201.google.com ([209.85.210.201]:39742) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MjDux-0005rN-7Y for qemu-devel@nongnu.org; Thu, 03 Sep 2009 11:08:07 -0400 Received: by yxe39 with SMTP id 39so1112421yxe.18 for ; Thu, 03 Sep 2009 08:08:06 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <200909031539.37611.paul@codesourcery.com> References: <87ljkxibay.fsf@lechat.rtp-net.org> <1251980117-10089-1-git-send-email-kirill@shutemov.name> <200909031539.37611.paul@codesourcery.com> Date: Thu, 3 Sep 2009 18:08:06 +0300 Message-ID: Subject: Re: [Qemu-devel] [PATCH v2] Build *-user targets as PIE From: "Kirill A. Shutemov" 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: Paul Brook Cc: Paolo Bonzini , Riku Voipio , qemu-devel@nongnu.org, Arnaud Patard , Juan Quintela On Thu, Sep 3, 2009 at 5:39 PM, Paul Brook wrote: > On Thursday 03 September 2009, Kirill A. Shutemov wrote: >> Now we can drop link hack for i386 and fix text relocations on i386 host= . >> >> v2: >> =C2=A0 - Add configure options do enable/disable PIE for usermode target= s. >> =C2=A0 =C2=A0 Disabling can be useful if you build uswing toolchain whic= h has >> =C2=A0 =C2=A0 broken PIE support. PIE for usermode targets enabled by de= fault. > > This isn't as useful as you might think. > > How do you stop the host dynamic linker loading qemu where the guest > application expects to be loaded? At least it not worse that it was. For kernel qemu with the linking hack lo= oks like PIE and it can load it at random address, doesn't it? P.S. I press "reply" instead "reply all" first time.