Compile tst-ssp-1.c with -fstack-protector-all
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 11 Jul 2017 20:40:56 +0000 (13:40 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 12 Jul 2017 14:53:09 +0000 (07:53 -0700)
Compile tst-ssp-1.c with -fstack-protector-all in case the the stack
protector heuristics do not instrument a thirty-byte array.

* debug/Makefile (CFLAGS-tst-ssp-1.c): Set to
-fstack-protector-all.

ChangeLog
debug/Makefile

index 8d5d684..52fd1d9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-07-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * debug/Makefile (CFLAGS-tst-ssp-1.c): Set to
+       -fstack-protector-all.
+
 2017-07-11  Chris Leonard <cjl@sugarlabs.org>
 
        [BZ #20496]
index c6d7872..ce5fa88 100644 (file)
@@ -139,7 +139,7 @@ LDFLAGS-tst-backtrace4 = -rdynamic
 LDFLAGS-tst-backtrace5 = -rdynamic
 LDFLAGS-tst-backtrace6 = -rdynamic
 
-CFLAGS-tst-ssp-1.c = -fstack-protector
+CFLAGS-tst-ssp-1.c = -fstack-protector-all
 
 tests = backtrace-tst tst-longjmp_chk tst-chk1 tst-chk2 tst-chk3 \
        tst-lfschk1 tst-lfschk2 tst-lfschk3 test-strcpy_chk test-stpcpy_chk \