| 1 |
(module |
| 2 |
(@dylink.0 |
| 3 |
(mem-info (memory 20 4)) |
| 4 |
(needed "foo") |
| 5 |
) |
| 6 |
(type (func (param i32) (result i32))) |
| 7 |
(type (func)) |
| 8 |
(import "env" "memory" (memory 1)) |
| 9 |
(import "env" "__indirect_function_table" (table 0 funcref)) |
| 10 |
(import "env" "__memory_base" (global $__memory_base i32)) |
| 11 |
(import "env" "__table_base" (global $__table_base i32)) |
| 12 |
(import "env" "foo" (func $foo (type 0))) |
| 13 |
(import "GOT.mem" "well" (global $well (mut i32))) |
| 14 |
(func $_initialize (type 1)) |
| 15 |
(func $__wasm_apply_data_relocs (type 1)) |
| 16 |
(func $bar (type 0) (param i32) (result i32) |
| 17 |
local.get 0 |
| 18 |
call $foo |
| 19 |
global.get $well |
| 20 |
i32.load |
| 21 |
i32.add |
| 22 |
) |
| 23 |
(global i32 i32.const 0) |
| 24 |
(export "_initialize" (func $_initialize)) |
| 25 |
(export "__wasm_apply_data_relocs" (func $__wasm_apply_data_relocs)) |
| 26 |
(export "test:test/test#bar" (func $bar)) |
| 27 |
(export "um" (global 3)) |
| 28 |
(data $.data (global.get $__memory_base) "\01\00\00\00\02\00\00\00\03\00\00\00\04\00\00\00\05\00\00\00") |
| 29 |
) |