From b2aa4726d2473c1535192503a075e313ddd2232d Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 18 May 2014 19:33:39 +0000 Subject: [PATCH] profile: adjust flags for libdl dlopen expects that the flags contains RTLD_LAZY or RTLD_NOW. RTLD_LAZY will resolve the symbol on first use, and is generally preferred due to efficiency. Add this to fix the test failure on the build bots. llvm-svn: 209098 --- compiler-rt/test/profile/instrprof-dlopen.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/test/profile/instrprof-dlopen.test b/compiler-rt/test/profile/instrprof-dlopen.test index e4ca54109a08..f0c067fb46f3 100644 --- a/compiler-rt/test/profile/instrprof-dlopen.test +++ b/compiler-rt/test/profile/instrprof-dlopen.test @@ -1,8 +1,8 @@ RUN: mkdir -p %t.d RUN: %clang_profgen -o %t.d/func.shared -fPIC -shared %S/Inputs/instrprof-dlopen-func.c RUN: %clang_profgen -o %t.d/func2.shared -fPIC -shared %S/Inputs/instrprof-dlopen-func2.c -RUN: %clang -o %t-local -fPIC -DDLOPEN_FUNC_DIR=\"%t.d\" -DDLOPEN_FLAGS=RTLD_LOCAL %S/Inputs/instrprof-dlopen-main.c -ldl -RUN: %clang -o %t-global -fPIC -DDLOPEN_FUNC_DIR=\"%t.d\" -DDLOPEN_FLAGS=RTLD_GLOBAL %S/Inputs/instrprof-dlopen-main.c -ldl +RUN: %clang -o %t-local -fPIC -DDLOPEN_FUNC_DIR=\"%t.d\" -DDLOPEN_FLAGS="RTLD_LAZY | RTLD_LOCAL" %S/Inputs/instrprof-dlopen-main.c -ldl +RUN: %clang -o %t-global -fPIC -DDLOPEN_FUNC_DIR=\"%t.d\" -DDLOPEN_FLAGS="RTLD_LAZY | RTLD_GLOBAL" %S/Inputs/instrprof-dlopen-main.c -ldl RUN: %clang -c -o %t.d/main.o %S/Inputs/instrprof-dlopen-main.c RUN: %clang_profgen -o %t-static %S/Inputs/instrprof-dlopen-func.c %S/Inputs/instrprof-dlopen-func2.c %t.d/main.o