Make __asan_default_options a weak function that returns a const char*.
Users may define it to override the default ASan options.
This function has to be marked with __attribute__((no_address_safety_analysis)), because it is called before ASan is fully initialized.

Add an output test checking the __asan_default_options functionality.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160712 91177308-0d34-0410-b5e6-96231b3b80d8
4 files changed