Different executables of the same source

Demmer, Thomas TDemmer@krafteurope.com
Tue Feb 10 14:12:00 GMT 2004


"Alex Vinokur" wrote:
[...]
>$ gcc foo.c -o x1.exe
>
>$ gcc foo.c -o x2.exe
>
>$ cmp x1.exe x2.exe
>x1.exe x2.exe differ: char 137, line 2
>
>Why are x1.exe and x2.exe different?

Because the PE header has a field that contains
the creation time. Due to this "feature" the MD5-sums
of executables compiled on two different machines will hardly ever
concide. I have no clue why this feature exists.

Ciao
Tom


Best regards / Mit freundlichen Grüssen,


Thomas Demmer
Kraft Foods R&D Inc.
Chocolate WW Process Development

Tel.: +49 (0)89 62738-6302
Fax: +49 (0)89 62738-86302


Thought of the day
By doing just a little every day, you can gradually let the task
completely overwhelm you.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list