diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-07-18 07:12:56 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-11-22 14:31:25 +0000 |
commit | 7f6564cd800df24154650d363ff048c5869affa0 (patch) | |
tree | 8b4d66dd713b699a75e63701af6dd8e84ac530db /sysdeps | |
parent | 871fb8be0164201890e337b90159e8208abe2913 (diff) | |
download | glibc-7f6564cd800df24154650d363ff048c5869affa0.tar.gz glibc-7f6564cd800df24154650d363ff048c5869affa0.tar.xz glibc-7f6564cd800df24154650d363ff048c5869affa0.zip |
cheri: fix static linking early allocation
Store mmap result to intptr_t instead of long.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/dl-early_allocate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/dl-early_allocate.c b/sysdeps/unix/sysv/linux/dl-early_allocate.c index 52c538e85a..d3e4961dba 100644 --- a/sysdeps/unix/sysv/linux/dl-early_allocate.c +++ b/sysdeps/unix/sysv/linux/dl-early_allocate.c @@ -64,7 +64,7 @@ _dl_early_allocate (size_t size) for static PIE. */ if (result == NULL) { - long int ret; + intptr_t ret; int prot = PROT_READ | PROT_WRITE; int flags = MAP_PRIVATE | MAP_ANONYMOUS; #ifdef __NR_mmap2 |