|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH] configure: build position independent executables across the board, by default |
Date: | Mon, 14 Nov 2011 17:58:14 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1 |
On 11/14/2011 04:30 PM, Avi Kivity wrote:
+if test "$pie" = "yes" ; then + cat> $TMPC<< EOF +int main(void) { return 0; } +EOF + if compile_prog "-fPIE -dPIE" "-Wl,-pie"; then
Uppercase d.
+ QEMU_CFLAGS="-fPIE -DPIE $QEMU_CFLAGS" + LDFLAGS="-Wl,-pie $LDFLAGS" + if compile_prog "-fPIE -DPIE" "-Wl,-pie -Wl,-z,relro -Wl,-z,now"; then + LDFLAGS="-Wl,-z,relro -Wl,-z,now $LDFLAGS" + fi + else + echo "Diabling PIE due missing toolchain support"
Disabling.
+ pie="no" + fi +fi +
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |