mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-17 13:00:43 +08:00
linux: Add MMAP_ABOVE4G from Linux 6.6 to sys/mman.h
x86 added the flag (29f890d1050fc099f) for CET enabled. Also update tst-mman-consts.py test.
This commit is contained in:
parent
f680063f30
commit
cb8c78b2ff
@ -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',
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user