Skip to content

Commit 1d03a54

Browse files
committed
Revert "[test] Fix asan/TestCases/Linux/globals-gc-sections-lld.cpp with -fsanitize-address-globals-dead-stripping"
This reverts commit 1408087. Reason: Broke the upstream bots - discussed offline.
1 parent 5a28e1d commit 1d03a54

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

compiler-rt/test/asan/TestCases/Linux/globals-gc-sections-lld.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
/// Without instrumenting globals, --gc-sections drops the undefined symbol.
2-
// RUN: %clangxx_asan %s -o /dev/null -Wl,--gc-sections -fuse-ld=lld -ffunction-sections -fdata-sections -mllvm -asan-globals=0
3-
/// With -fsanitize-address-globals-dead-stripping and -fdata-sections, a garbage
4-
/// collectable custom metadata section is used for instrumented globals.
5-
// RUN: %clangxx_asan %s -o /dev/null -Wl,--gc-sections -fuse-ld=lld -ffunction-sections -fdata-sections -fsanitize-address-globals-dead-stripping
1+
// RUN: %clangxx_asan %s -o %t -Wl,--gc-sections -fuse-ld=lld -ffunction-sections -fdata-sections -mllvm -asan-globals=0
2+
// RUN: %clangxx_asan %s -o %t -Wl,--gc-sections -fuse-ld=lld -ffunction-sections -fdata-sections -mllvm -asan-globals=1
63

7-
// https://github.com/google/sanitizers/issues/260
8-
// REQUIRES: lld-available
4+
// https://code.google.com/p/address-sanitizer/issues/detail?id=260
5+
// REQUIRES: lld
6+
// FIXME: This may pass on Android, with non-emulated-tls.
7+
// XFAIL: android
98
int undefined();
109

1110
// On i386 clang adds --export-dynamic when linking with ASan, which adds all

0 commit comments

Comments
 (0)