Question

enter image description here

Platform is on 32 bit Linux, I use objdump to disassemble a binary, and trying to re-use the address column and assemble code columns , but after searching in the objdump's manual, I can not find how to force objdump to not output the hex code columns..

I also consider writing some scripts to trim off the unnecessary column, but it seems not a very straight forward work, basically how can I distinguish from hex code and assemble code?

Could anyone give me some help?

Was it helpful?

Solution

objdump -j .text -M intel -Dr hello | grep "^ " | cut -f2,3
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top