$ fq -d wasm dv linking-4.wasm |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: linking-4.wasm (wasm) 0x0-0xb1.7 (178) 0x00|00 61 73 6d |.asm | magic: raw bits (valid) 0x0-0x3.7 (4) 0x00| 01 00 00 00 | .... | version: 1 0x4-0x7.7 (4) | | | sections[0:6]: 0x8-0xb1.7 (170) | | | [0]{}: section 0x8-0x12.7 (11) 0x00| 01 | . | id: "type_section" (1) 0x8-0x8.7 (1) 0x00| 09 | . | size: 9 0x9-0x9.7 (1) | | | content{}: 0xa-0x12.7 (9) | | | ft{}: 0xa-0x12.7 (9) 0x00| 02 | . | n: 2 0xa-0xa.7 (1) | | | x[0:2]: 0xb-0x12.7 (8) | | | [0]{}: ft 0xb-0xe.7 (4) 0x00| 60 | ` | tag: 0x60 (valid) 0xb-0xb.7 (1) | | | rt1{}: 0xc-0xc.7 (1) 0x00| 00 | . | n: 0 0xc-0xc.7 (1) | | | x[0:0]: 0xd-NA (0) | | | rt2{}: 0xd-0xe.7 (2) 0x00| 01 | . | n: 1 0xd-0xd.7 (1) | | | x[0:1]: 0xe-0xe.7 (1) 0x00| 7f | . | [0]: "i32" (0x7f) t 0xe-0xe.7 (1) | | | [1]{}: ft 0xf-0x12.7 (4) 0x00| 60| `| tag: 0x60 (valid) 0xf-0xf.7 (1) | | | rt1{}: 0x10-0x11.7 (2) 0x10|01 |. | n: 1 0x10-0x10.7 (1) | | | x[0:1]: 0x11-0x11.7 (1) 0x10| 7f | . | [0]: "i32" (0x7f) t 0x11-0x11.7 (1) | | | rt2{}: 0x12-0x12.7 (1) 0x10| 00 | . | n: 0 0x12-0x12.7 (1) | | | x[0:0]: 0x13-NA (0) | | | [1]{}: section 0x13-0x52.7 (64) 0x10| 02 | . | id: "import_section" (2) 0x13-0x13.7 (1) 0x10| 3e | > | size: 62 0x14-0x14.7 (1) | | | content{}: 0x15-0x52.7 (62) | | | im{}: 0x15-0x52.7 (62) 0x10| 05 | . | n: 5 0x15-0x15.7 (1) | | | x[0:5]: 0x16-0x52.7 (61) | | | [0]{}: im 0x16-0x20.7 (11) | | | mod{}: 0x16-0x18.7 (3) 0x10| 02 | . | n: 2 0x16-0x16.7 (1) 0x10| 4d 67 | Mg | b: "Mg" 0x17-0x18.7 (2) | | | nm{}: 0x19-0x1d.7 (5) 0x10| 04 | . | n: 4 0x19-0x19.7 (1) 0x10| 67 6c 6f 62 | glob | b: "glob" 0x1a-0x1d.7 (4) | | | d{}: 0x1e-0x20.7 (3) 0x10| 03 | . | tag: "global" (0x3) 0x1e-0x1e.7 (1) | | | gt{}: 0x1f-0x20.7 (2) 0x10| 7f| .| t: "i32" (0x7f) 0x1f-0x1f.7 (1) 0x20|00 |. | m: "const" (0) 0x20-0x20.7 (1) | | | [1]{}: im 0x21-0x2f.7 (15) | | | mod{}: 0x21-0x23.7 (3) 0x20| 02 | . | n: 2 0x21-0x21.7 (1) 0x20| 4d 67 | Mg | b: "Mg" 0x22-0x23.7 (2) | | | nm{}: 0x24-0x2c.7 (9) 0x20| 08 | . | n: 8 0x24-0x24.7 (1) 0x20| 6d 75 74 5f 67 6c 6f 62 | mut_glob | b: "mut_glob" 0x25-0x2c.7 (8) | | | d{}: 0x2d-0x2f.7 (3) 0x20| 03 | . | tag: "global" (0x3) 0x2d-0x2d.7 (1) | | | gt{}: 0x2e-0x2f.7 (2) 0x20| 7f | . | t: "i32" (0x7f) 0x2e-0x2e.7 (1) 0x20| 01| .| m: "var" (1) 0x2f-0x2f.7 (1) | | | [2]{}: im 0x30-0x38.7 (9) | | | mod{}: 0x30-0x32.7 (3) 0x30|02 |. | n: 2 0x30-0x30.7 (1) 0x30| 4d 67 | Mg | b: "Mg" 0x31-0x32.7 (2) | | | nm{}: 0x33-0x36.7 (4) 0x30| 03 | . | n: 3 0x33-0x33.7 (1) 0x30| 67 65 74 | get | b: "get" 0x34-0x36.7 (3) | | | d{}: 0x37-0x38.7 (2) 0x30| 00 | . | tag: "func" (0x0) 0x37-0x37.7 (1) 0x30| 00 | . | x: 0 0x38-0x38.7 (1) | | | [3]{}: im 0x39-0x45.7 (13) | | | mod{}: 0x39-0x3b.7 (3) 0x30| 02 | . | n: 2 0x39-0x39.7 (1) 0x30| 4d 67 | Mg | b: "Mg" 0x3a-0x3b.7 (2) | | | nm{}: 0x3c-0x43.7 (8) 0x30| 07 | . | n: 7 0x3c-0x3c.7 (1) 0x30| 67 65 74| get| b: "get_mut" 0x3d-0x43.7 (7) 0x40|5f 6d 75 74 |_mut | | | | d{}: 0x44-0x45.7 (2) 0x40| 00 | . | tag: "func" (0x0) 0x44-0x44.7 (1) 0x40| 00 | . | x: 0 0x45-0x45.7 (1) | | | [4]{}: im 0x46-0x52.7 (13) | | | mod{}: 0x46-0x48.7 (3) 0x40| 02 | . | n: 2 0x46-0x46.7 (1) 0x40| 4d 67 | Mg | b: "Mg" 0x47-0x48.7 (2) | | | nm{}: 0x49-0x50.7 (8) 0x40| 07 | . | n: 7 0x49-0x49.7 (1) 0x40| 73 65 74 5f 6d 75| set_mu| b: "set_mut" 0x4a-0x50.7 (7) 0x50|74 |t | | | | d{}: 0x51-0x52.7 (2) 0x50| 00 | . | tag: "func" (0x0) 0x51-0x51.7 (1) 0x50| 01 | . | x: 1 0x52-0x52.7 (1) | | | [2]{}: section 0x53-0x56.7 (4) 0x50| 03 | . | id: "function_section" (3) 0x53-0x53.7 (1) 0x50| 02 | . | size: 2 0x54-0x54.7 (1) | | | content{}: 0x55-0x56.7 (2) | | | x{}: 0x55-0x56.7 (2) 0x50| 01 | . | n: 1 0x55-0x55.7 (1) | | | x[0:1]: 0x56-0x56.7 (1) 0x50| 00 | . | [0]: 0 x 0x56-0x56.7 (1) | | | [3]{}: section 0x57-0x5e.7 (8) 0x50| 06 | . | id: "global_section" (6) 0x57-0x57.7 (1) 0x50| 06 | . | size: 6 0x58-0x58.7 (1) | | | content{}: 0x59-0x5e.7 (6) | | | glob{}: 0x59-0x5e.7 (6) 0x50| 01 | . | n: 1 0x59-0x59.7 (1) | | | x[0:1]: 0x5a-0x5e.7 (5) | | | [0]{}: glob 0x5a-0x5e.7 (5) | | | gt{}: 0x5a-0x5b.7 (2) 0x50| 7f | . | t: "i32" (0x7f) 0x5a-0x5a.7 (1) 0x50| 00 | . | m: "const" (0) 0x5b-0x5b.7 (1) | | | e[0:2]: 0x5c-0x5e.7 (3) | | | [0]{}: in 0x5c-0x5d.7 (2) 0x50| 41 | A | opcode: "i32.const" (0x41) (valid) 0x5c-0x5c.7 (1) 0x50| 2b | + | n: 43 0x5d-0x5d.7 (1) | | | [1]{}: in 0x5e-0x5e.7 (1) 0x50| 0b | . | opcode: "end" (0xb) (valid) 0x5e-0x5e.7 (1) | | | [4]{}: section 0x5f-0xa9.7 (75) 0x50| 07| .| id: "export_section" (7) 0x5f-0x5f.7 (1) 0x60|49 |I | size: 73 0x60-0x60.7 (1) | | | content{}: 0x61-0xa9.7 (73) | | | ex{}: 0x61-0xa9.7 (73) 0x60| 07 | . | n: 7 0x61-0x61.7 (1) | | | x[0:7]: 0x62-0xa9.7 (72) | | | [0]{}: ex 0x62-0x6b.7 (10) | | | nm{}: 0x62-0x69.7 (8) 0x60| 07 | . | n: 7 0x62-0x62.7 (1) 0x60| 4d 67 2e 67 6c 6f 62 | Mg.glob | b: "Mg.glob" 0x63-0x69.7 (7) | | | d{}: 0x6a-0x6b.7 (2) 0x60| 03 | . | tag: "globalidx" (0x3) 0x6a-0x6a.7 (1) 0x60| 00 | . | x: 0 0x6b-0x6b.7 (1) | | | [1]{}: ex 0x6c-0x74.7 (9) | | | nm{}: 0x6c-0x72.7 (7) 0x60| 06 | . | n: 6 0x6c-0x6c.7 (1) 0x60| 4d 67 2e| Mg.| b: "Mg.get" 0x6d-0x72.7 (6) 0x70|67 65 74 |get | | | | d{}: 0x73-0x74.7 (2) 0x70| 00 | . | tag: "funcidx" (0x0) 0x73-0x73.7 (1) 0x70| 00 | . | x: 0 0x74-0x74.7 (1) | | | [2]{}: ex 0x75-0x7b.7 (7) | | | nm{}: 0x75-0x79.7 (5) 0x70| 04 | . | n: 4 0x75-0x75.7 (1) 0x70| 67 6c 6f 62 | glob | b: "glob" 0x76-0x79.7 (4) | | | d{}: 0x7a-0x7b.7 (2) 0x70| 03 | . | tag: "globalidx" (0x3) 0x7a-0x7a.7 (1) 0x70| 02 | . | x: 2 0x7b-0x7b.7 (1) | | | [3]{}: ex 0x7c-0x81.7 (6) | | | nm{}: 0x7c-0x7f.7 (4) 0x70| 03 | . | n: 3 0x7c-0x7c.7 (1) 0x70| 67 65 74| get| b: "get" 0x7d-0x7f.7 (3) | | | d{}: 0x80-0x81.7 (2) 0x80|00 |. | tag: "funcidx" (0x0) 0x80-0x80.7 (1) 0x80| 03 | . | x: 3 0x81-0x81.7 (1) | | | [4]{}: ex 0x82-0x8f.7 (14) | | | nm{}: 0x82-0x8d.7 (12) 0x80| 0b | . | n: 11 0x82-0x82.7 (1) 0x80| 4d 67 2e 6d 75 74 5f 67 6c 6f 62 | Mg.mut_glob | b: "Mg.mut_glob" 0x83-0x8d.7 (11) | | | d{}: 0x8e-0x8f.7 (2) 0x80| 03 | . | tag: "globalidx" (0x3) 0x8e-0x8e.7 (1) 0x80| 01| .| x: 1 0x8f-0x8f.7 (1) | | | [5]{}: ex 0x90-0x9c.7 (13) | | | nm{}: 0x90-0x9a.7 (11) 0x90|0a |. | n: 10 0x90-0x90.7 (1) 0x90| 4d 67 2e 67 65 74 5f 6d 75 74 | Mg.get_mut | b: "Mg.get_mut" 0x91-0x9a.7 (10) | | | d{}: 0x9b-0x9c.7 (2) 0x90| 00 | . | tag: "funcidx" (0x0) 0x9b-0x9b.7 (1) 0x90| 01 | . | x: 1 0x9c-0x9c.7 (1) | | | [6]{}: ex 0x9d-0xa9.7 (13) | | | nm{}: 0x9d-0xa7.7 (11) 0x90| 0a | . | n: 10 0x9d-0x9d.7 (1) 0x90| 4d 67| Mg| b: "Mg.set_mut" 0x9e-0xa7.7 (10) 0xa0|2e 73 65 74 5f 6d 75 74 |.set_mut | | | | d{}: 0xa8-0xa9.7 (2) 0xa0| 00 | . | tag: "funcidx" (0x0) 0xa8-0xa8.7 (1) 0xa0| 02 | . | x: 2 0xa9-0xa9.7 (1) | | | [5]{}: section 0xaa-0xb1.7 (8) 0xa0| 0a | . | id: "code_section" (10) 0xaa-0xaa.7 (1) 0xa0| 06 | . | size: 6 0xab-0xab.7 (1) | | | content{}: 0xac-0xb1.7 (6) | | | code{}: 0xac-0xb1.7 (6) 0xa0| 01 | . | n: 1 0xac-0xac.7 (1) | | | x[0:1]: 0xad-0xb1.7 (5) | | | [0]{}: code 0xad-0xb1.7 (5) 0xa0| 04 | . | size: 4 0xad-0xad.7 (1) | | | code{}: 0xae-0xb1.7 (4) | | | t{}: 0xae-0xae.7 (1) 0xa0| 00 | . | n: 0 0xae-0xae.7 (1) | | | x[0:0]: 0xaf-NA (0) | | | e[0:2]: 0xaf-0xb1.7 (3) | | | [0]{}: in 0xaf-0xb0.7 (2) 0xa0| 23| #| opcode: "global.get" (0x23) (valid) 0xaf-0xaf.7 (1) 0xb0|02 |. | x: 2 0xb0-0xb0.7 (1) | | | [1]{}: in 0xb1-0xb1.7 (1) 0xb0| 0b| | .| | opcode: "end" (0xb) (valid) 0xb1-0xb1.7 (1)