Skip to main content

disasm_elf

Function disasm_elf 

Source
pub fn disasm_elf(_data: &[u8], image: &ElfImage, syms: Option<&SymbolTable>)
Expand description

Disassemble an entire ELF image, segment by segment, like objdump -d.

Prints to stdout in the following format:

Disassembly of section .text:

80000000 <_start>:
  80000000  02000117  auipc   sp, 0x2000

Segments shorter than 4 bytes are skipped.