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: unassignedb...@nondot.org
          Reporter: incer...@incertia.net
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to