The default code generation for compiling with LLVM/Clang to WebAssembly exports memory and ignores tables completely.
Is there a way to emit memory and table imports (and/or exports) when targeting web assembly with clang (--target=wasm32-unknown-unknown-wasm
)?
LLD with -flavor wasm has been rolled back into upstream LLVM which does give the ability to decide wether memory and function tables should be imported or exported.