[scudo] Bump the Android API level requirement to 21 for getauxval
authorKostya Kortchinsky <kostyak@google.com>
Fri, 10 Nov 2017 19:01:17 +0000 (19:01 +0000)
committerKostya Kortchinsky <kostyak@google.com>
Fri, 10 Nov 2017 19:01:17 +0000 (19:01 +0000)
commit36e56785b42c02831a13459d98c5b86c4f3656d9
tree37d072923bc3fc757bd05edadb1f43323432ed8d
parentdb5757e68b99314e43d7c7539fa92bc14147c949
[scudo] Bump the Android API level requirement to 21 for getauxval

Summary:
`getauxval` was introduced in 18 & 21 depending on the architecture. Bump the
requirement to 21.

It also turns out that the NDK is finicky: NDK r13b doesn't include sys/auxv.h
when creating a standalone toolchain at API level 19 for ARM. So 18 didn't work
well with older NDKs.

Reviewers: alekseyshl

Reviewed By: alekseyshl

Subscribers: aemerson, srhines, llvm-commits, kristof.beyls

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

llvm-svn: 317907
compiler-rt/lib/scudo/scudo_utils.cpp