Path: blob/main/contrib/llvm-project/compiler-rt/lib/rtsan/rtsan_preinit.cpp
35233 views
//===--- rtsan_preinit.cpp - Realtime Sanitizer -----------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8//===----------------------------------------------------------------------===//910#include "sanitizer_common/sanitizer_internal_defs.h"11#include <rtsan/rtsan.h>1213#if SANITIZER_CAN_USE_PREINIT_ARRAY1415// This section is linked into the main executable when -fsanitize=realtime is16// specified to perform initialization at a very early stage.17__attribute__((section(".preinit_array"), used)) static auto preinit =18__rtsan_init;1920#endif212223