blob: 6cf57c4aa2a8cff0ec09d2f735deeeca217802cd [file] [log] [blame]
Stephen Hines6a211c52014-07-21 00:49:56 -07001//===-- asan_init_version.h -------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file is a part of AddressSanitizer, an address sanity checker.
11//
12// This header defines a versioned __asan_init function to be called at the
13// startup of the instrumented program.
14//===----------------------------------------------------------------------===//
15#ifndef ASAN_INIT_VERSION_H
16#define ASAN_INIT_VERSION_H
17
Stephen Hines6a211c52014-07-21 00:49:56 -070018extern "C" {
Stephen Hines6d186232014-11-26 17:56:19 -080019 // Every time the ASan ABI changes we also change the version number in the
20 // __asan_init function name. Objects built with incompatible ASan ABI
21 // versions will not link with run-time.
Stephen Hines6a211c52014-07-21 00:49:56 -070022 // Changes between ABI versions:
23 // v1=>v2: added 'module_name' to __asan_global
24 // v2=>v3: stack frame description (created by the compiler)
25 // contains the function PC as the 3-rd field (see
26 // DescribeAddressIfStack).
27 // v3=>v4: added '__asan_global_source_location' to __asan_global.
Stephen Hines86277eb2015-03-23 12:06:32 -070028 // v4=>v5: changed the semantics and format of __asan_stack_malloc_ and
29 // __asan_stack_free_ functions.
30 #define __asan_init __asan_init_v5
31 #define __asan_init_name "__asan_init_v5"
Stephen Hines6a211c52014-07-21 00:49:56 -070032}
33
34#endif // ASAN_INIT_VERSION_H