diff options
author | Jacob Gravelle <jgravelle@google.com> | 2018-02-14 10:30:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-14 10:30:16 -0800 |
commit | ee78bc9bccb02bb2b63fbb881fd2893a5fca0044 (patch) | |
tree | f757a2b8d0baed7d73628905038894217ab4bdee /test/lld/em_asm.wast | |
parent | e97d485bb1f1818e2c2118d28507d49cb61ea57b (diff) | |
download | binaryen-ee78bc9bccb02bb2b63fbb881fd2893a5fca0044.tar.gz binaryen-ee78bc9bccb02bb2b63fbb881fd2893a5fca0044.tar.bz2 binaryen-ee78bc9bccb02bb2b63fbb881fd2893a5fca0044.zip |
Fold wasm-link-metadata into wasm-emscripten-finalize (#1408)
* wasm-link-metadata: Use `__data_end` symbol.
* Add --global-base param to emscripten-wasm-finalize to compute staticBump properly
* Let ModuleWriter write to a provided Output object
Diffstat (limited to 'test/lld/em_asm.wast')
-rw-r--r-- | test/lld/em_asm.wast | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/test/lld/em_asm.wast b/test/lld/em_asm.wast index da1d8c3b6..b1f4d4fe2 100644 --- a/test/lld/em_asm.wast +++ b/test/lld/em_asm.wast @@ -1,32 +1,34 @@ (module - (type $0 (func (result i32))) - (type $1 (func (param i32) (result i32))) - (type $2 (func (param i32 i32 i32) (result i32))) - (type $3 (func (param i32 i32) (result i32))) + (type $0 (func (param i32) (result i32))) + (type $1 (func (param i32 i32 i32) (result i32))) + (type $2 (func (param i32 i32) (result i32))) + (type $3 (func (result i32))) (type $4 (func)) (import "env" "_Z24emscripten_asm_const_intIJEEiPKcDpT_" (func $_Z24emscripten_asm_const_intIJEEiPKcDpT_ (param i32) (result i32))) (import "env" "_Z24emscripten_asm_const_intIJiiEEiPKcDpT_" (func $_Z24emscripten_asm_const_intIJiiEEiPKcDpT_ (param i32 i32 i32) (result i32))) (import "env" "_Z24emscripten_asm_const_intIJiEEiPKcDpT_" (func $_Z24emscripten_asm_const_intIJiEEiPKcDpT_ (param i32 i32) (result i32))) - (global $global$0 (mut i32) (i32.const 66656)) - (global $global$1 i32 (i32.const 66656)) + (global $global$0 (mut i32) (i32.const 66192)) + (global $global$1 i32 (i32.const 66192)) + (global $global$2 i32 (i32.const 652)) (table 1 1 anyfunc) (memory $0 2) - (data (i32.const 1024) "{ Module.print(\"Hello world\"); }\00{ return $0 + $1; }\00{ Module.print(\"Got \" + $0); }\00") + (data (i32.const 568) "{ Module.print(\"Hello world\"); }\00{ return $0 + $1; }\00{ Module.print(\"Got \" + $0); }\00") (export "memory" (memory $0)) - (export "main" (func $main)) (export "__wasm_call_ctors" (func $__wasm_call_ctors)) + (export "main" (func $main)) (export "__heap_base" (global $global$1)) - (func $main (; 3 ;) (type $0) (result i32) + (export "__data_end" (global $global$2)) + (func $main (; 3 ;) (type $3) (result i32) (drop (call $_Z24emscripten_asm_const_intIJEEiPKcDpT_ - (i32.const 1024) + (i32.const 568) ) ) (drop (call $_Z24emscripten_asm_const_intIJiEEiPKcDpT_ - (i32.const 1077) + (i32.const 621) (call $_Z24emscripten_asm_const_intIJiiEEiPKcDpT_ - (i32.const 1057) + (i32.const 601) (i32.const 13) (i32.const 27) ) |