[compiler-rt] r205852 - Declare _DYNAMIC and dl_phdr_info in asan_linux.cc on FreeBSD
Viktor Kutuzov
vkutuzov at accesssoftek.com
Wed Apr 9 06:37:20 PDT 2014
Author: vkutuzov
Date: Wed Apr 9 08:37:19 2014
New Revision: 205852
URL: http://llvm.org/viewvc/llvm-project?rev=205852&view=rev
Log:
Declare _DYNAMIC and dl_phdr_info in asan_linux.cc on FreeBSD
Modified:
compiler-rt/trunk/lib/asan/asan_linux.cc
Modified: compiler-rt/trunk/lib/asan/asan_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_linux.cc?rev=205852&r1=205851&r2=205852&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_linux.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_linux.cc Wed Apr 9 08:37:19 2014
@@ -33,7 +33,11 @@
#include <unistd.h>
#include <unwind.h>
-#if SANITIZER_ANDROID
+#if SANITIZER_FREEBSD
+#include <sys/link_elf.h>
+#endif
+
+#if SANITIZER_ANDROID || SANITIZER_FREEBSD
#include <ucontext.h>
extern "C" void* _DYNAMIC;
#else
More information about the llvm-commits
mailing list