delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/20/13:28:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
Path: not-for-mail
From: Shankar Unni <shankar AT cotagesoft DOT com>
Subject: Re: Repeated gcc yields differing .exe files
Date: Fri, 20 Dec 2002 10:27:19 -0800
Lines: 20
Message-ID: <3E036107.9080403@cotagesoft.com>
References: <001201c2a820$26daf9a0$6fc82486 AT medschool DOT dundee DOT ac DOT uk>
Mime-Version: 1.0
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: en-us, en

fergus AT bonhard DOT uklinux DOT net wrote:

> The fact that hello.exe alters seems a bit non-optimal to me, given that
> md5sums are a pretty standard way for people like you and me to check that
> we're running the same stuff, intended to do the same thing. Incidentally,
> it's always the same two bytes that alter:

As egor said: it's the timestamp. Almost every object file format in use 
today has compilation timestamps to identify when the executable was 
created; many even have other tagging information identifying the 
compilation environment.

It's a completely invalid assumption that the same source compiled twice 
will give identical binary files. This is a GOOD thing, because it 
identifies a *binary* precisely, you know if it has been replaced, even 
with something "identical".  This is especially important when you're 
installing a full installation of some product with many files - you can 
take an overall checksum of everything, and verify that nothing has been 
touched or tampered with.




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019