about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/sys/prctl.h
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2021-02-02 15:02:09 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2021-04-14 09:22:26 +0100
commit12ff80b312c11b0284df7a1c5cb9be6418f85228 (patch)
tree3a9f2cda259564b9f56af547b07fc9289145903f /sysdeps/unix/sysv/linux/sys/prctl.h
parent1bf38e7260c2cd3e40e118c1f1ea28de182dc751 (diff)
downloadglibc-12ff80b312c11b0284df7a1c5cb9be6418f85228.tar.gz
glibc-12ff80b312c11b0284df7a1c5cb9be6418f85228.tar.xz
glibc-12ff80b312c11b0284df7a1c5cb9be6418f85228.zip
Remove PR_TAGGED_ADDR_ENABLE from sys/prctl.h
The value of PR_TAGGED_ADDR_ENABLE was incorrect in the installed
headers and the prctl command macros were missing that are needed
for it to be useful (PR_SET_TAGGED_ADDR_CTRL).  Linux headers have
the definitions since 5.4 so it's widely available, we don't need
to repeat these definitions.  The remaining definitions are from
Linux 5.10.

To build glibc with --enable-memory-tagging, Linux 5.4 headers and
binutils 2.33.1 or newer is needed.

Reviewed-by: DJ Delorie <dj@redhat.com>
(cherry picked from commit f4596d9540021265a99697fceef8a434c47e8bcf)
Diffstat (limited to 'sysdeps/unix/sysv/linux/sys/prctl.h')
-rw-r--r--sysdeps/unix/sysv/linux/sys/prctl.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/sys/prctl.h b/sysdeps/unix/sysv/linux/sys/prctl.h
index 00817ff0f1..c9048c7cdb 100644
--- a/sysdeps/unix/sysv/linux/sys/prctl.h
+++ b/sysdeps/unix/sysv/linux/sys/prctl.h
@@ -25,10 +25,6 @@
    we're picking up...  */
 
 /* Memory tagging control operations (for AArch64).  */
-#ifndef PR_TAGGED_ADDR_ENABLE
-# define PR_TAGGED_ADDR_ENABLE	(1UL << 8)
-#endif
-
 #ifndef PR_MTE_TCF_SHIFT
 # define PR_MTE_TCF_SHIFT	1
 # define PR_MTE_TCF_NONE	(0UL << PR_MTE_TCF_SHIFT)