llvm-project/compiler-rt
Mitch Phillips 0ebb756087 [hwasan] Add __hwasan_init constructor to runtime lib.
Found by an Android toolchain upgrade, inherited module constructors
(like init_have_lse_atomics from the builtins) can sneak into the hwasan
runtime. If these inherited constructors call hwasanified libc
functions, then the HWASan runtime isn't setup enough, and the code
crashes.

Mark the initialized as a high-priority initializer to fix this.

Reviewed By: pcc, yabinc

Differential Revision: https://reviews.llvm.org/D107391
2021-08-04 11:18:23 -07:00
..
cmake [sanitizer] Remove cpplint 2021-07-30 15:21:04 -07:00
docs Prepare Compiler-RT for GnuInstallDirs, matching libcxx, document all 2021-07-13 15:21:41 +00:00
include [sanitizer] Add callbacks for epoll_pwait2 2021-08-02 14:14:19 -07:00
lib [hwasan] Add __hwasan_init constructor to runtime lib. 2021-08-04 11:18:23 -07:00
test [msan] Add bsearch interceptor 2021-08-03 18:39:14 -07:00
tools [GWP-ASan] Add inbuilt options parser. 2021-01-15 12:57:05 -08:00
unittests [Compiler-rt] Fix running ASan/TSan unit tests under macOS 12.0. 2021-08-03 17:46:27 -07:00
utils [sanitizer] Remove cpplint annotations 2021-07-30 18:20:40 -07:00
www [Branch-Rename] Fix some links 2021-02-01 16:43:21 +05:30
.clang-tidy NFC: .clang-tidy: Inherit configs from parents to improve maintainability 2021-06-08 08:25:59 -07:00
.gitignore
CMakeLists.txt sanitizers: build tests with -g 2021-07-31 08:55:12 +02:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
README.txt

README.txt

Compiler-RT
================================

This directory and its subdirectories contain source code for the compiler
support routines.

Compiler-RT is open source software. You may freely distribute it under the
terms of the license agreement found in LICENSE.txt.

================================