]> git.proxmox.com Git - wasi-libc.git/commit
Add support for `__main_argc_argv`.
authorDan Gohman <sunfish@mozilla.com>
Fri, 20 Dec 2019 23:14:02 +0000 (15:14 -0800)
committerDan Gohman <sunfish@mozilla.com>
Thu, 27 Feb 2020 21:09:38 +0000 (13:09 -0800)
commitd9066a87c04748e7381695eaf01cc5c9a9c3003b
tree4e84d110d3f59b00977a889e9b3c418c3f966297
parent575e1579a4ebaa6dccb884ca657188a92982af23
Add support for `__main_argc_argv`.

This adds support for the `__main_argc_argv` change, while preserving
compatibility with `__original_main`. This is needed by the LTO build
because the `__original_main` hack works in LLVM codegen, which is after
LTO. The `__main_argc_argv` change is implemented in clang, which makes
it properly visible to LTO.
basics/crt/crt1.c
expected/wasm32-wasi/defined-symbols.txt
libc-bottom-half/crt/crt1.c
libc-bottom-half/sources/__main_argc_argv.c [new file with mode: 0644]
libc-bottom-half/sources/__main_void.c [new file with mode: 0644]
libc-bottom-half/sources/__original_main.c