Binary files differ

Bill Gatliff bgat@billgatliff.com
Thu Feb 12 07:36:00 GMT 2004


Daniel:


As a guess, I'm wondering if they're related to debugging information 
that includes compilation time.  Try using objcopy to translate the 
files to binary or S-record, and try your diff again.

b.g.

Daniel Lidsten wrote:

>Hi,
>
>I have two files (eCos libs) that i have built one after the other with
>the exact same source. I then issue a powerpc-eabi-objcopy --strip-all
>on the files and compare them with a hex editor. The strange thing is
>that i get a lot of differences in the files. However, the differences
>are at the exact same place in the files and they are some kind of
>rolling number. In one file i have "36 36"hex and in the other file at
>the same place i have "38 34"hex. This kind of differences occurs on at
>least 100 places on the file. When i scroll down along the differences
>then they increase with one number at the time so the first file goes
>from "36 36" to "36 37". The same thing happens with the second file
>which goes from "38 34" to "38 35".
>
>Any ideas what this is? Why cant i build the exact same binary twice?
>
>Regards, Daniel Lidsten
>
>------
>Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
>Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
>
>  
>



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list