mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
config: Allow memory tagging to be enabled when configuring glibc
This patch adds the configuration machinery to allow memory tagging to be enabled from the command line via the configure option --enable-memory-tagging. The current default is off, though in time we may change that once the API is more stable.
This commit is contained in:
committed by
Richard Earnshaw
parent
d552058570
commit
3378408987
22
configure
vendored
22
configure
vendored
@ -676,6 +676,7 @@ build_nscd
|
||||
libc_cv_static_nss_crypt
|
||||
libc_cv_nss_crypt
|
||||
build_crypt
|
||||
memory_tagging
|
||||
experimental_malloc
|
||||
enable_werror
|
||||
all_warnings
|
||||
@ -781,6 +782,7 @@ enable_all_warnings
|
||||
enable_werror
|
||||
enable_multi_arch
|
||||
enable_experimental_malloc
|
||||
enable_memory_tagging
|
||||
enable_crypt
|
||||
enable_nss_crypt
|
||||
enable_systemtap
|
||||
@ -1450,6 +1452,8 @@ Optional Features:
|
||||
architectures
|
||||
--disable-experimental-malloc
|
||||
disable experimental malloc features
|
||||
--enable-memory-tagging enable memory tagging if supported by the
|
||||
architecture [default=no]
|
||||
--disable-crypt do not build nor install the passphrase hashing
|
||||
library, libcrypt
|
||||
--enable-nss-crypt enable libcrypt to use nss
|
||||
@ -3519,6 +3523,24 @@ fi
|
||||
|
||||
|
||||
|
||||
# Check whether --enable-memory-tagging was given.
|
||||
if test "${enable_memory_tagging+set}" = set; then :
|
||||
enableval=$enable_memory_tagging; memory_tagging=$enableval
|
||||
else
|
||||
memory_tagging=no
|
||||
fi
|
||||
|
||||
if test "$memory_tagging" = yes; then
|
||||
# Only enable this on architectures that support it.
|
||||
case $host_cpu in
|
||||
aarch64)
|
||||
$as_echo "#define USE_MTAG 1" >>confdefs.h
|
||||
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
||||
# Check whether --enable-crypt was given.
|
||||
if test "${enable_crypt+set}" = set; then :
|
||||
enableval=$enable_crypt; build_crypt=$enableval
|
||||
|
Reference in New Issue
Block a user