diff options
author | Derek Schuff <dschuff@chromium.org> | 2016-09-30 10:47:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-30 10:47:52 -0700 |
commit | cbe71a99f3b53db81cfd23f7a12f2010daeff65d (patch) | |
tree | 73342cd6db91ce3a6fd18b9ec6a733f9d91ea21f /test/llvm_autogenerated/non-executable-stack.wast | |
parent | 2a543b48db250ea9cd7172b6db9a0b8d3657475a (diff) | |
download | binaryen-cbe71a99f3b53db81cfd23f7a12f2010daeff65d.tar.gz binaryen-cbe71a99f3b53db81cfd23f7a12f2010daeff65d.tar.bz2 binaryen-cbe71a99f3b53db81cfd23f7a12f2010daeff65d.zip |
Make the linker always create a table segment (#722)
Previously a table was only created if there were any address-taken
functions. New module validation rules require the existence of
a table for any call-indirects to validate (even if they are dead and
never called). However this use case seems common enough that we might
want to make it continue to work. So the linker now always creates an empty table segment (indicating an empty table).
Diffstat (limited to 'test/llvm_autogenerated/non-executable-stack.wast')
-rw-r--r-- | test/llvm_autogenerated/non-executable-stack.wast | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/llvm_autogenerated/non-executable-stack.wast b/test/llvm_autogenerated/non-executable-stack.wast index 0b18f0e4d..42d1df53e 100644 --- a/test/llvm_autogenerated/non-executable-stack.wast +++ b/test/llvm_autogenerated/non-executable-stack.wast @@ -2,5 +2,7 @@ (memory $0 1) (data (i32.const 4) "\10\04\00\00") (export "memory" (memory $0)) + (table 0 anyfunc) + ) ;; METADATA: { "asmConsts": {},"staticBump": 1040, "initializers": [] } |