[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/3] Add configure option to compile user targe
From: |
Kirill A. Shutemov |
Subject: |
Re: [Qemu-devel] [PATCH 3/3] Add configure option to compile user targets as PIE |
Date: |
Sat, 12 Sep 2009 16:11:54 +0300 |
On Sat, Sep 12, 2009 at 4:01 PM, Blue Swirl <address@hidden> wrote:
> On Sat, Sep 12, 2009 at 3:18 PM, Kirill A. Shutemov
> <address@hidden> wrote:
>> On Sat, Sep 12, 2009 at 12:57 PM, Blue Swirl <address@hidden> wrote:
>>> On Sat, Sep 12, 2009 at 2:17 AM, Kirill A. Shutemov
>>> <address@hidden> 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?
>>>
>>
>> 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=binutils.git;a=blob;f=binutils-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.