From d0e460175abecd62356b6347c8296346681fa7e6 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Thu, 3 Sep 2015 00:48:59 +0000 Subject: [PATCH] Tweak llvm/test/tools/gold/X86/parallel.ll to run with pthread-unaware ld.gold on Linux. If ld.gold is configured without --enable-thread, ld.gold might not load libpthread.so. Preloading LLVMgold.so loads also libpthread.so. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246739 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tools/gold/X86/parallel.ll | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/tools/gold/X86/parallel.ll b/test/tools/gold/X86/parallel.ll index 5c16eace5a8..25d7efa8a5b 100644 --- a/test/tools/gold/X86/parallel.ll +++ b/test/tools/gold/X86/parallel.ll @@ -1,11 +1,8 @@ ; RUN: llvm-as -o %t.bc %s -; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so -u foo -u bar -plugin-opt jobs=2 -plugin-opt save-temps -o %t %t.bc +; RUN: env LD_PRELOAD=%llvmshlibdir/LLVMgold.so %gold -plugin %llvmshlibdir/LLVMgold.so -u foo -u bar -plugin-opt jobs=2 -plugin-opt save-temps -o %t %t.bc ; RUN: llvm-nm %t.o0 | FileCheck --check-prefix=CHECK0 %s ; RUN: llvm-nm %t.o1 | FileCheck --check-prefix=CHECK1 %s -; FIXME: Invesigating. std::thread crashes in _dl_fixup(). -; REQUIRES: disabled - target triple = "x86_64-unknown-linux-gnu" ; CHECK0-NOT: bar -- 2.34.1