1*5f757f3fSDimitry Andric //===-- sanitizer_dl.h ----------------------------------------------------===// 2*5f757f3fSDimitry Andric // 3*5f757f3fSDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*5f757f3fSDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5*5f757f3fSDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*5f757f3fSDimitry Andric // 7*5f757f3fSDimitry Andric //===----------------------------------------------------------------------===// 8*5f757f3fSDimitry Andric // 9*5f757f3fSDimitry Andric // This file has helper functions that depend on libc's dynamic loading 10*5f757f3fSDimitry Andric // introspection. 11*5f757f3fSDimitry Andric // 12*5f757f3fSDimitry Andric //===----------------------------------------------------------------------===// 13*5f757f3fSDimitry Andric 14*5f757f3fSDimitry Andric #ifndef SANITIZER_DL_H 15*5f757f3fSDimitry Andric #define SANITIZER_DL_H 16*5f757f3fSDimitry Andric 17*5f757f3fSDimitry Andric namespace __sanitizer { 18*5f757f3fSDimitry Andric 19*5f757f3fSDimitry Andric // Returns the path to the shared object or - in the case of statically linked 20*5f757f3fSDimitry Andric // sanitizers 21*5f757f3fSDimitry Andric // - the main program itself, that contains the sanitizer. 22*5f757f3fSDimitry Andric const char* DladdrSelfFName(void); 23*5f757f3fSDimitry Andric 24*5f757f3fSDimitry Andric } // namespace __sanitizer 25*5f757f3fSDimitry Andric 26*5f757f3fSDimitry Andric #endif // SANITIZER_DL_H 27