aarch64: Use future HWCAP2_MTE in ifunc resolver
commit2dc33b928b389f50e7fd8cadd952b79112a071ab
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 24 Jul 2020 11:37:23 +0000 (24 12:37 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 27 Jul 2020 11:54:22 +0000 (27 12:54 +0100)
treed45d06bad167b033dbc929b320a8e3171390827e
parent180d5a045f6c2e245beafef3e2036bd7286c8c17
aarch64: Use future HWCAP2_MTE in ifunc resolver

Make glibc MTE-safe on systems where MTE is available. This allows
using heap tagging with an LD_PRELOADed malloc implementation that
enables MTE. We don't document this as guaranteed contract yet, so
glibc may not be MTE safe when HWCAP2_MTE is set (older glibcs
certainly aren't). This is mainly for testing and debugging.

The HWCAP flag is not exposed in public headers until Linux adds it
to its uapi. The HWCAP value reservation will be in Linux 5.9.
sysdeps/aarch64/multiarch/strlen.c