//===-- hwasan_globals.cpp ------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file is a part of HWAddressSanitizer. // // HWAddressSanitizer globals-specific runtime. //===----------------------------------------------------------------------===// #include "hwasan_globals.h" #include "sanitizer_common/sanitizer_array_ref.h" namespace __hwasan { enum { … }; struct hwasan_global_note { … }; // Check that the given library meets the code model requirements for tagged // globals. These properties are not checked at link time so they need to be // checked at runtime. static void CheckCodeModel(ElfW(Addr) base, const ElfW(Phdr) * phdr, ElfW(Half) phnum) { … } ArrayRef<const hwasan_global> HwasanGlobalsFor(ElfW(Addr) base, const ElfW(Phdr) * phdr, ElfW(Half) phnum) { … } } // namespace __hwasan