From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmSF4-0001I2-Nk for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:02:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmSF0-0001H4-Uo for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:02:12 -0400 Received: from [199.232.76.173] (port=45151 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmSF0-0001Gs-L6 for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:02:10 -0400 Received: from ey-out-1920.google.com ([74.125.78.147]:31662) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MmSF0-0001Sq-1Z for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:02:10 -0400 Received: by ey-out-1920.google.com with SMTP id 13so446114eye.14 for ; Sat, 12 Sep 2009 06:02:09 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1252711075-32404-1-git-send-email-kirill@shutemov.name> <1252711075-32404-2-git-send-email-kirill@shutemov.name> <1252711075-32404-3-git-send-email-kirill@shutemov.name> From: Blue Swirl Date: Sat, 12 Sep 2009 16:01:49 +0300 Message-ID: Subject: Re: [Qemu-devel] [PATCH 3/3] Add configure option to compile user targets as PIE 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 On Sat, Sep 12, 2009 at 3:18 PM, Kirill A. Shutemov wrote: > On Sat, Sep 12, 2009 at 12:57 PM, Blue Swirl wrote= : >> On Sat, Sep 12, 2009 at 2:17 AM, Kirill A. Shutemov >> wrote: >>> Build uset targers as true PIE if user want to keep qemu >>> self-virtualizable. >> >> With PIE enabled, I get the following error: >> =C2=A0LINK =C2=A0ppc-linux-user/qemu-ppc >> /usr/bin/ld: main.o: relocation R_X86_64_TPOFF32 against `thread_env' >> can not be used when making a shared object; recompile with -fPIC >> main.o: could not read symbols: Bad value >> collect2: ld returned 1 exit status >> >> Maybe -fPIC should be used as well? >> > > Your binutils(fedora, I guess) is buggy. Please apply this patch or do > not enable PIE: > http://git.altlinux.org/people/kas/packages/binutils.git?p=3Dbinutils.git= ;a=3Dblob;f=3Dbinutils-2.19.51.0.14-alt-tls-pie.patch > Looks like a very recent fix (< 2 months). Can we expect that the builders already have the fixed version? Maybe the PIE toolchain check should be restored?