[all-commits] [llvm/llvm-project] 91167e: [hwasan] Remove lazy thread-initialisation

David Spickett via All-commits all-commits at lists.llvm.org
Mon Nov 4 03:19:49 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 91167e22eca535025f093335acece573bf19c525
      https://github.com/llvm/llvm-project/commit/91167e22eca535025f093335acece573bf19c525
  Author: David Spickett <david.spickett at arm.com>
  Date:   2019-11-04 (Mon, 04 Nov 2019)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M compiler-rt/lib/hwasan/hwasan_interceptors.cpp
    M compiler-rt/lib/hwasan/hwasan_linux.cpp
    M llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
    R llvm/test/Instrumentation/HWAddressSanitizer/lazy-thread-init.ll

  Log Message:
  -----------
  [hwasan] Remove lazy thread-initialisation

This was an experiment made possible by a non-standard feature of the
Android dynamic loader.

It required introducing a flag to tell the compiler which ABI was being
targeted.
This flag is no longer needed, since the generated code now works for
both ABI's.

We leave that flag untouched for backwards compatibility. This also
means that if we need to distinguish between targeted ABI's again
we can do that without disturbing any existing workflows.

We leave a comment in the source code and mention in the help text to
explain this for any confused person reading the code in the future.

Patch by Matthew Malcomson

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




More information about the All-commits mailing list