qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/2] Build *-user targets as PIE


From: Rtp
Subject: Re: [Qemu-devel] [PATCH 2/2] Build *-user targets as PIE
Date: Wed, 02 Sep 2009 17:46:38 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

"Kirill A. Shutemov" <address@hidden> writes:

Hi,

[...]

> diff --git a/configure b/configure
> index 0d0162a..b501526 100755
> --- a/configure
> +++ b/configure
> @@ -2302,6 +2302,11 @@ if test "$target_softmmu" = "yes" ; then
>    esac
>  fi
>  
> +if test "$target_user_only" = "yes" -a "$static" = "no" ; then
> +  cflags="-fpie $cflags"
> +  ldflags="-pie $ldflags"
> +fi
> +

Please do that on per-arch basis. For instance, pie support tends to
be broken quite often on mips (afaik, it's currently broken on debian
unstable). I know qemu doesn't support mips host but it doesn't mean it
will never be supported - I need to find time to update to current git
and fix remaining bugs in my code before sending it for merge.
Unfortunately, this kind of patch will make sure it won't happen soon :(


Thanks,
Arnaud




reply via email to

[Prev in Thread] Current Thread [Next in Thread]