git: 9aa786cbb50e - main - src.libnames.mk: add a comment explaining libssp_nonshared

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Tue, 22 Feb 2022 21:24:57 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=9aa786cbb50e997739f31094dc8d45260f19c63c

commit 9aa786cbb50e997739f31094dc8d45260f19c63c
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-02-22 21:22:03 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-02-22 21:22:03 +0000

    src.libnames.mk: add a comment explaining libssp_nonshared
    
    libssp_nonshared is a special case for (only) i386 and power*.  Add a
    comment explaining why, based on the original commit message that added
    it.
    
    MFC after:      1 week
    Fixes:          0f61170882cb ("libssp_nonshared: use only on i386 and ppc")
    Sponsored by:   The FreeBSD Foundation
---
 share/mk/src.libnames.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/share/mk/src.libnames.mk b/share/mk/src.libnames.mk
index c37b56da18b4..26106a71715f 100644
--- a/share/mk/src.libnames.mk
+++ b/share/mk/src.libnames.mk
@@ -392,6 +392,8 @@ _DP_ztest=	geom m nvpair umem zpool pthread avl zfs_core spl zutil zfs uutil icp
 # The libc dependencies are not strictly needed but are defined to make the
 # assert happy.
 _DP_c=		compiler_rt
+# Use libssp_nonshared only on i386 and power*.  Other archs emit direct calls
+# to __stack_chk_fail, not __stack_chk_fail_local provided by libssp_nonshared.
 .if ${MK_SSP} != "no" && \
     (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH:Mpower*} != "")
 _DP_c+=		ssp_nonshared