msan_dl.h 864 B

123456789101112131415161718192021222324252627282930
  1. //===-- msan_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 is a part of MemorySanitizer.
  10. //
  11. // Helper functions for unpoisoning results of dladdr and dladdr1.
  12. //===----------------------------------------------------------------------===//
  13. #ifndef MSAN_DL_H
  14. #define MSAN_DL_H
  15. #include "msan.h"
  16. #include "sanitizer_common/sanitizer_common.h"
  17. namespace __msan {
  18. void UnpoisonDllAddrInfo(void *info);
  19. #if SANITIZER_GLIBC
  20. void UnpoisonDllAddr1ExtraInfo(void **extra_info, int flags);
  21. #endif
  22. } // namespace __msan
  23. #endif // MSAN_DL_H