[all-commits] [llvm/llvm-project] 95d609: [HWASan] Add __hwasan_init to .preinit_array.

Matt Morehouse via All-commits all-commits at lists.llvm.org
Thu Feb 3 13:08:39 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95d609b549bbdc3c1b7368eac427b9e6628f4ace
      https://github.com/llvm/llvm-project/commit/95d609b549bbdc3c1b7368eac427b9e6628f4ace
  Author: Matt Morehouse <mascasa at google.com>
  Date:   2022-02-03 (Thu, 03 Feb 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M compiler-rt/lib/hwasan/CMakeLists.txt
    A compiler-rt/lib/hwasan/hwasan_preinit.cpp
    A compiler-rt/test/hwasan/TestCases/preinit_array.c

  Log Message:
  -----------
  [HWASan] Add __hwasan_init to .preinit_array.

Fixes segfaults on x86_64 caused by instrumented code running before
shadow is set up.

Reviewed By: pcc

Differential Revision: https://reviews.llvm.org/D118171




More information about the All-commits mailing list