[dm-devel] [PATCH 1/2] multipath-tools: Replace -fstack-protector with -fstack-protector-strong
Xose Vazquez Perez
xose.vazquez at gmail.com
Tue Dec 6 01:26:26 UTC 2016
-fstack-protector-strong
Like -fstack-protector but includes additional functions to be protected
--- those that have local array definitions, or have references to local
frame addresses.
gcc-4.9.0(April 22, 2014) required.
This flag is used by default in Fedora:
https://pagure.io/fesco/issue/1128
Cc: Christophe Varoqui <christophe.varoqui at opensvc.com>
Cc: device-mapper development <dm-devel at redhat.com>
Signed-off-by: Xose Vazquez Perez <xose.vazquez at gmail.com>
---
Makefile.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.inc b/Makefile.inc
index e7f4e05..fa3c595 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -63,7 +63,7 @@ INSTALL_PROGRAM = install
OPTFLAGS = -O2 -g -pipe -Wall -Wextra -Wformat=2 \
-Wno-sign-compare -Wno-unused-parameter -Wno-clobbered \
- -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector \
+ -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong \
--param=ssp-buffer-size=4
CFLAGS = $(OPTFLAGS) -fPIC -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\"
--
2.11.0
More information about the dm-devel
mailing list