[PATCH] D41893: [WebAssembly] Create synthetic __wasm_call_ctors function

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 17:26:43 PST 2018


sbc100 created this revision.
Herald added subscribers: llvm-commits, sunfish, aheejin, jgravelle-google, dschuff, jfb.

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


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D41893

Files:
  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.cpp
  wasm/InputChunks.h
  wasm/InputFiles.cpp
  wasm/SymbolTable.cpp
  wasm/SymbolTable.h
  wasm/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41893.129197.patch
Type: text/x-patch
Size: 27218 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180110/e38616cc/attachment.bin>


More information about the llvm-commits mailing list