svn commit: r333399 - head/lib/libc
Konstantin Belousov
kib at FreeBSD.org
Wed May 9 10:33:26 UTC 2018
Author: kib
Date: Wed May 9 10:33:25 2018
New Revision: 333399
URL: https://svnweb.freebsd.org/changeset/base/333399
Log:
Now that a special no-SSP libc is used for rtld, allow
-fstack-protector-all for normal libc builds.
Submitted by: Luis Pires
Reviewed by: brooks
Differential revision: https://reviews.freebsd.org/D15340
Modified:
head/lib/libc/Makefile
Modified: head/lib/libc/Makefile
==============================================================================
--- head/lib/libc/Makefile Wed May 9 10:30:56 2018 (r333398)
+++ head/lib/libc/Makefile Wed May 9 10:33:25 2018 (r333399)
@@ -199,10 +199,6 @@ GENDIRDEPS_FILTER+= N${RELDIR:H}/msun
# Disable warnings in contributed sources.
CWARNFLAGS:= ${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/:C/^$/-w/}
-# XXX For now, we don't allow libc to be compiled with
-# -fstack-protector-all because it breaks rtld. We may want to make a librtld
-# in the future to circumvent this.
-SSP_CFLAGS:= ${SSP_CFLAGS:S/^-fstack-protector-all$/-fstack-protector/}
# Disable stack protection for SSP symbols.
SSP_CFLAGS:= ${.IMPSRC:N*/stack_protector.c:C/^.+$/${SSP_CFLAGS}/}
# Generate stack unwinding tables for cancellation points
More information about the svn-src-all
mailing list