This change create a new synthetic function in the final
output binary which calls the static constructors in sequence.
See: https://github.com/WebAssembly/tool-conventions/issues/25
Paths
| Differential D41893
[WebAssembly] Create synthetic __wasm_call_ctors function ClosedPublic Authored by sbc100 on Jan 9 2018, 5:26 PM.
Details Summary This change create a new synthetic function in the final See: https://github.com/WebAssembly/tool-conventions/issues/25
Diff Detail
Event TimelineHerald added subscribers: llvm-commits, sunfish, aheejin and 3 others. · View Herald TranscriptJan 9 2018, 5:26 PM ruiu added inline comments.
AndrewScheidecker added inline comments. This revision now requires changes to proceed.Jan 9 2018, 6:00 PM sbc100 marked 3 inline comments as done. Comment Actions
This revision is now accepted and ready to land.Jan 10 2018, 4:21 PM Closed by commit rL322388: [WebAssembly] Create synthetic __wasm_call_ctors function (authored by sbc). · Explain WhyJan 12 2018, 10:36 AM Closed by commit rLLD322388: [WebAssembly] Create synthetic __wasm_call_ctors function (authored by sbc). · Explain Why This revision was automatically updated to reflect the committed changes. This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 129662 test/wasm/Inputs/global-ctor-dtor.ll
test/wasm/alias.ll
test/wasm/call-indirect.ll
test/wasm/function-imports-first.ll
test/wasm/function-imports.ll
test/wasm/init-fini.ll
test/wasm/local-symbols.ll
test/wasm/stack-pointer.ll
test/wasm/weak-alias-overide.ll
test/wasm/weak-alias.ll
test/wasm/weak-symbols.ll
test/wasm/weak-undefined.ll
wasm/Config.h
wasm/Driver.cpp
wasm/InputChunks.h
wasm/InputChunks.cpp
wasm/InputFiles.cpp
wasm/SymbolTable.h
wasm/SymbolTable.cpp
wasm/Writer.cpp
|
Since no one sets Config->CtorFunction, I'd inline it and directly write "__wasm_call_ctors" here.