27 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8//9// This file has helper functions that depend on libc's dynamic loading10// introspection.11//12//===----------------------------------------------------------------------===//13 14#ifndef SANITIZER_DL_H15#define SANITIZER_DL_H16 17namespace __sanitizer {18 19// Returns the path to the shared object or - in the case of statically linked20// sanitizers21// - the main program itself, that contains the sanitizer.22const char* DladdrSelfFName(void);23 24} // namespace __sanitizer25 26#endif // SANITIZER_DL_H27