This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Different executables of the same source


"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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]