From 108b31e28435fb59d883c60a0d75f5de165af32e Mon Sep 17 00:00:00 2001 From: Jesse Smith Date: Sat, 2 Jun 2018 16:50:35 -0300 Subject: [PATCH] Switched from using -fstack-protector to -fstack-protector-strong compile flag. Tested with both GCC and Clang. --- doc/Changelog | 4 +++- src/Makefile | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index 0e0dd2b..efcf0db 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -42,10 +42,12 @@ sysvinit (2.90) UNRELEASED; urgency=low * Fixed compile error on Fedora 28 where crypt() will not link due to undocumented dependency change. * Updated Makefile to make sure correct version number and correct - version of fiels are used. Makefile was pulling from master to create + version of files are used. Makefile was pulling from master to create tarballs with old version information when trying to create beta snapshot. * Updated version information in init.c + * Updated compiler flag from -fstack-protector to -fstack-protector-strong + for better protection. sysvinit (2.89) world; urgency=low diff --git a/src/Makefile b/src/Makefile index 088fe22..df0fe3e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -9,7 +9,7 @@ # CPPFLAGS = -CFLAGS ?= -ansi -O2 -fomit-frame-pointer -fstack-protector +CFLAGS ?= -ansi -O2 -fomit-frame-pointer -fstack-protector-strong override CFLAGS += -W -Wall -Wunreachable-code -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE -D_GNU_SOURCE override CFLAGS += $(shell getconf LFS_CFLAGS) STATIC =