OSDN Git Service

fix incompatibility with -fstack-protector-strong
authorDaniel Micay <danielmicay@gmail.com>
Sat, 4 Apr 2015 04:42:28 +0000 (00:42 -0400)
committerDaniel Micay <danielmicay@gmail.com>
Thu, 16 Jul 2015 21:07:43 +0000 (17:07 -0400)
commit96dd2b6e85e03ca9ab2600c2031490c22d5626ad
tree92f39ce36f0d4b66f5c2a93ed19dd6537d036ab2
parentcd588f847f3f23a9c60e32ab1e37c170e9f5be57
fix incompatibility with -fstack-protector-strong

The __libc_init_tls function in libc_init_common.cpp takes a reference
to a local variable so it ends up being protected. Since this happens
before TLS and the stack guard value are initialized, it breaks.

The libc_init_common code needs to be compiled with -fno-stack-protector
and can then be merged into libc_bionic.

Change-Id: Ie95ea2ff533d4af1cfad1c9bc59e49f20a8e119d
libc/Android.mk