https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125205
--- Comment #10 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- >> As I said, it seems that the test needs to be linked with -lssp_nonshared >> -lssp >> on targets withoutTARGET_LIBC_PROVIDES_SSP. However, the LINK_SSP_SPEC in >> gcc.cc doesn't do that for -mstack-protector-guard=global. Looks like a bug >> in my book. > > I don't think -mstack-protector-guard=global matters. The same test > should fail to link without -mstack-protector-guard=global on Solaris. It does, but there's no other option that could trigger the LINK_SSP_SPEC to link with -lssp_nonshared. So how else do you suggest this to happen when it's obivously necessary for the test to link?
