Home | History | Annotate | Line # | Download | only in asan
asan_init_version.h revision 1.1
      1 //===-- asan_init_version.h -------------------------------------*- C++ -*-===//
      2 //
      3 // This file is distributed under the University of Illinois Open Source
      4 // License. See LICENSE.TXT for details.
      5 //
      6 //===----------------------------------------------------------------------===//
      7 //
      8 // This file is a part of AddressSanitizer, an address sanity checker.
      9 //
     10 // This header defines a versioned __asan_init function to be called at the
     11 // startup of the instrumented program.
     12 //===----------------------------------------------------------------------===//
     13 #ifndef ASAN_INIT_VERSION_H
     14 #define ASAN_INIT_VERSION_H
     15 
     16 extern "C" {
     17   // Every time the ASan ABI changes we also change the version number in the
     18   // __asan_init function name.  Objects built with incompatible ASan ABI
     19   // versions will not link with run-time.
     20   // Changes between ABI versions:
     21   // v1=>v2: added 'module_name' to __asan_global
     22   // v2=>v3: stack frame description (created by the compiler)
     23   //         contains the function PC as the 3-rd field (see
     24   //         DescribeAddressIfStack).
     25   // v3=>v4: added '__asan_global_source_location' to __asan_global.
     26   #define __asan_init __asan_init_v4
     27   #define __asan_init_name "__asan_init_v4"
     28 }
     29 
     30 #endif  // ASAN_INIT_VERSION_H
     31