sanitizer_dl.h 862 B

1234567891011121314151617181920212223242526
  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. #ifndef SANITIZER_DL_H
  14. #define SANITIZER_DL_H
  15. namespace __sanitizer {
  16. // Returns the path to the shared object or - in the case of statically linked
  17. // sanitizers
  18. // - the main program itself, that contains the sanitizer.
  19. const char* DladdrSelfFName(void);
  20. } // namespace __sanitizer
  21. #endif // SANITIZER_DL_H