aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/freebsd.h
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2015-01-22 20:45:59 +0000
committerJakub Jelinek <jakub@gcc.gnu.org>2015-01-22 21:45:59 +0100
commit33eaef4bf7f7b0650236c6ce2f5512344b3acbbf (patch)
tree50656c1f5d0fdc2f836eb9a8352cb3ff241e1902 /gcc/config/freebsd.h
parent19ac475f49151476e2570b737f3ba31896417e89 (diff)
downloadgcc-33eaef4bf7f7b0650236c6ce2f5512344b3acbbf.zip
gcc-33eaef4bf7f7b0650236c6ce2f5512344b3acbbf.tar.gz
gcc-33eaef4bf7f7b0650236c6ce2f5512344b3acbbf.tar.bz2
gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit for !TARGET_LIBC_PROVIDES_SSP version and...
* gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit for !TARGET_LIBC_PROVIDES_SSP version and -fstack-protector-{all,strong,explicit} otherwise. * config/freebsd.h (LINK_SSP_SPEC): Handle -fstack-protector-{strong,explicit}. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r220014
Diffstat (limited to 'gcc/config/freebsd.h')
-rw-r--r--gcc/config/freebsd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/freebsd.h b/gcc/config/freebsd.h
index 215451e..0e8e63e 100644
--- a/gcc/config/freebsd.h
+++ b/gcc/config/freebsd.h
@@ -49,7 +49,9 @@ along with GCC; see the file COPYING3. If not see
#endif
#ifdef TARGET_LIBC_PROVIDES_SSP
-#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all:-lssp_nonshared}"
+#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
+ "|fstack-protector-strong|fstack-protector-explicit" \
+ ":-lssp_nonshared}"
#endif
#undef TARGET_LIBC_HAS_FUNCTION