brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · b806d79 Raw
45 lines · c
1//===-- asan_init_version.h -------------------------------------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8//9// This file is a part of AddressSanitizer, an address sanity checker.10//11// This header defines a versioned __asan_init function to be called at the12// startup of the instrumented program.13//===----------------------------------------------------------------------===//14#ifndef ASAN_INIT_VERSION_H15#define ASAN_INIT_VERSION_H16 17#include "sanitizer_common/sanitizer_platform.h"18 19extern "C" {20  // Every time the ASan ABI changes we also change the version number in the21  // __asan_init function name.  Objects built with incompatible ASan ABI22  // versions will not link with run-time.23  //24  // Changes between ABI versions:25  // v1=>v2: added 'module_name' to __asan_global26  // v2=>v3: stack frame description (created by the compiler)27  //         contains the function PC as the 3rd field (see28  //         DescribeAddressIfStack)29  // v3=>v4: added '__asan_global_source_location' to __asan_global30  // v4=>v5: changed the semantics and format of __asan_stack_malloc_ and31  //         __asan_stack_free_ functions32  // v5=>v6: changed the name of the version check symbol33  // v6=>v7: added 'odr_indicator' to __asan_global34  // v7=>v8: added '__asan_(un)register_image_globals' functions for dead35  //         stripping support on Mach-O platforms36#if SANITIZER_WORDSIZE == 32 && SANITIZER_ANDROID37  // v8=>v9: 32-bit Android switched to dynamic shadow38  #define __asan_version_mismatch_check __asan_version_mismatch_check_v939#else40  #define __asan_version_mismatch_check __asan_version_mismatch_check_v841#endif42}43 44#endif  // ASAN_INIT_VERSION_H45