[PATCH] D41375: [WebAssembly] Add support for writing out init functions in linking section
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 19 09:04:59 PST 2017
sbc100 added a comment.
I like the idea of keeping the generated function (i.e. __wasm_call_ctors, or whatever we call it) separate from main(). Then its up the c library, or runtime to decide if they want to call those two things in the same call stack, or separately. For the emscripten use case I think we want to be able to fist call ctors().. then later on call main(). But with a more stand alone toolchain (such as one based your musl port), it could happen in the same call if we decide that makes sense.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D41375
More information about the llvm-commits
mailing list