[llvm-bugs] [Bug 33534] New: LLVMgold.so cannot initialize LTO module when file is odd-length

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 20 15:11:02 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33534

            Bug ID: 33534
           Summary: LLVMgold.so cannot initialize LTO module when file is
                    odd-length
           Product: libraries
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Linker
          Assignee: unassignedbugs at nondot.org
          Reporter: incertia at incertia.net
                CC: llvm-bugs at lists.llvm.org

Consider the following dummy object file assembled with fasm.

```
; test.s
format ELF64

section '.rodata'
msg db '00'
```

# fasm test.s test.o
flat assembler  version 1.71.60  (16384 kilobytes memory)
1 passes, 395 bytes.
# nm test.o
bfd plugin: LLVM gold plugin has failed to create LTO module: Invalid data was
encountered while parsing the file
nm: test.o: no symbols
# mv /lib/LLVMgold.so ./
# nm test.o
# exit

I'm not sure if this is a problem with libLTO or LLVMgold, but ldd shows no
dependence on libLTO.so for LLVMgold.so.

-- 
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/20170620/d775988b/attachment.html>


More information about the llvm-bugs mailing list