qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: qemu-devel@nongnu.org
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	[thread overview]
Message-ID: <cc557aab0909120611y1900ab55ra95164cbc09234bd@mail.gmail.com> (raw)
In-Reply-To: <f43fc5580909120601n1aa2679fn8803c8ecbcea2730@mail.gmail.com>

On Sat, Sep 12, 2009 at 4:01 PM, Blue Swirl <blauwirbel@gmail.com> wrote:
> On Sat, Sep 12, 2009 at 3:18 PM, Kirill A. Shutemov
> <kirill@shutemov.name> wrote:
>> On Sat, Sep 12, 2009 at 12:57 PM, Blue Swirl <blauwirbel@gmail.com> wrote:
>>> On Sat, Sep 12, 2009 at 2:17 AM, Kirill A. Shutemov
>>> <kirill@shutemov.name> 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.

      reply	other threads:[~2009-09-12 13:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-11 23:17 [Qemu-devel] [PATCH 1/3] Do not link usermode targets with libhw*.a Kirill A. Shutemov
2009-09-11 23:17 ` [Qemu-devel] [PATCH 2/3] Fix text relocations in linux-user targets Kirill A. Shutemov
2009-09-11 23:17   ` [Qemu-devel] [PATCH 3/3] Add configure option to compile user targets as PIE Kirill A. Shutemov
2009-09-12  9:57     ` Blue Swirl
2009-09-12 12:18       ` Kirill A. Shutemov
2009-09-12 13:01         ` Blue Swirl
2009-09-12 13:11           ` Kirill A. Shutemov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cc557aab0909120611y1900ab55ra95164cbc09234bd@mail.gmail.com \
    --to=kirill@shutemov.name \
    --cc=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).