platform_bionic/libc/arch-arm64/default/bionic
Peter Collingbourne 900d07d6a1 Add arm64 string.h function implementations for use with hardware supporting MTE.
As it turns out, our "generic" arm64 implementations of certain string.h
functions are not actually generic, since they will eagerly read memory
possibly outside of the bounds of an MTE granule, which may lead to a segfault
on MTE-enabled hardware. Therefore, move the implementations into a "default"
directory and use ifuncs to select between them and a new set of "mte"
implementations, conditional on whether the hardware and kernel support MTE.

The MTE implementations are currently naive implementations written in C
but will later be replaced with a set of optimized assembly implementations.

Bug: 135772972
Change-Id: Ife37c4e0e6fd60ff20a34594cc09c541af4d1dd7
2019-10-29 16:18:31 -07:00
..
memchr.S Add arm64 string.h function implementations for use with hardware supporting MTE. 2019-10-29 16:18:31 -07:00
strchr.S Add arm64 string.h function implementations for use with hardware supporting MTE. 2019-10-29 16:18:31 -07:00
strcmp.S Add arm64 string.h function implementations for use with hardware supporting MTE. 2019-10-29 16:18:31 -07:00
strlen.S Add arm64 string.h function implementations for use with hardware supporting MTE. 2019-10-29 16:18:31 -07:00
strncmp.S Add arm64 string.h function implementations for use with hardware supporting MTE. 2019-10-29 16:18:31 -07:00
strnlen.S Add arm64 string.h function implementations for use with hardware supporting MTE. 2019-10-29 16:18:31 -07:00