From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmRZD-0006Ws-UF for qemu-devel@nongnu.org; Sat, 12 Sep 2009 08:18:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmRZ8-0006WK-8u for qemu-devel@nongnu.org; Sat, 12 Sep 2009 08:18:58 -0400 Received: from [199.232.76.173] (port=34876 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmRZ8-0006W9-0T for qemu-devel@nongnu.org; Sat, 12 Sep 2009 08:18:54 -0400 Received: from mail-yx0-f190.google.com ([209.85.210.190]:37198) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MmRZ7-00058z-Oz for qemu-devel@nongnu.org; Sat, 12 Sep 2009 08:18:53 -0400 Received: by yxe28 with SMTP id 28so2185324yxe.19 for ; Sat, 12 Sep 2009 05:18:52 -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> Date: Sat, 12 Sep 2009 15:18:52 +0300 Message-ID: Subject: Re: [Qemu-devel] [PATCH 3/3] Add configure option to compile 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: Blue Swirl Cc: qemu-devel@nongnu.org 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