1//===-- sanitizer_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 has helper functions that depend on libc's dynamic loading
10// introspection.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef SANITIZER_DL_H
15#define SANITIZER_DL_H
16
17namespace __sanitizer {
18
19// Returns the path to the shared object or - in the case of statically linked
20// sanitizers
21// - the main program itself, that contains the sanitizer.
22const char* DladdrSelfFName(void);
23
24} // namespace __sanitizer
25
26#endif // SANITIZER_DL_H
27