[llvm-bugs] [Bug 36936] New: LLVM Gold plugin docs should mention command-line options.

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 28 15:24:40 PDT 2018


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

            Bug ID: 36936
           Summary: LLVM Gold plugin docs should mention command-line
                    options.
           Product: Documentation
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: General docs
          Assignee: unassignedbugs at nondot.org
          Reporter: bmoses at google.com
                CC: llvm-bugs at lists.llvm.org

I just helped a colleague figure out a problem where they were getting an
"incompatible target" error running ld-new with the LLVMGold.so plugin on
targets compiled with -flto.  They seem to be able to resolve this by passing a
"-m <ARCH>" flag to ld-new, but they only figured that out by extrapolating
from random web hints; the "-m" option isn't documented either for Gold or on
the LLVM Gold plugin page.

Specifically, the working commandline (with paths omitted) is:
arm.ld -plugin LLVMgold.so a.o b.o -o foo.elf -m armelf

Both the error and the solution seem like things that should be documented in
the LLVM Gold plugin documentation.

-- 
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/20180328/09face92/attachment.html>


More information about the llvm-bugs mailing list