about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-07-11 13:40:56 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-07-12 07:53:09 -0700
commit06164c6773799f4003fd4716d542411bdf57006e (patch)
treef89ec57da10a610430db7295dc2de00c04ecf80d
parent30200427a99e5ddac9bad08599418d44d54aa9aa (diff)
downloadglibc-06164c6773799f4003fd4716d542411bdf57006e.tar.gz
glibc-06164c6773799f4003fd4716d542411bdf57006e.tar.xz
glibc-06164c6773799f4003fd4716d542411bdf57006e.zip
Compile tst-ssp-1.c with -fstack-protector-all
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.
-rw-r--r--ChangeLog5
-rw-r--r--debug/Makefile2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8d5d684950..52fd1d90bb 100644
--- 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]
diff --git a/debug/Makefile b/debug/Makefile
index c6d78727f0..ce5fa8801f 100644
--- a/debug/Makefile
+++ b/debug/Makefile
@@ -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 \