From: Mark Wielaard Date: Fri, 23 Aug 2019 20:17:57 +0000 (+0200) Subject: arm64 fixup for statx support on older kernels X-Git-Tag: VALGRIND_3_16_0~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2658f71c3d09034068bc6f7a115f44ce9535ad8;p=thirdparty%2Fvalgrind.git arm64 fixup for statx support on older kernels 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. --- diff --git a/coregrind/m_libcfile.c b/coregrind/m_libcfile.c index 5c356ade6c..c7fca4e9ac 100644 --- a/coregrind/m_libcfile.c +++ b/coregrind/m_libcfile.c @@ -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)