From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmPMt-0001O9-FQ for qemu-devel@nongnu.org; Sat, 12 Sep 2009 05:58:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmPMo-0001Nx-Of for qemu-devel@nongnu.org; Sat, 12 Sep 2009 05:58:06 -0400 Received: from [199.232.76.173] (port=34607 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmPMo-0001Nu-Hi for qemu-devel@nongnu.org; Sat, 12 Sep 2009 05:58:02 -0400 Received: from mail-ew0-f221.google.com ([209.85.219.221]:50707) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MmPMn-0001GV-Vz for qemu-devel@nongnu.org; Sat, 12 Sep 2009 05:58:02 -0400 Received: by ewy21 with SMTP id 21so1615888ewy.8 for ; Sat, 12 Sep 2009 02:58:01 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1252711075-32404-3-git-send-email-kirill@shutemov.name> 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 12:57:41 +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 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 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: LINK ppc-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?