https://llvm.org/bugs/show_bug.cgi?id=22966
Bug ID: 22966
Summary: Gold plug tests shouldn't assume ELF/x86-64
Product: tools
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: gold-plugin
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
On Linux/x86, I have
[hjl@gnu-29 ~]$ file /usr/local/bin/ld.gold
/usr/local/bin/ld.gold: ELF 32-bit LSB executable, Intel 80386, version 1
(SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux
2.6.9, not stripped
[hjl@gnu-29 ~]$ ld.gold -V
GNU gold (Linux/GNU Binutils 2.25.51.0.2.20150320) 1.11
Supported targets:
elf32-x86-64
elf32-x86-64-freebsd
elf32-x86-64-nacl
elf64-x86-64
elf64-x86-64-freebsd
elf64-x86-64-nacl
elf32-i386
elf32-i386-freebsd
elf32-i386-nacl
Supported emulations:
elf32_x86_64
elf32_x86_64_nacl
elf_x86_64
elf_x86_64_nacl
elf_i386
elf_i386_nacl
[hjl@gnu-29 ~]$
tools/gold/pr19901.ll, tools/gold/remarks.ll and tools/gold/vectorize.ll
have
; 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: llvm-readobj -t %t.so | FileCheck %s
...
target triple = "x86_64-unknown-linux-gnu"
...
They assume ld.gold defaults to elf_x86_64. But my ld.gold defaults
to elf_i386 and those tests fail.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs