]> sourceware.org Git - glibc.git/commitdiff
Remove PR_TAGGED_ADDR_ENABLE from sys/prctl.h
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 2 Feb 2021 15:02:09 +0000 (15:02 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 19 Mar 2021 11:46:20 +0000 (11:46 +0000)
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.

sysdeps/unix/sysv/linux/sys/prctl.h

index 00817ff0f14c617d5a62a2cbb6779ac3e95d8542..c9048c7cdb3e4d2654c74ec32599f6e4a8f8fee5 100644 (file)
    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)
This page took 0.048338 seconds and 5 git commands to generate.