]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a chicken-and-egg problem: this files implements SSP support,
authorRuslan Ermilov <ru@FreeBSD.org>
Thu, 26 Jun 2008 07:52:45 +0000 (07:52 +0000)
committerRuslan Ermilov <ru@FreeBSD.org>
Thu, 26 Jun 2008 07:52:45 +0000 (07:52 +0000)
commitd03c587ffaadfdd98a8f80a43540e8507b6ef136
treebe33cabf41774f2cce52ff453a59c8e7ea375148
parent34a087543a115913db4641a79d3a3e45a76f0eac
Fix a chicken-and-egg problem: this files implements SSP support,
so we cannot compile it with -fstack-protector[-all] flags (or
it will self-recurse); this is ensured in sys/conf/files.  This
OTOH means that checking for defines __SSP__ and __SSP_ALL__ to
determine if we should be compiling the support is impossible
(which it was trying, resulting in an empty object file).  Fix
this by always compiling the symbols in this files.  It's good
because it allows us to always have SSP support, and then compile
with SSP selectively.

Repoted by: tinderbox
sys/kern/stack_protector.c