Closed
Description
Currently we rely on the clang driver adding -allow-undefined-file wasm.syms
along with -lc
. Without this (if -lc is used on its own) symbols such as syscalls will cause the link to fail.
I propose that we have the linker looks for an optional .imports
files alongside each library can can list symbols which that library expects the wasm embedder to provide. We can then rename wasm.syms
to libc.imports
and remove the -allow-undefined-file
from the driver.
Metadata
Metadata
Assignees
Labels
No labels