2025-03-14 21:59:59 -06:00
|
|
|
# wasm-objdump
|
|
|
|
|
|
|
|
|
|
> Display information from WebAssembly binaries.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://webassembly.github.io/wabt/doc/wasm-objdump.1.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the section headers of a given binary:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`wasm-objdump {{[-h|--headers]}} {{file.wasm}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the entire disassembled output of a given binary:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`wasm-objdump {{[-d|--disassemble]}} {{file.wasm}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the details of each section:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`wasm-objdump {{[-x|--details]}} {{file.wasm}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the details of a given section:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`wasm-objdump {{[-j|--section]}} '{{import}}' {{[-x|--details]}} {{file.wasm}}`
|