Switched from using -fstack-protector to -fstack-protector-strong compile

flag. Tested with both GCC and Clang.
This commit is contained in:
Jesse Smith 2018-06-02 16:50:35 -03:00
parent 56e1041034
commit 108b31e284
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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 =