[PATCH] D57490: hwasan: Add __hwasan_init_static() function.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 30 16:51:34 PST 2019


pcc created this revision.
pcc added a reviewer: eugenis.
Herald added subscribers: kubamracek, srhines.

This function initializes enough of the runtime to be able to run
instrumented code in a statically linked executable. It replaces
__hwasan_shadow_init() which wasn't doing enough initialization for
instrumented code that uses either TLS or IFUNC to work.


Repository:
  rL LLVM

https://reviews.llvm.org/D57490

Files:
  compiler-rt/include/sanitizer/hwasan_interface.h
  compiler-rt/lib/hwasan/hwasan.cc
  compiler-rt/lib/hwasan/hwasan.h
  compiler-rt/lib/hwasan/hwasan_dynamic_shadow.cc
  compiler-rt/lib/hwasan/hwasan_dynamic_shadow.h
  compiler-rt/lib/hwasan/hwasan_interface_internal.h
  compiler-rt/lib/hwasan/hwasan_linux.cc
  compiler-rt/lib/hwasan/hwasan_thread.cc
  compiler-rt/lib/hwasan/hwasan_thread.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57490.184411.patch
Type: text/x-patch
Size: 8341 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190131/0777ab2b/attachment.bin>


More information about the llvm-commits mailing list