Skip to content

Commit 9447d17

Browse files
committed
Auto merge of #3313 - devnexen:linux_mman_aarch64_upd, r=JohnTitor
linux glibc/musl and android adding PROT_BTI/PROT_MTE mmap flags for … …arm64.
2 parents 92a5d3e + cbeb1bd commit 9447d17

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

libc-test/semver/android-aarch64.txt

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ HWCAP2_SVEBITPERM
77
HWCAP2_SVEPMULL
88
HWCAP2_SVESHA3
99
HWCAP2_SVESM4
10+
PROT_BTI
11+
PROT_MTE
1012
SYS_arch_specific_syscall
1113
SYS_syscalls
1214
SYS_fcntl

src/unix/linux_like/android/b64/aarch64/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,9 @@ pub const SYS_fsmount: ::c_long = 432;
412412
pub const SYS_fspick: ::c_long = 433;
413413
pub const SYS_syscalls: ::c_long = 436;
414414

415+
pub const PROT_BTI: ::c_int = 0x10;
416+
pub const PROT_MTE: ::c_int = 0x20;
417+
415418
cfg_if! {
416419
if #[cfg(libc_align)] {
417420
mod align;

src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,9 @@ pub const SYS_process_mrelease: ::c_long = 448;
902902
pub const SYS_futex_waitv: ::c_long = 449;
903903
pub const SYS_set_mempolicy_home_node: ::c_long = 450;
904904

905+
pub const PROT_BTI: ::c_int = 0x10;
906+
pub const PROT_MTE: ::c_int = 0x20;
907+
905908
extern "C" {
906909
pub fn sysctl(
907910
name: *mut ::c_int,

0 commit comments

Comments
 (0)