Add -m -m elf_x86_64 to gold invocations.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 24 Mar 2015 22:20:19 +0000 (22:20 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 24 Mar 2015 22:20:19 +0000 (22:20 +0000)
Otherwise the tests would fail if the default was not elf_x86_64.

This fixes PR22966.

Patch by H.J. Lu!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233124 91177308-0d34-0410-b5e6-96231b3b80d8

test/tools/gold/pr19901.ll
test/tools/gold/remarks.ll
test/tools/gold/vectorize.ll

index 2a7dea155736e0dc895f5ffab4a1ca389f3d1d34..71bb134ead7b0dc24e792f0d35883c2b91e19069 100644 (file)
@@ -1,6 +1,7 @@
 ; RUN: llc %s -o %t.o -filetype=obj -relocation-model=pic
 ; RUN: llvm-as %p/Inputs/pr19901-1.ll -o %t2.o
-; RUN: %gold -shared -o %t.so -plugin %llvmshlibdir/LLVMgold.so %t2.o %t.o
+; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
+; RUN:     -shared -m elf_x86_64 -o %t.so %t2.o %t.o
 ; RUN: llvm-readobj -t %t.so | FileCheck %s
 
 ; CHECK:       Symbol {
index f84016e9047c2d51da14d099d66dfe22b30a5d24..c4fa7f787f26fb7dba3e83cc06ab8ceb3da33c8a 100644 (file)
@@ -1,9 +1,9 @@
 ; RUN: llvm-as %s -o %t.o
 
-; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
 ; RUN:    -plugin-opt=-pass-remarks=inline %t.o -o %t2.o 2>&1 | FileCheck %s
 
-; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
 ; RUN:   %t.o -o %t2.o 2>&1 | FileCheck -allow-empty --check-prefix=NO-REMARK %s
 
 
index 121c96e6e9e8b43d01a3546749a72df883605432..5f003dd02e215aae6023fcfe9561f7252192a406 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llvm-as %s -o %t.o
 
-; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
 ; RUN:    --plugin-opt=save-temps \
 ; RUN:    -shared %t.o -o %t2.o
 ; RUN: llvm-dis %t2.o.opt.bc -o - | FileCheck %s