Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/ssp don't pass -fstack-protector for these, t...



details:   https://anonhg.NetBSD.org/src/rev/e52e77c289f3
branches:  trunk
changeset: 765999:e52e77c289f3
user:      plunky <plunky%NetBSD.org@localhost>
date:      Sun Jun 12 19:22:01 2011 +0000

description:
don't pass -fstack-protector for these, the tests are actually for the
__*_chk functions included by -D_FORTIFY_SOURCE=2, and if the compiler
provides additional protection, it can mask broken functions..

(none of the _chk functions will return or process any data if
the length given is known to be larger than the buffer)

diffstat:

 tests/lib/libc/ssp/Makefile |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (18 lines):

diff -r bd7c5d9ba0ce -r e52e77c289f3 tests/lib/libc/ssp/Makefile
--- a/tests/lib/libc/ssp/Makefile       Sun Jun 12 16:35:10 2011 +0000
+++ b/tests/lib/libc/ssp/Makefile       Sun Jun 12 19:22:01 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2011/02/26 02:41:33 pgoyette Exp $
+# $NetBSD: Makefile,v 1.3 2011/06/12 19:22:01 plunky Exp $
 
 NOMAN=         # defined
 
@@ -7,8 +7,6 @@
 WARNS= 4
 
 CPPFLAGS+=     -D_FORTIFY_SOURCE=2
-CFLAGS+=       -fstack-protector-all -Wstack-protector
-LDFLAGS+=      -fstack-protector-all -Wstack-protector
 
 # Bootstrap hack
 



Home | Main Index | Thread Index | Old Index