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: [email protected]
Reporter: [email protected]
CC: [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs