diff options
author | Kostya Serebryany <kcc@google.com> | 2012-01-24 19:25:38 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2012-01-24 19:25:38 +0000 |
commit | 588d6abf7d38fd7e7d189dbff79f16e995c2c79d (patch) | |
tree | 1dfed8ab3f27af5a5dee6a703f56ccd8d9122a88 /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 64cee06504b9f8fd6821f16a84512b372cb29414 (diff) | |
download | llvm-588d6abf7d38fd7e7d189dbff79f16e995c2c79d.zip llvm-588d6abf7d38fd7e7d189dbff79f16e995c2c79d.tar.gz llvm-588d6abf7d38fd7e7d189dbff79f16e995c2c79d.tar.bz2 |
The following patch adds __attribute__((no_address_safety_analysis)) which will allow to disable
address safety analysis (such as e.g. AddressSanitizer or SAFECode) for a specific function.
When building with AddressSanitizer, add AddressSafety function attribute to every generated function
except for those that have __attribute__((no_address_safety_analysis)).
With this patch we will be able to
1. disable AddressSanitizer for a particular function
2. disable AddressSanitizer-hostile optimizations (such as some cases of load widening) when AddressSanitizer is on.
llvm-svn: 148842
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions