Re: git: 4691740c69fa - main - Features/ssp.mk: Do not pass -fstack-protector as LDFLAGS

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 02 Jul 2025 18:26:58 UTC
Gleb Popov <arrowd@FreeBSD.org> writes:

>     This is backed by my own study of LLVM's code as well as this reply from
>     Flang's dev: https://discourse.llvm.org/t/flang-working-as-linker/87133/5

GCC adds -lssp_nonshared with -fstack-protector but __stack_chk_fail_local()
is only used on 32-bit archs. On FreeBSD >= 10 i386 and powerpc libc.so is
an ld(1) script which adds -lssp_nonshared while libc.a uses __weak_reference()
to avoid the dependency.

Just FYI