1 //===-- sanitizer_dl.h ----------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // This file has helper functions that depend on libc's dynamic loading
12 //===----------------------------------------------------------------------===//
14 #ifndef SANITIZER_DL_H
15 #define SANITIZER_DL_H
17 namespace __sanitizer
{
19 // Returns the path to the shared object or - in the case of statically linked
21 // - the main program itself, that contains the sanitizer.
22 const char* DladdrSelfFName(void);
24 } // namespace __sanitizer
26 #endif // SANITIZER_DL_H