How to do it...

We'll disassemble our binary for analysis using the following steps:

  1. Type the following in the open Terminal session and review the output:
$ ndisasm -a -p intel ch04-example
  1. Next, type the following in the open Terminal session and examine the output:
$ objdump -D -M intel ch04-example
  1. When you have finished reviewing the output, type the following in the open Terminal session and study the output:
$ objdump -d -M intel ch04-example
  1. After you're done reviewing the output, run the following command, taking special care to notice the different filename. Study the output after running the command:
$ objdump -d -M intel ch04-example.o
    ..................Content has been hidden....................

    You can't read the all page of ebook, please click here login for view all page.
    Reset
    18.222.35.77