[RS6000] Don't put large integer constants in TOC for -mcmodel=medium
[official-gcc.git] / libsanitizer / ubsan / ubsan_init_standalone.cc
blob67223bea629528db9cbbcb7480a2e1a9b3bd2d11
1 //===-- ubsan_init_standalone.cc ------------------------------------------===//
2 //
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
5 //
6 //===----------------------------------------------------------------------===//
7 //
8 // Initialization of standalone UBSan runtime.
9 //
10 //===----------------------------------------------------------------------===//
12 #include "ubsan_platform.h"
13 #if !CAN_SANITIZE_UB
14 # error "UBSan is not supported on this platform!"
15 #endif
17 #include "sanitizer_common/sanitizer_internal_defs.h"
18 #include "ubsan_init.h"
19 #include "ubsan_signals_standalone.h"
21 namespace __ubsan {
23 class UbsanStandaloneInitializer {
24 public:
25 UbsanStandaloneInitializer() {
26 InitAsStandalone();
27 InitializeDeadlySignals();
30 static UbsanStandaloneInitializer ubsan_standalone_initializer;
32 } // namespace __ubsan