On May 3, 2006, at 7:21 AM, Perry Smith wrote:
On May 3, 2006, at 4:52 AM, Mattias Brändström wrote:
Hello!
Why does g++ generate binaries with different checksums when I
compile my project at two different occasions with the same commands?
Someone please correct me if I'm wrong but I believe that the
header in xcoff has a time stamp of when the executable was
created. (xcoff is used in AIX and, I think, other platforms.)
I just checked. The xcoff header starts with a two byte magic
number, two bytes for the number of sections, and a four byte
timestamp. The header I'm looking at says that a 0 for the timestamp
is valid so you could have a program smash it to 0 after the link
step. Then the checksums of two executables will match.