Update to the latest Bochs BIOS
[qemu] / pc-bios / bios-pq / 0004_no-stack-protector.patch
1 Disable stack protector for BIOS
2
3 Some distro GCCs (like Ubuntu) enable stack protection by default.  Since the
4 BIOS doesn't link against libgcc, this results in undefined references unless
5 the stack protector is disabled.
6
7 Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
8
9 diff --git a/bios/Makefile.in b/bios/Makefile.in
10 index af674b4..5c7bd4f 100644
11 --- a/bios/Makefile.in
12 +++ b/bios/Makefile.in
13 @@ -41,7 +41,7 @@ RANLIB = @RANLIB@
14  
15  BCC = bcc
16  GCC = gcc
17 -GCC32 = gcc -m32
18 +GCC32 = gcc -m32 -fno-stack-protector
19  AS86 = as86
20  
21  BX_INCDIRS = -I.. -I$(srcdir)/.. -I../iodev -I$(srcdir)/../iodev