>No-no, that's not how interceptors work on Linux. They shadow libc 
>definitions globally. 

I think those interceptors means that we define the same name functions as 
libc, like memset, and preload it before libc, so the instrumented code 
call the asan memset not the libc memset.
So the preload decides whether call asan memset or not, and Gcc Asan only 
preload the libasan.so for the instrumented lib not using LD_PRELOAD for 
the entire process, so a little confused, am I wrong?

在 2014年8月7日星期四UTC+8下午7时21分07秒,Yuri Gribov写道:
>
> > I used Gcc Asan recomplied only one shared lib, and I think the 
> interceptors 
> > only works for this lib, why the other could call those asan 
> interceptors? 
>
> No-no, that's not how interceptors work on Linux. They shadow libc 
> definitions globally. 
>
> -Y 
>

-- 
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to