gcc binary comparison help

Brian Dessent brian@dessent.net
Tue Dec 5 09:42:00 GMT 2006


Caleb Cittadino wrote:

> I'm using MacOSX + gcc4.  What do you mean by object format?

ELF, COFF, a.out, etc.  I have no idea what OS X uses.

> Also, I tried discarding the first 16 bytes as you suggested.  It
> looks like a different set of data is changing each time, but the file
> size remains the same.  So this method won't work.
> 
> Perhaps it is something in addition to (or instead of) the timestamp
> that is changing each time?

You might need to use -frandom-seed.  And try diffing the preprocessed
source for the two objects that differ to see what exactly is changing.

Brian



More information about the Gcc-help mailing list