[sanitizer] Allow Fuchsia to use getauxval
authorKostya Kortchinsky <kostyak@google.com>
Fri, 19 Jan 2018 22:33:30 +0000 (22:33 +0000)
committerKostya Kortchinsky <kostyak@google.com>
Fri, 19 Jan 2018 22:33:30 +0000 (22:33 +0000)
commit0fb904325a0402308ce02654f2202ebee8d1dd1d
tree19748965d7a9bcadb870fe4b9894304aca6a185a
parentb72f48452c528daf3b9fb7604a640e4e14e3f405
[sanitizer] Allow Fuchsia to use getauxval

Summary:
Fuchsia has `getauxval` (https://fuchsia.googlesource.com/zircon/+/master/third_party/ulib/musl/include/sys/auxv.h,
https://fuchsia.googlesource.com/zircon/+/master/third_party/ulib/musl/src/misc/getauxval.c)
so set SANITIZER_USE_GETAUXVAL to 1 for this platform.

Reviewers: alekseyshl, flowerhack

Reviewed By: flowerhack

Subscribers: srhines, kubamracek, #sanitizers, llvm-commits

Differential Revision: https://reviews.llvm.org/D42315

llvm-svn: 323002
compiler-rt/lib/sanitizer_common/sanitizer_getauxval.h