From cbe71a99f3b53db81cfd23f7a12f2010daeff65d Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Fri, 30 Sep 2016 10:47:52 -0700 Subject: 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). --- test/llvm_autogenerated/non-executable-stack.wast | 2 ++ 1 file changed, 2 insertions(+) (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 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": [] } -- cgit v1.2.3