tstellar / rpms / llvm

Forked from rpms/llvm 5 years ago
Clone
d62829b
From f0762684457a883b6813b48c98a1e94e377bc06b Mon Sep 17 00:00:00 2001
d62829b
From: Tom Stellard <tstellar@redhat.com>
d62829b
Date: Wed, 28 Aug 2019 19:31:21 -0700
d62829b
Subject: [PATCH] Pass target to gold linker to avoid faliures on i686
d62829b
d62829b
---
d62829b
 llvm/test/tools/gold/X86/linkonce_odr_unnamed_addr.ll | 4 ++--
d62829b
 1 file changed, 2 insertions(+), 2 deletions(-)
d62829b
d62829b
diff --git a/llvm/test/tools/gold/X86/linkonce_odr_unnamed_addr.ll b/llvm/test/tools/gold/X86/linkonce_odr_unnamed_addr.ll
d62829b
index 525bf2d..01291bd 100644
d62829b
--- a/llvm/test/tools/gold/X86/linkonce_odr_unnamed_addr.ll
d62829b
+++ b/llvm/test/tools/gold/X86/linkonce_odr_unnamed_addr.ll
d62829b
@@ -3,7 +3,7 @@
d62829b
 
d62829b
 ; RUN: opt -module-summary %s -o %t.o
d62829b
 ; RUN: opt -module-summary %p/Inputs/linkonce_odr_unnamed_addr.ll -o %t2.o
d62829b
-; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
d62829b
+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
d62829b
 ; RUN:    --plugin-opt=save-temps \
d62829b
 ; RUN:    %t.o %t2.o -o %t3.o
d62829b
 ; RUN: llvm-dis %t.o.1.promote.bc -o - | FileCheck %s
d62829b
@@ -11,7 +11,7 @@
d62829b
 ; Now test when one module is a native object. In that case we must be
d62829b
 ; conservative and not auto hide.
d62829b
 ; RUN: llc %p/Inputs/linkonce_odr_unnamed_addr.ll -o %t2native.o -filetype=obj
d62829b
-; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
d62829b
+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
d62829b
 ; RUN:    --plugin-opt=save-temps \
d62829b
 ; RUN:    %t.o %t2native.o -o %t3.o
d62829b
 ; RUN: llvm-dis %t.o.1.promote.bc -o - | FileCheck %s --check-prefix=NOSUMMARY
d62829b
-- 
d62829b
1.8.3.1
d62829b