[BOLT] Don't use ld.lld in tests

Summary: Addressing issue 270.

(cherry picked from FBD33255608)
This commit is contained in:
Rafael Auler 2021-12-21 07:36:35 -08:00 committed by Maksim Panchenko
parent 226c973280
commit 07d9e014ed
4 changed files with 4 additions and 5 deletions

View File

@ -26,11 +26,11 @@ int main() {
// REQUIRES: system-linux
// RUN: %clang %cflags -no-pie %s -o %t.exe -Wl,-q \
// RUN: -Wl,--unresolved-symbols=ignore-all \
// RUN: -fuse-ld=ld.lld \
// RUN: -fuse-ld=lld \
// RUN: -nostdlib
// RUN: llvm-bolt %t.exe -o %t.bolt
// RUN: %clang %cflags -fPIC -pie %s -o %t_pie.exe -Wl,-q \
// RUN: -Wl,--unresolved-symbols=ignore-all \
// RUN: -target aarch64-linux -fuse-ld=ld.lld \
// RUN: -target aarch64-linux -fuse-ld=lld \
// RUN: -nostdlib
// RUN: llvm-bolt %t_pie.exe -o %t.bolt

View File

@ -2,7 +2,7 @@
* Check that we don't assert on a duplicate static relocation added by lld
* against _Z6myfuncv. The same address has a dynamic relocation against it.
*
* RUN: %clang -fPIC -shared %s -o %t.so -Wl,-q -fuse-ld=ld.lld
* RUN: %clang -fPIC -shared %s -o %t.so -Wl,-q -fuse-ld=lld
* RUN: llvm-bolt %t.so -o %t.so.bolt -relocs
*/

View File

@ -1,7 +1,7 @@
# Check that BOLT generates .debug_aranges section for an input
# where it was removed when .gdb_index was generated.
RUN: %clang %S/Inputs/icf_baz.c %S/Inputs/icf_main.c -Wl,--icf=all,--gdb-index \
RUN: -g -o %t.exe -fuse-ld=ld.lld
RUN: -g -o %t.exe -fuse-ld=lld
RUN: llvm-bolt %t.exe -o %t -update-debug-sections -keep-aranges
RUN: llvm-dwarfdump -debug-aranges %t | FileCheck %s

View File

@ -66,7 +66,6 @@ tool_dirs = [config.llvm_tools_dir,
tools = [
ToolSubst('llc', unresolved='fatal'),
ToolSubst('lld', unresolved='fatal'),
ToolSubst('llvm-dwarfdump', unresolved='fatal'),
ToolSubst('llvm-bolt', unresolved='fatal'),
ToolSubst('llvm-boltdiff', unresolved='fatal'),