diff options
| author | Alexey Samsonov <samsonov@google.com> | 2014-04-01 13:42:16 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2014-04-01 13:42:16 +0000 |
| commit | 107e4abfd0040c719462708446b6fe9cf5de060a (patch) | |
| tree | 1067ffdb56c1d89002e6db79c50b6ad3bf2b2ebe /compiler-rt | |
| parent | bdfa6c2517087fcb03fe95696c8e6838845c9d32 (diff) | |
| download | bcm5719-llvm-107e4abfd0040c719462708446b6fe9cf5de060a.tar.gz bcm5719-llvm-107e4abfd0040c719462708446b6fe9cf5de060a.zip | |
[ASan] Fix Android build
llvm-svn: 205311
Diffstat (limited to 'compiler-rt')
| -rw-r--r-- | compiler-rt/lib/asan/asan_linux.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/asan/asan_linux.cc b/compiler-rt/lib/asan/asan_linux.cc index c6085aa7b05..962a0abc07b 100644 --- a/compiler-rt/lib/asan/asan_linux.cc +++ b/compiler-rt/lib/asan/asan_linux.cc @@ -76,6 +76,7 @@ void *AsanDoesNotSupportStaticLinkage() { return &_DYNAMIC; // defined in link.h } +#if !SANITIZER_ANDROID static int FindFirstDSOCallback(struct dl_phdr_info *info, size_t size, void *data) { // Continue until the first dynamic library is found @@ -85,6 +86,7 @@ static int FindFirstDSOCallback(struct dl_phdr_info *info, size_t size, *(const char **)data = info->dlpi_name; return 1; } +#endif static bool IsDynamicRTName(const char *libname) { return internal_strstr(libname, "libclang_rt.asan") || |

