blob: b0c05890831dd2d5d36315ce0bb80ab22ac1b921 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
;;; TOOL: run-objdump-gen-wasm
;;; ARGS1: -x
magic
version
section(TYPE) {
count[1]
function params[0] results[1] i32
}
section(FUNCTION) {
count[2]
type[0]
type[0]
}
section(MEMORY) {
count[1]
has_max[0]
initial[0]
}
section("metadata.code.test") {
function_count[2]
function_index[1]
ann_count[1]
ann_offset[1]
ann_data_size[1]
ann_data[1]
function_index[0]
ann_count[1]
ann_offset[1]
ann_data_size[1]
ann_data[1]
}
section(CODE) {
count[2]
func {
local_decls[0]
i32.const 1
return
}
func {
local_decls[0]
i32.const 1
return
}
}
(;; STDERR ;;;
0000035: warning: function index out of order: 0
;;; STDERR ;;)
(;; STDOUT ;;;
bad-code-metadata-function-out-of-order.wasm: file format wasm 0x1
Section Details:
Type[1]:
- type[0] () -> i32
Function[2]:
- func[0] sig=0
- func[1] sig=0
Memory[1]:
- memory[0] pages: initial=0
Custom:
- name: "metadata.code.test"
- func[1]:
- meta[1]:
- 0000000: 01 .
Code[2]:
- func[0] size=5
- func[1] size=5
Code Disassembly:
00003d func[0]:
00003e: 41 01 | i32.const 1
000040: 0f | return
000041: 0b | end
000043 func[1]:
000044: 41 01 | i32.const 1
000046: 0f | return
000047: 0b | end
;;; STDOUT ;;)
|