blob: 6613aaedf2a8cfb8cb17e32659bbeb97da7a9b5c (
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
|
;;; TOOL: run-wasm-link
;;; FLAGS:
(module
(func $func1 (param i32))
(table anyfunc (elem $func1 $func1))
)
(module
(func $func2 (param i64))
(func $func3 (param f64))
(table anyfunc (elem $func3 $func2 $func2))
)
(;; STDOUT ;;;
linked.wasm: file format wasm 0x000001
Sections:
Type start=0x0000000a end=0x00000017 (size=0x0000000d) count: 3
Function start=0x0000001d end=0x00000021 (size=0x00000004) count: 3
Table start=0x00000027 end=0x0000002c (size=0x00000005) count: 1
Elem start=0x00000032 end=0x00000051 (size=0x0000001f) count: 1
Code start=0x00000053 end=0x0000005d (size=0x0000000a) count: 3
Custom start=0x00000063 end=0x0000007f (size=0x0000001c) "reloc.Elem"
Section Details:
Type:
- [0] (i32) -> nil
- [1] (i64) -> nil
- [2] (f64) -> nil
Function:
- func[0] sig=0
- func[1] sig=1
- func[2] sig=2
Table:
- table[0] type=anyfunc initial=5 max=5
Elem:
- segment[0] table=0
- init i32=0
- func[0]
- func[0]
- func[2]
- func[1]
- func[1]
Custom:
- name: "reloc.Elem"
- section: Elem
- R_FUNC_INDEX_LEB idx=0 addend=0 offset=0x6(file=0x38)
- R_FUNC_INDEX_LEB idx=0 addend=0 offset=0xb(file=0x3d)
- R_FUNC_INDEX_LEB idx=0x2 addend=0 offset=0x10(file=0x42)
- R_FUNC_INDEX_LEB idx=0x1 addend=0 offset=0x15(file=0x47)
- R_FUNC_INDEX_LEB idx=0x1 addend=0 offset=0x1a(file=0x4c)
Code Disassembly:
000054 func[0]:
000056: 0b | end
000057 func[1]:
000059: 0b | end
00005a func[2]:
00005c: 0b | end
;;; STDOUT ;;)
|