See the docs in lld/docs/WebAssembly.rst for more on this.
This feature unlocks a lot of simplification in the emscripten toolchain
since we can represent the JS libraries to the compiler using stub
objects.
See https://github.com/emscripten-core/emscripten/issues/18875
Can this be split out from the stub support? or is it tightly coupled somehow?