diff --git a/compiler-rt/test/asan/TestCases/Linux/global-overflow-lld.cpp b/compiler-rt/test/asan/TestCases/Linux/global-overflow-lld.cpp --- a/compiler-rt/test/asan/TestCases/Linux/global-overflow-lld.cpp +++ b/compiler-rt/test/asan/TestCases/Linux/global-overflow-lld.cpp @@ -1,7 +1,12 @@ // Test that gc-sections-friendly instrumentation of globals does not introduce // false negatives with the LLD linker. // RUN: %clangxx_asan -fuse-ld=lld -Wl,-gc-sections -ffunction-sections -fdata-sections -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s -// REQUIRES: lld +// REQUIRES: lld-available + +// Looks like GCC ended up creating PIC relocations in the debug section for a +// while. Mark these tests as unsupported on the broken versions, as they're +// using lld which rejects such constructs. +// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7, gcc-8 #include int main(int argc, char **argv) { diff --git a/compiler-rt/test/asan/TestCases/Linux/globals-gc-sections-lld.cpp b/compiler-rt/test/asan/TestCases/Linux/globals-gc-sections-lld.cpp --- a/compiler-rt/test/asan/TestCases/Linux/globals-gc-sections-lld.cpp +++ b/compiler-rt/test/asan/TestCases/Linux/globals-gc-sections-lld.cpp @@ -6,6 +6,11 @@ // https://github.com/google/sanitizers/issues/260 // REQUIRES: lld-available + +// Looks like GCC ended up creating PIC relocations in the debug section for a +// while. Mark these tests as unsupported on the broken versions, as they're +// using lld which rejects such constructs. +// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7, gcc-8 int undefined(); // On i386 clang adds --export-dynamic when linking with ASan, which adds all