diff options
| author | Alexey Samsonov <vonosmas@gmail.com> | 2014-07-25 22:24:34 +0000 |
|---|---|---|
| committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-07-25 22:24:34 +0000 |
| commit | 6eb53d6460183b51a2cde13b30031572af65d3fe (patch) | |
| tree | e324c3a92b6405f0d49bd9bcf6bcd0d1809a0c3f /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | ac4b69e40bfebe502c8bee936539b352b0c14fa2 (diff) | |
[UBSan] Call UBSan initialization as early as possible.
Specifically, use .preinit_array initialization on Linux and dynamic global
initializer on another platforms. Historically UBSan didn't have any
initialization code and its runtime was stateless. This is no longer the
case - UBSan relies on some non-trivial functionality from sanitizer_common
(e.g. online symbolization) and is now configurable by runtime flags.
Additionally, we've dropped support for enabling UBSan only for a few shared
objects, so UBSan is now always linked into the main executable, so now
we can use similar initialization as all the rest sanitizers.
llvm-svn: 213983
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
