[PATCH] Declare _DYNAMIC and dl_phdr_info in asan_linux.cc on FreeBSD
Viktor Kutuzov
vkutuzov at accesssoftek.com
Tue Apr 8 07:25:53 PDT 2014
Hi kcc, samsonov,
http://reviews.llvm.org/D3317
Files:
lib/asan/asan_linux.cc
Index: lib/asan/asan_linux.cc
===================================================================
--- lib/asan/asan_linux.cc
+++ lib/asan/asan_linux.cc
@@ -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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3317.1.patch
Type: text/x-patch
Size: 400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140408/b51c1aa5/attachment.bin>
More information about the llvm-commits
mailing list