Re: Same binary, different md5sums

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fabian Cenedese writes:
 > At 10:59 03.05.2006 +0100, Andrew Haley wrote:
 > >Mattias Brändström writes:
 > >
 > > > 
 > > > Why does g++ generate binaries with different checksums when I compile 
 > > > my project at two different occasions with the same commands?
 > > > 
 > > > I realize that this is a fairly broad question, but I would like to know 
 > > > if there is anything in particular I should take into account when 
 > > > trying to generate binaries with the same checksum.
 > >
 > >There could be all manner of reasons.  To begin with, diff the
 > >assembly language source produced by g++ -save-temps.  That'll get us
 > >started.
 > 
 > Is this bigger project made of single or multiple source files? If you're
 > talking about the linked object file it could also be that the linker doesn't
 > always put the modules in the same order (no need to).

Why not?  It's not as if the linker randomizes its inputs.  Different
linkers might do things differently, sure, but I'm assuming the OP
isn't doing anything really silly such as using different linkers.

Andrew.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux