]> git.ipfire.org Git - thirdparty/glibc.git/commit - aclocal.m4
Work even with compilers which enable -fstack-protector by default [BZ #7065]
authorNick Alcock <nick.alcock@oracle.com>
Mon, 26 Dec 2016 09:08:54 +0000 (10:08 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 26 Dec 2016 09:10:58 +0000 (10:10 +0100)
commit66a704c43cfec810fea67a6959f2d1c94f4d594f
tree174dece4f1f3b73874398c029f8aa96911632e9d
parentbc174f20b83d19167ecac14ce0762eddbe47cc64
Work even with compilers which enable -fstack-protector by default [BZ #7065]

With all the machinery we just added, we can easily arrange to work even
when the compiler passes in -fstack-protector automatically: all the
necessary bits of glibc are always compiled with -fno-stack-protector
now.

So tear out the check in configure, and add appropriate calls to
-fno-stack-protector in tests that need them (largely those that use
-nostdlib), since we don't yet have a __stack_chk_fail that those
tests can rely upon.  (GCC often provides one, but we cannot rely on
this, especially not when bootstrapping.)

When stack protection is disabled, explicitly pass -fno-stack-protector
to everything, to stop a compiler hacked to enable it from inserting
calls to __stack_chk_fail via the PLT in every object file.
ChangeLog
aclocal.m4
configure
configure.ac