https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125205

--- Comment #5 from Rainer Orth <ro at gcc dot gnu.org> ---
On Linux/i686 the __stack_chk_fail_local reference is resolved from

/usr/lib32/libc_nonshared.a

which gets dragged in by /lib/../lib32/libc.so:

/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib32/libc.so.6 /usr/lib32/libc_nonshared.a  AS_NEEDED (
/lib/ld-linux.
so.2 ) )

Solaris has no such think, so would need to link with -lssp_nonshared instead!?

Reply via email to