Go to file
Kuba Brecka bf6e7848a0 [asan] Move instrumented null-terminated strings to a special section, compiler-rt part
On Darwin, simple C null-terminated constant strings normally end up in the __TEXT,__cstring section of the resulting Mach-O binary. When instrumented with ASan, these strings are transformed in a way that they cannot be in __cstring (the linker unifies the content of this section and strips extra NUL bytes, which would break instrumentation), and are put into a generic __const section. This breaks some of the tools that we have: Some tools need to scan all C null-terminated strings in Mach-O binaries, and scanning all the contents of __const has a large performance penalty. This patch instead introduces a special section, __asan_cstring which will now hold the instrumented null-terminated strings.

Differential Revision: https://reviews.llvm.org/D25026

llvm-svn: 285620
2016-10-31 18:52:32 +00:00
clang Fixing problem with CodeGen/avx512-kconstraints-att_inline_asm.c 2016-10-31 18:40:17 +00:00
clang-tools-extra Add modernize-use-auto tests for casts inside macros 2016-10-31 17:17:45 +00:00
compiler-rt [asan] Move instrumented null-terminated strings to a special section, compiler-rt part 2016-10-31 18:52:32 +00:00
debuginfo-tests
libclc Provide vstore_half helper to workaround clc restrictions 2016-09-21 20:15:55 +00:00
libcxx [libc++] Add configuration define for off_t functions 2016-10-31 15:09:10 +00:00
libcxxabi Spell libcxxabi-no-threads correctly 2016-10-31 14:14:04 +00:00
libunwind [libunwind] Add support for Fuchsia 2016-10-23 21:48:47 +00:00
lld Revert r285607: Emit Section Map stream. 2016-10-31 18:50:13 +00:00
lldb Remove usages of TimeValue from gdb-remote process plugin 2016-10-31 17:19:42 +00:00
llgo
llvm [asan] Move instrumented null-terminated strings to a special section, LLVM part 2016-10-31 18:51:58 +00:00
openmp Fixed a memory leak related to task dependencies. 2016-10-27 11:43:07 +00:00
parallel-libs [Acxxel] Remove setActiveDeviceForThread 2016-10-28 00:54:02 +00:00
polly [ScopDetect] Use SCEVRewriteVisitor to simplify SCEVRemoveSMax rewriter 2016-10-29 06:19:34 +00:00