[all-commits] [llvm/llvm-project] 76b92d: [sanitizer] Update struct_kernel_stat_sz for mips3...

YunQiang Su via All-commits all-commits at lists.llvm.org
Tue Oct 25 19:00:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76b92df0d6915aa419c6856f97198df3321c35d7
      https://github.com/llvm/llvm-project/commit/76b92df0d6915aa419c6856f97198df3321c35d7
  Author: YunQiang Su <wzssyqa at gmail.com>
  Date:   2022-10-25 (Tue, 25 Oct 2022)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list