[compiler-rt] r298173 - [asan] Remove gc-sections test with bfd.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 17 17:25:40 PDT 2017


Author: eugenis
Date: Fri Mar 17 19:25:40 2017
New Revision: 298173

URL: http://llvm.org/viewvc/llvm-project?rev=298173&view=rev
Log:
[asan] Remove gc-sections test with bfd.

It used to be XFAIL: *, but with the new implementation it passes in some cases
and fails in other. There are similar tests for gold and lld that are not
flaky, and a positive test for bfd that makes sure that were are not breaking
existing functionality.

Removed:
    compiler-rt/trunk/test/asan/TestCases/Linux/globals-gc-sections.cc

Removed: compiler-rt/trunk/test/asan/TestCases/Linux/globals-gc-sections.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/globals-gc-sections.cc?rev=298172&view=auto
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/globals-gc-sections.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/globals-gc-sections.cc (removed)
@@ -1,20 +0,0 @@
-// RUN: %clangxx_asan %s -o %t -Wl,--gc-sections -fuse-ld=bfd -ffunction-sections -fdata-sections -mllvm -asan-globals=0
-// RUN: %clangxx_asan %s -o %t -Wl,--gc-sections -fuse-ld=bfd -ffunction-sections -fdata-sections -mllvm -asan-globals=1
-
-// https://code.google.com/p/address-sanitizer/issues/detail?id=260
-// UNSUPPORTED: *
-
-int undefined();
-
-// bug in ld.bfd: with multiple "asan_globals" sections, __start_asan_globals is
-// treated as a strong GC reference to the first such section. As a result, the
-// first (for some definition of the word) global is never gc-ed.
-int first_unused = 42;
-
-// On i386 clang adds --export-dynamic when linking with ASan, which adds all
-// non-hidden globals to GC roots.
-__attribute__((visibility("hidden"))) int (*unused)() = undefined;
-
-int main() {
-        return 0;
-}




More information about the llvm-commits mailing list