summaryrefslogtreecommitdiff
path: root/test/cfi
diff options
context:
space:
mode:
authorPetar Jovanovic <petar.jovanovic@imgtec.com>2017-09-15 15:18:51 +0000
committerPetar Jovanovic <petar.jovanovic@imgtec.com>2017-09-15 15:18:51 +0000
commitdc6a7dbdb4efabcd7fcbc98ba73a1576ac4aca6c (patch)
tree5da32b07c81ed4e6eb3c6dc6790fa9bfd3e7638f /test/cfi
parent3ed5043d1ed3d45009d3a2cbb3deca8f334f1318 (diff)
[sanitizer][mips64] fix MIPS64 kernel_stat_to_stat()
This patch tackles with two issues: Output stat st_[a|m|c]time fields were holding wrong values. st_[a|m|c]time fields should have contained value of seconds and instead these are filled with st_[a|m|c]time_nsec fields which hold nanoseconds. Build fails for MIPS64 if SANITIZER_ANDROID. Recently <sys/stat.h> from bionic introduced st_[a|m|c]time_nsec macros for compatibility with old NDKs and those clashed with the field names of the <asm/stat.h> kernel_stat structure. To fix both issues and make sure sanitizer builds on all platforms, we must un-define all compatibility macros and access the fields directly when copying the 'time' fields. Patch by Miodrag Dinic <miodrag.dinic@imgtec.com> Differential Revision: https://reviews.llvm.org/D35671 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@313360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/cfi')
0 files changed, 0 insertions, 0 deletions