Author Topic: get objdump to display full hex of a 64 bit mov instruction  (Read 10130 times)

Offline hax

  • New Member
  • Posts: 1
get objdump to display full hex of a 64 bit mov instruction
« on: December 14, 2014, 09:33:23 PM »
objdump won't show me the hex of a long 64 bit instruction.

objdump -d myobj.o

here is one of the lines:

Code: [Select]
3:   48 bb 2f 2f 62 69 6e    movabs $0x68732f6e69622f2f,%rbx
the instruction hex cuts off after the first 7 bytes of the mov instruction, even though there are 8 bytes in the operand.

What I want it to show would be:

Code: [Select]
3:   48 bb 2f 2f 62 69 6e 2f 73 68    movabs $0x68732f6e69622f2f,%rbx
I know that its easy to deduce the rest of the hex by looking at the actual instruction, but I just want to know how can I get it to show all of the hex?

Offline rkhb

  • Jr. Member
  • *
  • Posts: 7
  • Country: de
Re: get objdump to display full hex of a 64 bit mov instruction
« Reply #1 on: December 16, 2014, 09:13:25 PM »
Try

objdump -d -w myobj.o

viele grüße
ralph