File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
compiler-rt/test/asan/TestCases/Linux Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 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
6
3
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
9
8
int undefined ();
10
9
11
10
// On i386 clang adds --export-dynamic when linking with ASan, which adds all
You can’t perform that action at this time.
0 commit comments