[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1.0] configure: build position independent execu
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 1.0] configure: build position independent executables across the board, by default |
Date: |
Mon, 14 Nov 2011 14:59:47 +0000 |
On 14 November 2011 14:41, Avi Kivity <address@hidden> wrote:
> +if test "$pie" = "yes" ; then
> + QEMU_CFLAGS="-fPIE -DPIE $QEMU_CFLAGS"
> + LDFLAGS="-Wl,-pie $LDFLAGS"
> + cat > $TMPC << EOF
> +int main(void) { return 0; }
> +EOF
> + if compile_prog "-fPIE -DPIE" "-Wl,-pie -Wl,-z,relro -Wl,-z,now"; then
> + LDFLAGS="-Wl,-z,relro -Wl,-z,now $LDFLAGS"
> + fi
> +fi
It would be good to see some testing that this works on all
our random oddball hosts (MacOSX, for instance, which doesn't
use GNU ld) and architectures we apply this...
-- PMM
- [Qemu-devel] [PATCH 1.0] configure: build position independent executables across the board, by default, Avi Kivity, 2011/11/14
- Re: [Qemu-devel] [PATCH 1.0] configure: build position independent executables across the board, by default,
Peter Maydell <=
- Re: [Qemu-devel] [PATCH 1.0] configure: build position independent executables across the board, by default, Peter Maydell, 2011/11/14
- Re: [Qemu-devel] [PATCH 1.0] configure: build position independent executables across the board, by default, Avi Kivity, 2011/11/14
- Re: [Qemu-devel] [PATCH 1.0] configure: build position independent executables across the board, by default, Peter Maydell, 2011/11/14
- Re: [Qemu-devel] [PATCH 1.0] configure: build position independent executables across the board, by default, Avi Kivity, 2011/11/14
- Re: [Qemu-devel] [PATCH 1.0] configure: build position independent executables across the board, by default, Peter Maydell, 2011/11/14
- Re: [Qemu-devel] [PATCH 1.0] configure: build position independent executables across the board, by default, Avi Kivity, 2011/11/15