From c885ca69d19e7bd2c58b44eef242de334ac8c9dd Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Wed, 6 Apr 2016 09:05:09 -0700 Subject: Handle static initializers LLVM emits static initializers in the ELF style, by placing pointers to the constructor functions in a .init_array section. Handle this in s2wasm for now by converting these to standard emscripten metadata. --- test/llvm_autogenerated/non-executable-stack.wast | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/llvm_autogenerated/non-executable-stack.wast') diff --git a/test/llvm_autogenerated/non-executable-stack.wast b/test/llvm_autogenerated/non-executable-stack.wast index 2f8f59d82..23a1430e0 100644 --- a/test/llvm_autogenerated/non-executable-stack.wast +++ b/test/llvm_autogenerated/non-executable-stack.wast @@ -2,4 +2,4 @@ (memory 0) (export "memory" memory) ) -;; METADATA: { "asmConsts": {},"staticBump": 4 } +;; METADATA: { "asmConsts": {},"staticBump": 4, "initializers": [] } -- cgit v1.2.3