[llvm-bugs] [Bug 41384] New: Allow builtins to be part of LTO

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 4 12:14:53 PDT 2019


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

            Bug ID: 41384
           Summary: Allow builtins to be part of LTO
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: unassignedbugs at nondot.org
          Reporter: sbc at chromium.org
                CC: llvm-bugs at lists.llvm.org

Currently, at least the WebAssembly port of lld, builtin cannot be part of LTO. 

The problem is way the linker decides what to export from LTO:

- linker decides which bitcode files it needs
- linker decided which symbols to export from LTO process
- LTO process generates a call to builtin and is in the LTO object, but not
exported
- LTO object doesn't export this builtin
- builtin is undefined and crashes lld.

I will see if I can repro this with ELF lld too.

-- 
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/20190404/84bf6ff3/attachment.html>


More information about the llvm-bugs mailing list