diff options
author | Ryan Govostes <rzg@apple.com> | 2016-03-28 20:28:57 +0000 |
---|---|---|
committer | Ryan Govostes <rzg@apple.com> | 2016-03-28 20:28:57 +0000 |
commit | 653f9d0273cf44e54d4c110b1cf19ef6cfab47ba (patch) | |
tree | fe646a488c1e04d428eea1c449701cc72506c487 /llvm/unittests/Bitcode | |
parent | dc91fe5d8b7777942d46d5d8152a586932f13291 (diff) | |
download | bcm5719-llvm-653f9d0273cf44e54d4c110b1cf19ef6cfab47ba.tar.gz bcm5719-llvm-653f9d0273cf44e54d4c110b1cf19ef6cfab47ba.zip |
[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
Diffstat (limited to 'llvm/unittests/Bitcode')
0 files changed, 0 insertions, 0 deletions