bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Run objdump under windows XP for XCOFF object file created from IBM


From: David Du
Subject: RE: Run objdump under windows XP for XCOFF object file created from IBM AIX system
Date: Wed, 9 Mar 2005 09:52:21 -0500

HI, Ben, thanks for your response, I checked and redid my testing, I used
the right objdump.exe file, after I did make all and built the binutil, all
the  exe files are under the binutils directory, so I just ran the
objdump.exe file under that directory, ./objdump -i, and also I tried and
changed the objdump.exe of cygwin to objdump1.exe, and the objdump.exe under
binutils directory to objdump2.exe, ran each of them, here is the results:
And also I configured the target to just rs6000-aix, and build the binutils
and then ran make install, they then were installed under
cygwin/usr/local/bin directory, called rs6000-aix-objdump.exe, after I ran
this file, it said invalid target as shown in the following:

Any other idea what is wrong?

THanks for your help.

David


This is from cygwin:

C:\>which objdump1
/usr/bin/objdump1

C:\>objdump1 -i
BFD header file version 2.15.91 20040725
pe-i386
 (header little endian, data little endian)
  i386
pei-i386
 (header little endian, data little endian)
  i386
elf32-i386
 (header little endian, data little endian)
  i386
elf32-little
 (header little endian, data little endian)
  i386
elf32-big
 (header big endian, data big endian)
  i386
srec
 (header endianness unknown, data endianness unknown)
  i386
symbolsrec
 (header endianness unknown, data endianness unknown)
  i386
tekhex
 (header endianness unknown, data endianness unknown)
  i386
binary
 (header endianness unknown, data endianness unknown)
  i386
ihex
 (header endianness unknown, data endianness unknown)
  i386

               pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec
          i386 pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec

               symbolsrec tekhex binary ihex
          i386 symbolsrec tekhex binary ihex



THis one is from binutils, I rename it to objdump2:

$ pwd
/cygdrive/c/gnu/binutils-2.15/binutils
$ which objdump2
./objdump2
$ objdump2 -i
BFD header file version 2.15
pe-i386
 (header little endian, data little endian)
  i386
pei-i386
 (header little endian, data little endian)
  i386
elf32-i386
 (header little endian, data little endian)
  i386
elf32-little
 (header little endian, data little endian)
  i386
elf32-big
 (header big endian, data big endian)
  i386
srec
 (header endianness unknown, data endianness unknown)
  i386
symbolsrec
 (header endianness unknown, data endianness unknown)
  i386
tekhex
 (header endianness unknown, data endianness unknown)
  i386
binary
 (header endianness unknown, data endianness unknown)
  i386
ihex
 (header endianness unknown, data endianness unknown)
  i386

               pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec
          i386 pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec

               symbolsrec tekhex binary ihex
          i386 symbolsrec tekhex binary ihex


THis one is after I configure target to rs6000-aix and ran make install:

C:\cygwin\usr\local\bin>rs6000-aix-objdump -i
rs6000-aix-objdump: can't set BFD default target to `rs6000-ibm-aix':
Invalid bfd target


-----Original Message-----
From: address@hidden
[mailto:address@hidden Behalf Of Ben
Elliston
Sent: Tuesday, March 08, 2005 10:08 PM
To: address@hidden
Subject: Re: Run objdump under windows XP for XCOFF object file created
from IBM AIX system


David Du wrote:

> Hi, Ian, I tried both powerpc-aix and powerpc-elf, when I tested
objdump -i,
> they gave me error saying "objdump: can't set BFD default target to
> powerpc-aix: Invalid bfd target" and "objdump: can't set BFD default
target
> to powerpc-unknown-elf: Invalid bfd target"; any other idea?

At the risk of being the next bunny to answer a spate of newbie questions ..

David, it sounds like you aren't running the right objdump.  You may have
one
installed with Cygwin already.  When you build binutils, where are you
installing it
with `make install'?  Are you sure that when you run `objdump', it's the one
you're
expecting?  Try `which objdump' to be sure.

Ben



_______________________________________________
bug-binutils mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-binutils





reply via email to

[Prev in Thread] Current Thread [Next in Thread]