]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
cheri: fix static linking early allocation
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 18 Jul 2022 06:12:56 +0000 (07:12 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 27 Oct 2022 13:46:51 +0000 (14:46 +0100)
Store mmap result to intptr_t instead of long.

sysdeps/unix/sysv/linux/dl-early_allocate.c

index 52c538e85afa852282e9f3c7d7490f2f0300b62f..d3e4961dbae13050185f4423f83cc47707caa829 100644 (file)
@@ -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