summaryrefslogtreecommitdiffstats
path: root/system/xen/patches/qemu-xen-no-pie.diff
diff options
context:
space:
mode:
Diffstat (limited to 'system/xen/patches/qemu-xen-no-pie.diff')
-rw-r--r--system/xen/patches/qemu-xen-no-pie.diff26
1 files changed, 26 insertions, 0 deletions
diff --git a/system/xen/patches/qemu-xen-no-pie.diff b/system/xen/patches/qemu-xen-no-pie.diff
new file mode 100644
index 0000000000..20db095f75
--- /dev/null
+++ b/system/xen/patches/qemu-xen-no-pie.diff
@@ -0,0 +1,26 @@
+--- xen-4.15.0/tools/qemu-xen/configure.orig 2020-11-06 16:30:18.000000000 +0100
++++ xen-4.15.0/tools/qemu-xen/configure 2021-04-10 01:32:39.533566877 +0200
+@@ -2184,7 +2184,6 @@
+ # Check we support --no-pie first; we will need this for building ROMs.
+ if compile_prog "-Werror -fno-pie" "-no-pie"; then
+ CFLAGS_NOPIE="-fno-pie"
+- LDFLAGS_NOPIE="-no-pie"
+ fi
+
+ if test "$static" = "yes"; then
+@@ -2200,7 +2199,6 @@
+ fi
+ elif test "$pie" = "no"; then
+ QEMU_CFLAGS="$CFLAGS_NOPIE $QEMU_CFLAGS"
+- QEMU_LDFLAGS="$LDFLAGS_NOPIE $QEMU_LDFLAGS"
+ elif compile_prog "-Werror -fPIE -DPIE" "-pie"; then
+ QEMU_CFLAGS="-fPIE -DPIE $QEMU_CFLAGS"
+ QEMU_LDFLAGS="-pie $QEMU_LDFLAGS"
+@@ -7996,7 +7994,6 @@
+ echo "QEMU_CFLAGS += -Wbitwise -Wno-transparent-union -Wno-old-initializer -Wno-non-pointer-null" >> $config_host_mak
+ fi
+ echo "QEMU_LDFLAGS=$QEMU_LDFLAGS" >> $config_host_mak
+-echo "LDFLAGS_NOPIE=$LDFLAGS_NOPIE" >> $config_host_mak
+ echo "LD_REL_FLAGS=$LD_REL_FLAGS" >> $config_host_mak
+ echo "LD_I386_EMULATION=$ld_i386_emulation" >> $config_host_mak
+ echo "LIBS+=$LIBS" >> $config_host_mak