Turn off the stack protector for the preloader.

Mike McCormack mike at
Wed Nov 1 20:38:29 CST 2006

As discussed in bug 6550, Ubuntu switches on -fstack-protector by 
default, and the stack protector code assumes glibc has initialized %gs, 
which is not the case for binaries not linked against glibc.

wine-preloader crashes on these platforms.  This code detects whether we 
can use -fno-stack-protector to turn off the stack protector, and if so 
compiles wine-preloader with that flag.

After applying this patch, you need to run autoconf.


see:       |   14 ++++++++++++++
  loader/ |    3 ++-
  2 files changed, 16 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6e0b512c43c71890dba2d3358b0a30672d8f1a0b.diff
Type: text/x-patch
Size: 1553 bytes
Desc: not available
Url :

More information about the wine-patches mailing list