Sunday, November 29, 2009

How To Configure BinUtils?

When you simply compile binutils with "./configure; make", objdump will only support your machine's native architecture. In order to enable various targets, you have to use "--enable-targets" option when you configure it.

The simplest way is "--enable-targets=all", which will configure all possible architectures including ARM, MIPS, PowerPC, and so forth. However, this will generate more than 1 GB of object files inside your source code directory.

So, choose your favorite architectures, and use commas to separate them.

For example, if you want to enable ARM and MIPS for your objdump, use the following command.

./configure --enable-targets=arm-elf,mips

You can also use pe-i386 target to objdump PE files in your linux box.

No comments:

Post a Comment

About

My photo
Hi, I am a PhD candidate at CMU. I was one of the founding members of PPP (Plaid Parliament of Pwning). I like programming in OCaml, F#, Haskell, and C++.