1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00
llvm-mirror/test
Kuba Brecka 7004ed37b6 [asan] Move instrumented null-terminated strings to a special section, LLVM 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: 285619
2016-10-31 18:51:58 +00:00
..
Analysis Improved cost model for FDIV and FSQRT, by Andrew Tischenko 2016-10-31 12:10:53 +00:00
Assembler
Bindings
Bitcode DebugInfo: add bitcode upgrade test for alignment 2016-10-26 08:34:19 +00:00
BugPoint Add -strip-nonlinetable-debuginfo capability 2016-10-25 18:44:13 +00:00
CodeGen GlobalISel: allow truncating pointer casts on AArch64. 2016-10-31 18:31:09 +00:00
DebugInfo Do not print out Flags field twice. 2016-10-28 23:57:37 +00:00
Demangle
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation [asan] Move instrumented null-terminated strings to a special section, LLVM part 2016-10-31 18:51:58 +00:00
Integer
JitListener
LibDriver
Linker
LTO
MC [MC] Make llvm-mc fail cleanly on invalid output asm variant. 2016-10-31 18:36:31 +00:00
Object Recommit r285285 - [Object/ELF] - Fixed behavior when SectionHeaderTable->sh_size is too large. 2016-10-31 15:33:00 +00:00
ObjectYAML
Other [lit] Work around Windows MSys command line tokenization bug 2016-10-26 20:29:27 +00:00
SymbolRewriter
TableGen
ThinLTO/X86 [ThinLTO] Correctly resolve linkonce when importing aliasee 2016-10-30 05:15:23 +00:00
tools [ThinLTO] Correctly resolve linkonce when importing aliasee 2016-10-30 05:15:23 +00:00
Transforms Second attempt at r285517. 2016-10-31 13:17:31 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt [XRay] Add llvm-xray as a dependency to test/CMakeLists.txt 2016-10-26 04:16:05 +00:00
lit.cfg [XRay] Implement llvm-xray extract, start of the llvm-xray tool 2016-10-26 04:14:34 +00:00
lit.site.cfg.in
TestRunner.sh