Skip to content

Have linking look for .imports alongside each .a. #35

Closed
@sbc100

Description

@sbc100

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions