[PATCH] D44655: [Sanitizer] Allow builtins for Cross-DSO CFI on Android

Petr Hosek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 19 17:23:43 PDT 2018


phosek created this revision.
phosek added a reviewer: eugenis.
Herald added subscribers: cfe-commits, srhines.

This is needed to avoid the test failure in case when compiler-rt
is set as the default runtime library for Clang.


Repository:
  rC Clang

https://reviews.llvm.org/D44655

Files:
  clang/test/Driver/sanitizer-ld.c


Index: clang/test/Driver/sanitizer-ld.c
===================================================================
--- clang/test/Driver/sanitizer-ld.c
+++ clang/test/Driver/sanitizer-ld.c
@@ -514,7 +514,7 @@
 // RUN:     --sysroot=%S/Inputs/basic_android_tree \
 // RUN:   | FileCheck --check-prefix=CHECK-CFI-CROSS-DSO-ANDROID %s
 // CHECK-CFI-CROSS-DSO-ANDROID: "{{.*}}ld{{(.exe)?}}"
-// CHECK-CFI-CROSS-DSO-ANDROID-NOT: libclang_rt.
+// CHECK-CFI-CROSS-DSO-ANDROID-NOT: libclang_rt.{{^builtins}}
 
 // Cross-DSO CFI with diagnostics on Android links just the UBSAN runtime.
 // RUN: %clang -fsanitize=cfi -fsanitize-cfi-cross-dso %s -### -o %t.o 2>&1 \


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44655.139031.patch
Type: text/x-patch
Size: 650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180320/81759d5a/attachment.bin>


More information about the cfe-commits mailing list