[compiler-rt] r181790 - Add sanitizer syscall hooks to the tool's export lists.

Alexander Potapenko glider at google.com
Tue May 14 07:31:28 PDT 2013


On the other hand, what if some fourth..nth tool needs the syscall hooks?
Fine, this can be solved later if at all needed

Sent from phone
On May 14, 2013 6:12 PM, "Evgeniy Stepanov" <eugeni.stepanov at gmail.com>
wrote:

> This way is more flexible. What if we decide that TSan, for example,
> does not need syscall hooks?
>
> On Tue, May 14, 2013 at 4:08 PM, Alexander Potapenko <glider at google.com>
> wrote:
> > Doesn't the linker support multiple export lists per run? You can move
> the
> > common symbols to a separate file and not bother about keeping the
> > tool-specific files in sync.
> >
> > Sent from phone
> >
> > On May 14, 2013 5:59 PM, "Evgeniy Stepanov" <eugeni.stepanov at gmail.com>
> > wrote:
> >>
> >> Author: eugenis
> >> Date: Tue May 14 08:55:21 2013
> >> New Revision: 181790
> >>
> >> URL: http://llvm.org/viewvc/llvm-project?rev=181790&view=rev
> >> Log:
> >> Add sanitizer syscall hooks to the tool's export lists.
> >>
> >> Modified:
> >>     compiler-rt/trunk/lib/asan/asan.syms
> >>     compiler-rt/trunk/lib/msan/msan.syms
> >>     compiler-rt/trunk/lib/tsan/rtl/tsan.syms
> >>
> >> Modified: compiler-rt/trunk/lib/asan/asan.syms
> >> URL:
> >>
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan.syms?rev=181790&r1=181789&r2=181790&view=diff
> >>
> >>
> ==============================================================================
> >> --- compiler-rt/trunk/lib/asan/asan.syms (original)
> >> +++ compiler-rt/trunk/lib/asan/asan.syms Tue May 14 08:55:21 2013
> >> @@ -1 +1,5 @@
> >> -{ __asan_*; };
> >> +{
> >> +  __asan_*;
> >> +  __sanitizer_syscall_pre_*;
> >> +  __sanitizer_syscall_post_*;
> >> +};
> >>
> >> Modified: compiler-rt/trunk/lib/msan/msan.syms
> >> URL:
> >>
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan.syms?rev=181790&r1=181789&r2=181790&view=diff
> >>
> >>
> ==============================================================================
> >> --- compiler-rt/trunk/lib/msan/msan.syms (original)
> >> +++ compiler-rt/trunk/lib/msan/msan.syms Tue May 14 08:55:21 2013
> >> @@ -1 +1,5 @@
> >> -{ __msan_*; };
> >> +{
> >> +  __msan_*;
> >> +  __sanitizer_syscall_pre_*;
> >> +  __sanitizer_syscall_post_*;
> >> +};
> >>
> >> Modified: compiler-rt/trunk/lib/tsan/rtl/tsan.syms
> >> URL:
> >>
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan.syms?rev=181790&r1=181789&r2=181790&view=diff
> >>
> >>
> ==============================================================================
> >> --- compiler-rt/trunk/lib/tsan/rtl/tsan.syms (original)
> >> +++ compiler-rt/trunk/lib/tsan/rtl/tsan.syms Tue May 14 08:55:21 2013
> >> @@ -1 +1,5 @@
> >> -{ __tsan_*; };
> >> +{
> >> +  __tsan_*;
> >> +  __sanitizer_syscall_pre_*;
> >> +  __sanitizer_syscall_post_*;
> >> +};
> >>
> >>
> >> _______________________________________________
> >> 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/20130514/d3beaec2/attachment.html>


More information about the llvm-commits mailing list