On 3/5/07, Ralf Baechle <ralf@xxxxxxxxxxxxxx> wrote:
On Mon, Mar 05, 2007 at 09:51:25PM +0530, Rajat Jain wrote: > Are you using a native compiler or a cross compiler? > > If you are using a cross compiler, then you need to use the "cross > compiler" version of objdump / readelf utilities as well. For > instance if you are using mips-linux-gcc to compile, then you need > mips-linux-readelf / mips-linux-objdump etc. In general your're right but for this particular purpose for example an i386-linux-objdump will do the job for 32-bit big and little endian MIPS ELF. It will - depending on the exact binutils configuration - fail with an error message for 64-bit ELF. Ralf
Apparently it is a bug in MIPS SDE toolchain, even in the latest version 6.05. With emdebian toolchain it works just fine.