[sanitizer] Update struct_kernel_stat_sz for mips32 and mipsn32
authorYunQiang Su <wzssyqa@gmail.com>
Wed, 26 Oct 2022 02:00:38 +0000 (19:00 -0700)
committerFangrui Song <i@maskray.me>
Wed, 26 Oct 2022 02:00:38 +0000 (19:00 -0700)
commit76b92df0d6915aa419c6856f97198df3321c35d7
treeaae9367725e0e1b83905cd6d0644827c1b008853
parent9403a8bc37baf840c2d55be1fc09b9e8bf3b6a74
[sanitizer] Update struct_kernel_stat_sz for mips32 and mipsn32

On mips32 _LARGEFILE_SOURCE and _FILE_OFFSET_BITS == 64 is used (compiler-rt/cmake/base-config-ix.cmake),
thus the correct struct_kernel_stat_sz should be 160 instead of 144.

This value is also updated for N32, since we will use
_LARGEFILE_SOURCE and _FILE_OFFSET_BITS == 64 in future.

Fix https://github.com/llvm/llvm-project/issues/55499

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D135553
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h