[PATCH] D55157: [asan] Add clang flag -fsanitize-address-use-odr-indicator

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 4 17:47:30 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT348327: [asan] Add clang flag -fsanitize-address-use-odr-indicator (authored by vitalybuka, committed by ).
Herald added a subscriber: Sanitizers.

Changed prior to commit:
  https://reviews.llvm.org/D55157?vs=176747&id=176748#toc

Repository:
  rCRT Compiler Runtime

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55157/new/

https://reviews.llvm.org/D55157

Files:
  test/asan/TestCases/Linux/odr-violation.cc


Index: test/asan/TestCases/Linux/odr-violation.cc
===================================================================
--- test/asan/TestCases/Linux/odr-violation.cc
+++ test/asan/TestCases/Linux/odr-violation.cc
@@ -33,6 +33,11 @@
 // RUN: %clangxx_asan -mllvm -asan-use-private-alias -mllvm -asan-use-odr-indicator %s %t-ODR-SO.so -Wl,-R. -o %t-ODR-EXE
 // RUN: %env_asan_opts=fast_unwind_on_malloc=0 not %run %t-ODR-EXE 2>&1 | FileCheck %s
 
+// Same as above but with clang switches.
+// RUN: %clangxx_asan -DBUILD_SO=1 -fPIC -shared -fsanitize-address-use-odr-indicator %s -o %t-ODR-SO.so -DSZ=100
+// RUN: %clangxx_asan -fsanitize-address-use-odr-indicator %s %t-ODR-SO.so -Wl,-R. -o %t-ODR-EXE
+// RUN: %env_asan_opts=fast_unwind_on_malloc=0 not %run %t-ODR-EXE 2>&1 | FileCheck %s
+
 // GNU driver doesn't handle .so files properly.
 // REQUIRES: Clang
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55157.176748.patch
Type: text/x-patch
Size: 862 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181205/50048c4c/attachment.bin>


More information about the llvm-commits mailing list