[llvm-commits] [compiler-rt] r153431 - /compiler-rt/trunk/lib/asan/asan_linux.cc

Kostya Serebryany kcc at google.com
Mon Mar 26 07:29:16 PDT 2012


Thanks!
FTR: <link.h> was included for dl_iterate_phdr, but currently it is
ifdef-ed out.

--kcc

On Mon, Mar 26, 2012 at 2:48 AM, Evgeniy Stepanov <eugeni.stepanov at gmail.com
> wrote:

> Author: eugenis
> Date: Mon Mar 26 04:48:41 2012
> New Revision: 153431
>
> URL: http://llvm.org/viewvc/llvm-project?rev=153431&view=rev
> Log:
> Avoid including link.h.
>
> It's not available on Android. We only use this header to find out if
> _DYNAMIC
> is present; declaring it "extern void*" does the trick.
>
>
> 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=153431&r1=153430&r2=153431&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/asan/asan_linux.cc (original)
> +++ compiler-rt/trunk/lib/asan/asan_linux.cc Mon Mar 26 04:48:41 2012
> @@ -25,7 +25,6 @@
>  #include <sys/syscall.h>
>  #include <sys/types.h>
>  #include <fcntl.h>
> -#include <link.h>
>  #include <pthread.h>
>  #include <stdio.h>
>  #include <unistd.h>
> @@ -36,6 +35,8 @@
>  #include <sys/ucontext.h>
>  #endif
>
> +extern "C" void* _DYNAMIC;
> +
>  namespace __asan {
>
>  void *AsanDoesNotSupportStaticLinkage() {
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120326/d8e9c900/attachment.html>


More information about the llvm-commits mailing list