https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125205
--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to H.J. Lu from comment #8) > > 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. One way to fix it may be to use #define LINK_SSP_SPEC "--push-state --as-needed -lssp_nonshared -lssp --pop-state" for Solaris.
