[LLVMbugs] [Bug 22966] New: Gold plug tests shouldn't assume ELF/x86-64

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 20 10:52:28 PDT 2015


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: unassignedbugs at nondot.org
          Reporter: hjl.tools at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

On Linux/x86, I have

[hjl at 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 at 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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150320/ee642509/attachment.html>


More information about the llvm-bugs mailing list