I want to use objdump
to disassemble an ELF to "clean" assembly that can be assembled directly. However, the raw output of objdump
contains descriptive text such as:
Disassembly of section .text:
0000000000002c00 <__grow_type_table>:
2c00: 41 55 push %r13
2c02: 41 54 push %r12
2c04: ba 00 10 00 00 mov $0x1000,%edx
So I'm wondering is there an option to generate clean code?