Yaakov (Cygwin/X) wrote:
> Bug confirmed.  When code is compiled with -fstack-protector{,-all},
> GCC "emits extra code to check for buffer overflows, such as stack
> smashing attacks".  This extra code uses symbols from libssp, and
> therefore (at least) Cygwin's GCC specs contain:
> 
> *link_ssp:
> %{fstack-protector|fstack-protector-all:-lssp_nonshared -lssp}
> 
> Therefore, when libtool fails to pass -fstack-protector{,-all} at link
> stage, the link fails.
> 
> Patch attached.  (Yes, I have a copyright assignment on file.)

One problem:  this doesn't help with CXX, as -nostdlib is used,
circumventing this spec.  Why can't libtool leave these details to the
linker?


Yaakov
Cygwin Ports

Reply via email to