|
From: Mark W. <ma...@so...> - 2019-08-23 20:22:51
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=d2658f71c3d09034068bc6f7a115f44ce9535ad8 commit d2658f71c3d09034068bc6f7a115f44ce9535ad8 Author: Mark Wielaard <ma...@kl...> Date: Fri Aug 23 22:17:57 2019 +0200 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: --- coregrind/m_libcfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coregrind/m_libcfile.c b/coregrind/m_libcfile.c index 5c356ad..c7fca4e 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) |