gcc binary comparison help

Ian Lance Taylor iant@google.com
Wed Dec 6 23:08:00 GMT 2006


"Caleb Cittadino" <caleb.cittadino@gmail.com> writes:

> Strangely, when I use -frandom-seed I get a bigger set of differing
> data between the resulting library files.  I checked the documentation
> for gcc and it states this options is used to "produce reproducibly
> identical object files."  So I assume this will only work on .o files?

Wait: are you comparing .o or .a files?  .a files will always have
lots of differences, because the .a file includes a timestamp.

You should be able to compare the .o files reliably.

Ian



More information about the Gcc-help mailing list