gcc compiled binaries w/different sizes?

Posted by BillTorpey on Stack Overflow See other posts from Stack Overflow or by BillTorpey
Published on 2009-08-14T13:36:54Z Indexed on 2010/05/23 20:40 UTC
Read the original article Hit count: 173

Filed under:
|
|
|

If the same code is built at different times w/gcc, the resulting binary will have different contents. OK, I'm not wild about that, but that's what it is.

However, I've recently run into a situation where the same code, built with the same version of gcc, is generating a binary with a different size than a prior build (by about 1900 bytes).

Does anyone have any idea what may be causing either of these situations? Is this some kind of ELF issue? Are there any tools out there (other than ldd) that can be used to dump contents of binaries to see what exactly is different?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about c++

Related posts about linux