1*9095d5c4SThurston Dang //===-- msan_dl.h ---------------------------------------------------------===// 2*9095d5c4SThurston Dang // 3*9095d5c4SThurston Dang // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*9095d5c4SThurston Dang // See https://llvm.org/LICENSE.txt for license information. 5*9095d5c4SThurston Dang // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*9095d5c4SThurston Dang // 7*9095d5c4SThurston Dang //===----------------------------------------------------------------------===// 8*9095d5c4SThurston Dang // 9*9095d5c4SThurston Dang // This file is a part of MemorySanitizer. 10*9095d5c4SThurston Dang // 11*9095d5c4SThurston Dang // Helper functions for unpoisoning results of dladdr and dladdr1. 12*9095d5c4SThurston Dang //===----------------------------------------------------------------------===// 13*9095d5c4SThurston Dang 14*9095d5c4SThurston Dang #ifndef MSAN_DL_H 15*9095d5c4SThurston Dang #define MSAN_DL_H 16*9095d5c4SThurston Dang 17*9095d5c4SThurston Dang #include "msan.h" 18*9095d5c4SThurston Dang #include "sanitizer_common/sanitizer_common.h" 19*9095d5c4SThurston Dang 20*9095d5c4SThurston Dang namespace __msan { 21*9095d5c4SThurston Dang 22*9095d5c4SThurston Dang void UnpoisonDllAddrInfo(void *info); 23*9095d5c4SThurston Dang 24*9095d5c4SThurston Dang #if SANITIZER_GLIBC 25*9095d5c4SThurston Dang void UnpoisonDllAddr1ExtraInfo(void **extra_info, int flags); 26*9095d5c4SThurston Dang #endif 27*9095d5c4SThurston Dang 28*9095d5c4SThurston Dang } // namespace __msan 29*9095d5c4SThurston Dang 30*9095d5c4SThurston Dang #endif // MSAN_DL_H 31