Talking to @dschuff it sounds like we can avoid the current llvm-nm stage in our linking. Currently we scan the symbols that way to tell which system libraries to link in. Instead, if we used .a files for system libraries and had a default linker command that included all system libraries, then wasm-ld would do everything for us. It would be simpler, and more efficient too probably. And we could remove the .symbols files.
Emscripten has non-default system libraries too, but those should be added manually anyhow with a -s command etc., that is, we don't use llvm-nm for them.
@sbc100 what do you think?
This might need to wait for after we remove fastcomp.
Talking to @dschuff it sounds like we can avoid the current llvm-nm stage in our linking. Currently we scan the symbols that way to tell which system libraries to link in. Instead, if we used
.afiles for system libraries and had a default linker command that included all system libraries, thenwasm-ldwould do everything for us. It would be simpler, and more efficient too probably. And we could remove the.symbolsfiles.Emscripten has non-default system libraries too, but those should be added manually anyhow with a
-scommand etc., that is, we don't usellvm-nmfor them.@sbc100 what do you think?
This might need to wait for after we remove fastcomp.