This code is copied almost verbatim from the equivalent change to the
ELF linker:
The upshot is that libraries containing libcall (such as compiler-rt
and libc) can be compiled with LTO.
Fixes PR41384
Paths
| Differential D71738
[lld][WebAssembly] Add libcall symbols to the link when LTO is being used. ClosedPublic Authored by sbc100 on Dec 19 2019, 5:27 PM.
Details Summary This code is copied almost verbatim from the equivalent change to the The upshot is that libraries containing libcall (such as compiler-rt Fixes PR41384
Diff Detail
Event TimelineComment Actions ping.. should be uncontroversial since this code its basically identical to ELF/COFF backends,.
This revision is now accepted and ready to land.Jan 9 2020, 4:54 PM Closed by commit rG9cd985815abf: [lld][WebAssembly] Add libcall symbols to the link when LTO is being used. (authored by sbc100). · Explain WhyJan 10 2020, 11:09 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 237145 lld/test/wasm/lto/Inputs/libcall-archive.ll
lld/test/wasm/lto/libcall-archive.ll
lld/wasm/Driver.cpp
lld/wasm/InputFiles.h
lld/wasm/Symbols.h
lld/wasm/Symbols.cpp
|
Do you really need the isBitcode check in the wasm linker? We needed it in the ELF linker because of some badly behaving libgcc functions, but maybe wasm doesn't have anything like that?