[llvm-bugs] [Bug 25229] New: Cannot specify Exec format for non-native flavors

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Oct 17 14:58:42 PDT 2015


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

            Bug ID: 25229
           Summary: Cannot specify Exec format for non-native flavors
           Product: lld
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: alexchandel at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Attempting to run `lld -flavor gnu` with a COFF executable produces an error
similar to "Cannot open coff.o: Exec format error".

While some options only apply to one format, for example "-macosx_version_min",
there's no general reason why each flavor should be locked to a specific
executable format, given that LLVM is capable of understanding multiple. For
example, `lld -flavor gnu -target i686-pc-windows-gnu coff.o` should be enough
to cause LLD to emit a PE/COFF executable while accepting GNU-flavored options,
like "-L<dir>" or "-l<libName>". This even has the advantage of providing a
unified linker interface.

Is there any reason this should not be implemented?

-- 
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/20151017/c11e930f/attachment.html>


More information about the llvm-bugs mailing list