OSDN Git Service

Fix -fstack-protector-strong for x86.
authorElliott Hughes <enh@google.com>
Tue, 8 Dec 2015 20:43:13 +0000 (12:43 -0800)
committerElliott Hughes <enh@google.com>
Tue, 8 Dec 2015 20:48:42 +0000 (12:48 -0800)
commit6c54ddd20f663de9e383fcd7b4cff93471369d87
treefd15dbb7ebc4bc7b79a32d4694b872cb53617e90
parentf0a451dcd10241c8f2ead2448ed922eb80f387f6
Fix -fstack-protector-strong for x86.

We need to ensure %gs:20 is set up early enough for -fstack-protector-strong
on x86, and that __set_tls doesn't get stack protector checks because it's a
prerequisite for them. x86 devices/emulators won't boot without this.

Bug: http://b/26073874
Change-Id: Icf0d34294648cc0c8cb406a3617befe0d45c525a
libc/Android.mk
libc/arch-x86/x86.mk
libc/bionic/libc_init_common.cpp