diff options
| author | Kuba Mracek <mracek@apple.com> | 2017-01-11 22:26:10 +0000 |
|---|---|---|
| committer | Kuba Mracek <mracek@apple.com> | 2017-01-11 22:26:10 +0000 |
| commit | 503162b4a1fc5d5274c08d5f8e317c2b8cb46ca0 (patch) | |
| tree | 8bd002436bd42b854da979bdc9aba6e087404ed3 /llvm/test/CodeGen/AMDGPU | |
| parent | c83efa85e2146870e8876c37cd555128d8ee2650 (diff) | |
| download | bcm5719-llvm-503162b4a1fc5d5274c08d5f8e317c2b8cb46ca0.tar.gz bcm5719-llvm-503162b4a1fc5d5274c08d5f8e317c2b8cb46ca0.zip | |
[asan] Set alignment of __asan_global_* globals to sizeof(GlobalStruct)
When using profiling and ASan together (-fprofile-instr-generate -fcoverage-mapping -fsanitize=address), at least on Darwin, the section of globals that ASan emits (__asan_globals) is misaligned and starts at an odd offset. This really doesn't have anything to do with profiling, but it triggers the issue because profiling emits a string section, which can have arbitrary size. This patch changes the alignment to sizeof(GlobalStruct).
Differential Revision: https://reviews.llvm.org/D28573
llvm-svn: 291715
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU')
0 files changed, 0 insertions, 0 deletions

