[compiler-rt] r240857 - [asan] Add -pie to uninstrumented executables on interface_test.cc

Evgeniy Stepanov eugeni.stepanov at gmail.com
Fri Jun 26 16:43:03 PDT 2015


Author: eugenis
Date: Fri Jun 26 18:43:03 2015
New Revision: 240857

URL: http://llvm.org/viewvc/llvm-project?rev=240857&view=rev
Log:
[asan] Add -pie to uninstrumented executables on interface_test.cc

This helps Android (which only support PIE) and does not hurt anything else.

Modified:
    compiler-rt/trunk/test/asan/TestCases/interface_test.cc

Modified: compiler-rt/trunk/test/asan/TestCases/interface_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/interface_test.cc?rev=240857&r1=240856&r2=240857&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/interface_test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/interface_test.cc Fri Jun 26 18:43:03 2015
@@ -1,8 +1,8 @@
 // Check that user may include ASan interface header.
 // RUN: %clang_asan %s -o %t && %run %t
 // RUN: %clang_asan -x c %s -o %t && %run %t
-// RUN: %clang %s -o %t && %run %t
-// RUN: %clang -x c %s -o %t && %run %t
+// RUN: %clang %s -pie -o %t && %run %t
+// RUN: %clang -x c %s -pie -o %t && %run %t
 #include <sanitizer/asan_interface.h>
 
 int main() {





More information about the llvm-commits mailing list