Revert "[test] Fix asan/TestCases/Linux/globals-gc-sections-lld.cpp with -fsanitize-address-globals-dead-stripping"
This reverts commit 140808768d.
Reason: Broke the upstream bots - discussed offline.
This commit is contained in:
parent
5a28e1d9e5
commit
1d03a54d94
|
|
@ -1,11 +1,10 @@
|
|||
/// Without instrumenting globals, --gc-sections drops the undefined symbol.
|
||||
// RUN: %clangxx_asan %s -o /dev/null -Wl,--gc-sections -fuse-ld=lld -ffunction-sections -fdata-sections -mllvm -asan-globals=0
|
||||
/// With -fsanitize-address-globals-dead-stripping and -fdata-sections, a garbage
|
||||
/// collectable custom metadata section is used for instrumented globals.
|
||||
// RUN: %clangxx_asan %s -o /dev/null -Wl,--gc-sections -fuse-ld=lld -ffunction-sections -fdata-sections -fsanitize-address-globals-dead-stripping
|
||||
// RUN: %clangxx_asan %s -o %t -Wl,--gc-sections -fuse-ld=lld -ffunction-sections -fdata-sections -mllvm -asan-globals=0
|
||||
// RUN: %clangxx_asan %s -o %t -Wl,--gc-sections -fuse-ld=lld -ffunction-sections -fdata-sections -mllvm -asan-globals=1
|
||||
|
||||
// https://github.com/google/sanitizers/issues/260
|
||||
// REQUIRES: lld-available
|
||||
// https://code.google.com/p/address-sanitizer/issues/detail?id=260
|
||||
// REQUIRES: lld
|
||||
// FIXME: This may pass on Android, with non-emulated-tls.
|
||||
// XFAIL: android
|
||||
int undefined();
|
||||
|
||||
// On i386 clang adds --export-dynamic when linking with ASan, which adds all
|
||||
|
|
|
|||
Loading…
Reference in New Issue