diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2013-07-29 19:09:49 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2013-07-29 19:09:49 +0000 |
commit | 2e75ac983cb233daa1abfa35fb33d2bafffe2ab1 (patch) | |
tree | 7c988a4a6468084132fca5c342b846851b1a9626 /lib/sanitizer_common/sanitizer_linux.h | |
parent | ce502588cc5ac2da2dd11e83700767a3c8ce236b (diff) | |
download | compiler-rt-2e75ac983cb233daa1abfa35fb33d2bafffe2ab1.tar.gz |
Move UnpoisonMappedDSO to sanitizer_common.
This is so DFSan will be able to use it.
Differential Revision: http://llvm-reviews.chandlerc.com/D1206
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187372 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_linux.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_linux.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_linux.h b/lib/sanitizer_common/sanitizer_linux.h index 699257573..edb95fecb 100644 --- a/lib/sanitizer_common/sanitizer_linux.h +++ b/lib/sanitizer_common/sanitizer_linux.h @@ -16,6 +16,7 @@ #include "sanitizer_common.h" #include "sanitizer_internal_defs.h" +struct link_map; // Opaque type returned by dlopen(). struct sigaltstack; namespace __sanitizer { @@ -65,6 +66,9 @@ bool LibraryNameIs(const char *full_name, const char *base_name); // Read the name of the current binary from /proc/self/exe. uptr ReadBinaryName(/*out*/char *buf, uptr buf_len); +// Call cb for each region mapped by map. +void ForEachMappedRegion(link_map *map, void (*cb)(const void *, uptr)); + } // namespace __sanitizer #endif // SANITIZER_LINUX_H |