]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
linux: Add MMAP_ABOVE4G from Linux 6.6 to sys/mman.h
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 31 Oct 2023 16:32:35 +0000 (13:32 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 3 Nov 2023 13:01:46 +0000 (10:01 -0300)
x86 added the flag (29f890d1050fc099f) for CET enabled.

Also update tst-mman-consts.py test.

sysdeps/unix/sysv/linux/tst-mman-consts.py
sysdeps/unix/sysv/linux/x86/bits/mman.h

index e85ea41ee42643218d15a0084b45fb3a357ff54a..8186d7e1783c93c177535acce9b06b7388c77f56 100644 (file)
@@ -33,7 +33,7 @@ def main():
                         help='C compiler (including options) to use')
     args = parser.parse_args()
     linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc)
-    linux_version_glibc = (6, 5)
+    linux_version_glibc = (6, 6)
     sys.exit(glibcextract.compare_macro_consts(
         '#define _GNU_SOURCE 1\n'
         '#include <sys/mman.h>\n',
index b335ceff43e9f1706513ba2fecba57158e2416e6..3d356e86a0e7ffde46bff309311d30b5fce32bb2 100644 (file)
@@ -25,6 +25,7 @@
 
 /* Other flags.  */
 #define MAP_32BIT      0x40            /* Only give out 32-bit addresses.  */
+#define MAP_ABOVE4G    0x80            /* Only map above 4GB.  */
 
 #include <bits/mman-map-flags-generic.h>