llvm-project/llvm/lib
Ryan Govostes 653f9d0273 [asan] Support dead code stripping on Mach-O platforms
On OS X El Capitan and iOS 9, the linker supports a new section
attribute, live_support, which allows dead stripping to remove dead
globals along with the ASAN metadata about them.

With this change __asan_global structures are emitted in a new
__DATA,__asan_globals section on Darwin.

Additionally, there is a __DATA,__asan_liveness section with the
live_support attribute. Each entry in this section is simply a tuple
that binds together the liveness of a global variable and its ASAN
metadata structure. Thus the metadata structure will be alive if and
only if the global it references is also alive.

Review: http://reviews.llvm.org/D16737
llvm-svn: 264645
2016-03-28 20:28:57 +00:00
..
Analysis Fix Clang-tidy modernize-deprecated-headers warnings in some files; other minor fixes. 2016-03-28 17:40:08 +00:00
AsmParser IR: Stop upgrading !llvm.loop attachments via MDString 2016-03-25 00:56:13 +00:00
Bitcode BitcodeWriter: Replace dead code with an assertion, NFC 2016-03-28 00:03:12 +00:00
CodeGen MIRParser: Add %subreg.xxx syntax for subregister index operands 2016-03-28 18:18:46 +00:00
DebugInfo Fix Clang-tidy modernize-deprecated-headers warnings in some files; other minor fixes. 2016-03-28 17:40:08 +00:00
ExecutionEngine More more change need as part of r264187 where ErrorOr<> was added 2016-03-23 21:20:16 +00:00
Fuzzer [libFuzzer] use fflush after every Printf 2016-03-25 20:31:26 +00:00
IR [Verifier] Reject PHIs using defs from own block. 2016-03-26 23:32:57 +00:00
IRReader Remove autoconf support 2016-01-26 21:29:08 +00:00
LTO ThinLTO: use the callgraph from the combined index to drive the FunctionImporter 2016-03-26 05:40:34 +00:00
LibDriver Remove autoconf support 2016-01-26 21:29:08 +00:00
LineEditor Fix Clang-tidy modernize-deprecated-headers warnings in some files; other minor fixes. 2016-03-28 17:40:08 +00:00
Linker Fix another case where we were unconditionally linking linkonce GVs. 2016-03-24 15:23:01 +00:00
MC MC: Don't access the filesystem in MCContext's constructor 2016-03-22 22:24:29 +00:00
Object Remove else after return 2016-03-28 17:45:48 +00:00
ObjectYAML [lanai] Add Lanai backend. 2016-03-28 13:09:54 +00:00
Option Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
Passes [PM] Rename the CRTP mixin base classes for the new pass manager to 2016-03-11 10:33:22 +00:00
ProfileData Revert "Reapply "[PGO] Fix name encoding for ObjC-like functions"" 2016-03-28 20:20:40 +00:00
Support C++11 is required, remove some preprocessor checks for it 2016-03-28 11:13:03 +00:00
TableGen [TableGen] Fix typos in comments. NFC 2016-02-26 06:50:27 +00:00
Target [AArch64] Do not lower scalar sdiv/udiv to a shifts + mul sequence when optimizing for minsize 2016-03-28 18:17:07 +00:00
Transforms [asan] Support dead code stripping on Mach-O platforms 2016-03-28 20:28:57 +00:00
CMakeLists.txt Move ObjectYAML code to a new library. 2016-03-01 19:15:06 +00:00
LLVMBuild.txt Add LLVMBuild for ObjectYAML. 2016-03-01 21:29:33 +00:00