2025-03-14 21:59:59 -06:00
|
|
|
# wasm-objdump
|
|
|
|
|
|
|
|
|
|
> Display information from WebAssembly binaries.
|
|
|
|
|
> More information: <https://github.com/WebAssembly/wabt>.
|
|
|
|
|
|
|
|
|
|
- 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}}`
|