Switched from using -fstack-protector to -fstack-protector-strong compile
flag. Tested with both GCC and Clang.
This commit is contained in:
parent
56e1041034
commit
108b31e284
@ -42,10 +42,12 @@ sysvinit (2.90) UNRELEASED; urgency=low
|
|||||||
* Fixed compile error on Fedora 28 where crypt() will not link due to
|
* Fixed compile error on Fedora 28 where crypt() will not link due to
|
||||||
undocumented dependency change.
|
undocumented dependency change.
|
||||||
* Updated Makefile to make sure correct version number and correct
|
* 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
|
tarballs with old version information when trying to create beta
|
||||||
snapshot.
|
snapshot.
|
||||||
* Updated version information in init.c
|
* 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
|
sysvinit (2.89) world; urgency=low
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
CPPFLAGS =
|
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 += -W -Wall -Wunreachable-code -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE -D_GNU_SOURCE
|
||||||
override CFLAGS += $(shell getconf LFS_CFLAGS)
|
override CFLAGS += $(shell getconf LFS_CFLAGS)
|
||||||
STATIC =
|
STATIC =
|
||||||
|
Loading…
Reference in New Issue
Block a user