| ;;; TOOL: run-wasmdump |
| ;;; FLAGS: --headers -r |
| (module |
| (type $t (func (param i32))) |
| (import "__extern" "foo" (func (param i32) (result i32))) |
| (global i32 (i32.const 0)) |
| (func $f (param i32) (result i32) |
| get_global 0 |
| call 1 |
| call 0) |
| (export "f" (func $f)) |
| (table anyfunc (elem $f))) |
| (;; STDOUT ;;; |
| relocations.wasm: file format wasm 0x1 |
| |
| Sections: |
| |
| Type start=0x0000000a end=0x00000014 (size=0x0000000a) count: 2 |
| Import start=0x00000016 end=0x00000026 (size=0x00000010) count: 1 |
| Function start=0x00000028 end=0x0000002a (size=0x00000002) count: 1 |
| Table start=0x0000002c end=0x00000031 (size=0x00000005) count: 1 |
| Global start=0x00000033 end=0x00000039 (size=0x00000006) count: 1 |
| Export start=0x0000003b end=0x00000040 (size=0x00000005) count: 1 |
| Elem start=0x00000042 end=0x0000004d (size=0x0000000b) count: 1 |
| Code start=0x0000004f end=0x00000065 (size=0x00000016) count: 1 |
| Custom start=0x00000067 end=0x00000077 (size=0x00000010) "reloc.Elem" |
| Custom start=0x00000079 end=0x0000008f (size=0x00000016) "reloc.Code" |
| |
| Code Disassembly: |
| |
| 000050 func[1]: |
| 000052: 23 80 80 80 80 00 | get_global 0 |
| 000053: R_GLOBAL_INDEX_LEB 0 |
| 000058: 10 81 80 80 80 00 | call 0x1 |
| 000059: R_FUNC_INDEX_LEB 1 |
| 00005e: 10 80 80 80 80 00 | call 0 |
| 00005f: R_FUNC_INDEX_LEB 0 |
| 000064: 0b | end |
| ;;; STDOUT ;;) |