xref: /freebsd/contrib/llvm-project/compiler-rt/lib/msan/msan_dl.h (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
1 //===-- msan_dl.h ---------------------------------------------------------===//
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-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file is a part of MemorySanitizer.
10 //
11 // Helper functions for unpoisoning results of dladdr and dladdr1.
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef MSAN_DL_H
15 #define MSAN_DL_H
16 
17 #include "msan.h"
18 #include "sanitizer_common/sanitizer_common.h"
19 
20 namespace __msan {
21 
22 void UnpoisonDllAddrInfo(void *info);
23 
24 #if SANITIZER_GLIBC
25 void UnpoisonDllAddr1ExtraInfo(void **extra_info, int flags);
26 #endif
27 
28 }  // namespace __msan
29 
30 #endif  // MSAN_DL_H
31