|
From: | Nick Clifton |
Subject: | Re: [ binutils / gprof ] problems with file format |
Date: | Thu, 26 Aug 2004 15:09:17 +0100 |
User-agent: | Mozilla Thunderbird 0.7.3 (X11/20040803) |
Hi Christophe,
Here are the tests I did: I used binutils 2.15.1) I compiled libiberty, bfd and gprof on a sparc-solaris system and did the same on a i686-pc2) I compiled the program to be tested for i486 and run it on a i486-pc.3.a) I executed gprof on the i686-pc "gprof --file-format=magic my_file" -> OK no prob; this works normally. 3.b) I did the same on the sparc "gprof --file-format=magic my_file" and received this message:"gmon.out: Error 0"
I suspect that this is an endian-ness problem. x86's are little endian and sparcs big endian (by default anyway). So your gmon.out file is being produced on a little endian i486 pc and the gprof on the sparc is expecting a big-endian input file.
Try producing the gmon.out file on your sparc system and I think that you will find that it works.
Cheers Nick
[Prev in Thread] | Current Thread | [Next in Thread] |