[Driver] Enable ShadowCallStack, not SafeStack, by default on AArch64 Fuchsia
authorLeonard Chan <leonardchan@google.com>
Mon, 28 Oct 2019 21:19:38 +0000 (14:19 -0700)
committerLeonard Chan <leonardchan@google.com>
Mon, 28 Oct 2019 21:19:38 +0000 (14:19 -0700)
commit85b718f53a3575bca2f1b7fdb1b3aaa6df7c10e3
tree3392f2898f6d50b35c051340808fd52a665cd283
parent91095fe0726e7d6bdd9c147a734f1287eb8eb8a4
[Driver] Enable ShadowCallStack, not SafeStack, by default on AArch64 Fuchsia

Submitted for mcgrathr.

On AArch64, Fuchsia fully supports both SafeStack and ShadowCallStack ABIs.
The latter is now preferred and will be the default. It's possible to
enable both simultaneously, but ShadowCallStack is believed to have most
of the practical benefit of SafeStack with less cost.

Differential Revision: https://reviews.llvm.org/D66712
clang/lib/Driver/ToolChains/Fuchsia.cpp
clang/test/Driver/fuchsia.c