Skip to content

Commit

Permalink
src.libnames.mk: add a comment explaining libssp_nonshared
Browse files Browse the repository at this point in the history
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:		0f61170 ("libssp_nonshared: use only on i386 and ppc")
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 9aa786c)
  • Loading branch information
emaste committed Mar 1, 2022
1 parent 226bb05 commit f1b015c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions share/mk/src.libnames.mk
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,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
Expand Down

0 comments on commit f1b015c

Please sign in to comment.