Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove -nostdlib from libc.so link command #440

Merged
merged 2 commits into from
Oct 7, 2023

Commits on Oct 6, 2023

  1. remove -nostdlib from libc.so link command

    Per https://reviews.llvm.org/D156205 (which we're planning to backport to LLVM
    17 and pull into `wasi-sdk`), we want to link crt1-reactor.o into libc.so so it
    exports `_initialize` instead of `__wasm_call_ctors`.
    
    Signed-off-by: Joel Dice <[email protected]>
    dicej committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    c6bad0f View commit details
    Browse the repository at this point in the history
  2. add -nodefaultlibs to libc.so link command

    This ensures that `-lc` is not passed to `wasm-ld`.
    
    Signed-off-by: Joel Dice <[email protected]>
    dicej committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    85f174b View commit details
    Browse the repository at this point in the history