From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmSOZ-0004sC-9S for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:12:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmSOU-0004mQ-3b for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:12:02 -0400 Received: from [199.232.76.173] (port=57481 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmSOU-0004m5-0Y for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:11:58 -0400 Received: from mail-yx0-f190.google.com ([209.85.210.190]:59237) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MmSOR-00034e-9o for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:11:55 -0400 Received: by yxe28 with SMTP id 28so2208879yxe.19 for ; Sat, 12 Sep 2009 06:11:54 -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 16:11:54 +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 4:01 PM, Blue Swirl wrote: > On Sat, Sep 12, 2009 at 3:18 PM, Kirill A. Shutemov > wrote: >> On Sat, Sep 12, 2009 at 12:57 PM, Blue Swirl wrot= e: >>> 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.gi= t;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? This is a regression, so I guess most of distributions have sane binutils, except distributions which use fedora-based binutils(like ALT Linux). > Maybe the PIE toolchain check should be restored? Binutils(and other part of toolchain) can be broken in many ways. Provide test for every possible bug is overkill for qemu.