]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
arm64 fixup for statx support on older kernels
authorMark Wielaard <mark@klomp.org>
Fri, 23 Aug 2019 20:17:57 +0000 (22:17 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 23 Aug 2019 20:17:57 +0000 (22:17 +0200)
Turns out (older) arm64 linux kernels don't have statx, but also not
stat64 and no stat syscalls.  It uses fstatat instead. The new statx
patch also added a check for stat.  So That needs a special case for
arm64.

Follow up for bug #400593.

coregrind/m_libcfile.c

index 5c356ade6cdfc77813eeb412d6dff06d12d16faa..c7fca4e9ac9e554aaa1dabadd16fe21dfb2363d1 100644 (file)
@@ -393,7 +393,7 @@ SysRes VG_(stat) ( const HChar* file_name, struct vg_stat* vgbuf )
      }
    }
 #  endif /* defined(__NR_stat64) */
-#  if defined(__NR_stat)
+#  if defined(__NR_stat) || defined(VGP_arm64_linux)
    /* This is the fallback ("vanilla version"). */
    { struct vki_stat buf;
 #    if defined(VGP_arm64_linux)