All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@redhat.com>
To: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: Blue Swirl <blauwirbel@gmail.com>, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] user_only: compile everything with -fpie
Date: Sat, 19 Dec 2009 01:44:50 +0100	[thread overview]
Message-ID: <m3k4wjn665.fsf@neno.neno> (raw)
In-Reply-To: <cc557aab0912181626h3b47803l8ae9dd6dbaafdcd0@mail.gmail.com> (Kirill A. Shutemov's message of "Sat, 19 Dec 2009 02:26:52 +0200")

"Kirill A. Shutemov" <kirill@shutemov.name> wrote:
> ping?

Blue or Anthony, please apply.
Patch is needed to get libuser + pie working well.

Later, Juan.

> On Wed, Dec 16, 2009 at 4:20 PM, Kirill A. Shutemov
> <kirill@shutemov.name> wrote:
>> We really need compile _all_ sources for user target with -fpie when
>> use --enable-user-pie.
>>
>> It's regression introduced by commit add16157d72454.
>>
>> Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
>> Cc: Blue Swirl <blauwirbel@gmail.com>
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>> ---
>>  Makefile.user |    7 ++++++-
>>  configure     |    3 +++
>>  2 files changed, 9 insertions(+), 1 deletions(-)
>>
>> diff --git a/Makefile.user b/Makefile.user
>> index 907e74b..9e4f040 100644
>> --- a/Makefile.user
>> +++ b/Makefile.user
>> @@ -2,10 +2,15 @@
>>
>>  include ../config-host.mak
>>  include $(SRC_PATH)/rules.mak
>> +include config.mak
>>
>>  .PHONY: all
>>
>> -VPATH=$(SRC_PATH)
>> +# Do not take %.o from $(SRC_PATH), only %.c and %.h
>> +# All %.o for user targets should be built with -fpie, when
>> +# configured with --enable-user-pie, so we don't want to
>> +# take %.o from $(SRC_PATH), since they built without -fpie
>> +vpath %.c %.h $(SRC_PATH)
>>
>>  QEMU_CFLAGS+=-I..
>>
>> diff --git a/configure b/configure
>> index 273b6b7..5f463b0 100755
>> --- a/configure
>> +++ b/configure
>> @@ -2652,3 +2652,6 @@ d=libuser
>>  mkdir -p $d
>>  rm -f $d/Makefile
>>  ln -s $source_path/Makefile.user $d/Makefile
>> +if test "$static" = "no" -a "$user_pie" = "yes" ; then
>> +  echo "QEMU_CFLAGS+=-fpie" > $d/config.mak
>> +fi
>> --
>> 1.6.5.6
>>
>>

  reply	other threads:[~2009-12-19  0:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-16 14:20 [Qemu-devel] [PATCH] user_only: compile everything with -fpie Kirill A. Shutemov
2009-12-19  0:26 ` [Qemu-devel] " Kirill A. Shutemov
2009-12-19  0:44   ` Juan Quintela [this message]
2009-12-19 10:08     ` Blue Swirl
2009-12-19 13:05       ` Aurelien Jarno
2009-12-19 15:19         ` Blue Swirl
2009-12-19 15:34           ` Aurelien Jarno
2009-12-19 15:48             ` Blue Swirl
2009-12-19 16:03               ` Aurelien Jarno
2009-12-19 15:58             ` Aurelien Jarno
2009-12-19 16:00               ` Blue Swirl

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=m3k4wjn665.fsf@neno.neno \
    --to=quintela@redhat.com \
    --cc=blauwirbel@gmail.com \
    --cc=kirill@shutemov.name \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.