[compiler-rt] r182010 - [ASan] Fix init-order-dlopen.cc to pass under Mac OS.
Alexander Potapenko
glider at google.com
Thu May 16 07:51:01 PDT 2013
Author: glider
Date: Thu May 16 09:51:01 2013
New Revision: 182010
URL: http://llvm.org/viewvc/llvm-project?rev=182010&view=rev
Log:
[ASan] Fix init-order-dlopen.cc to pass under Mac OS.
Modified:
compiler-rt/trunk/lib/asan/lit_tests/init-order-dlopen.cc
Modified: compiler-rt/trunk/lib/asan/lit_tests/init-order-dlopen.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/init-order-dlopen.cc?rev=182010&r1=182009&r2=182010&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/init-order-dlopen.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/init-order-dlopen.cc Thu May 16 09:51:01 2013
@@ -3,7 +3,11 @@
// RUN: %clangxx_asan -m64 -O0 %p/SharedLibs/init-order-dlopen-so.cc \
// RUN: -fPIC -shared -o %t-so.so
-// RUN: %clangxx_asan -m64 -O0 %s -o %t -Wl,--export-dynamic
+// If the linker doesn't support --export-dynamic (which is ELF-specific),
+// try to link without that option.
+// FIXME: find a better solution.
+// RUN: %clangxx_asan -m64 -O0 %s -o %t -Wl,--export-dynamic || \
+// RUN: %clangxx_asan -m64 -O0 %s -o %t
// RUN: ASAN_OPTIONS=check_initialization_order=true:strict_init_order=true %t 2>&1 | FileCheck %s
#include <dlfcn.h>
#include <pthread.h>
More information about the llvm-commits
mailing list