]> git.ipfire.org Git - thirdparty/glibc.git/commit
Configure support for --enable-stack-protector [BZ #7065]
authorNick Alcock <nick.alcock@oracle.com>
Mon, 26 Dec 2016 09:08:18 +0000 (10:08 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 26 Dec 2016 09:08:19 +0000 (10:08 +0100)
commit03baef1c9cfb396d76cae20a00aee657871e79c4
treeed115b828293aa26c4b5f338391286b25eaa955e
parent81e0662e5f2c342ffa413826b7b100d56677b613
Configure support for --enable-stack-protector [BZ #7065]

This adds =all and =strong, with obvious semantics, defaulting to off.

We don't validate the value of the option yet: that's in a later patch.
Nor do we use it for anything at this stage.

We differentiate between 'the compiler understands -fstack-protector'
and 'the user wanted -fstack-protector' so that we can pass
-fno-stack-protector in appropriate places even if the user didn't want
to turn on -fstack-protector for other parts.  (This helps us overcome
another existing limitation, that glibc doesn't work with GCCs hacked
to pass in -fstack-protector by default.)

We also arrange to set the STACK_PROTECTOR_LEVEL #define to a value
appropriate for the stack-protection level in use for each file in
particular.
ChangeLog
INSTALL
config.h.in
configure
configure.ac
manual/install.texi