From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MjBnA-0000tt-ER for qemu-devel@nongnu.org; Thu, 03 Sep 2009 08:51:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MjBn6-0000tR-1R for qemu-devel@nongnu.org; Thu, 03 Sep 2009 08:51:55 -0400 Received: from [199.232.76.173] (port=39927 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MjBn5-0000tO-QV for qemu-devel@nongnu.org; Thu, 03 Sep 2009 08:51:51 -0400 Received: from an-out-0708.google.com ([209.85.132.244]:55864) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MjBn5-0006Qg-Ac for qemu-devel@nongnu.org; Thu, 03 Sep 2009 08:51:51 -0400 Received: by an-out-0708.google.com with SMTP id c38so657097ana.37 for ; Thu, 03 Sep 2009 05:51:50 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <87ljkxibay.fsf@lechat.rtp-net.org> <1251980117-10089-1-git-send-email-kirill@shutemov.name> Date: Thu, 3 Sep 2009 15:51:50 +0300 Message-ID: From: "Kirill A. Shutemov" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Re: [PATCH v2] Build *-user targets as PIE List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: Paolo Bonzini , Riku Voipio , qemu-devel@nongnu.org, Arnaud Patard On Thu, Sep 3, 2009 at 3:07 PM, Juan Quintela wrote: > "Kirill A. Shutemov" wrote: >> Now we can drop link hack for i386 and fix text relocations on i386 >> host. > > Still not good enough :( > > Fedora 11 here. =C2=A0I got this error: > > /usr/bin/ld: main.o: relocation R_X86_64_TPO =C2=A0LINK =C2=A0arm-linux-u= ser/qemu-arm > /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 > make[1]: *** [qemu-arm] Error 1 > make: *** [subdir-arm-linux-user] Error 2 > > (I got it for all the -linux-user targets) What version of binutils do you have? It seems your binutils is buggy.