[llvm-bugs] [Bug 45362] New: WebAssembly doesn't support LLVM bitcode-in-object format

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 30 10:45:45 PDT 2020


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

            Bug ID: 45362
           Summary: WebAssembly doesn't support LLVM bitcode-in-object
                    format
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: wasm
          Assignee: unassignedbugs at nondot.org
          Reporter: alex at crichton.co
                CC: llvm-bugs at lists.llvm.org, sbc at chromium.org

We've recently been working on a change [1] in rustc to how we implement LTO in
rustc itself. The change we're implementing is to leverage LLVM's support for
an object file format where the object file has native machine code but also
has LLVM bitcode embedded into a custom section. This allows us to ship
binaries which can both be natively linked but also LTO'd against without
having any auxiliary files of our own.

The WebAssembly target, however, does not support this feature. This bug is
intended to be a feature request for implementing this for the wasm target,
allowing producers to embed LLVM bitcode into a blessed section name which
would be recognized by LLVM's LTO pipeline and additionally stripped by default
in LLD. I'm currently filing this on LLD because it seems like it may mostly
affect that, but I can also move it around if that would help!

[1]: https://github.com/rust-lang/rust/pull/70458

-- 
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/20200330/f79eea7e/attachment-0001.html>


More information about the llvm-bugs mailing list