From owner-freebsd-current Wed Apr 3 16:40:26 2002 Delivered-To: freebsd-current@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id 21E7437B41A for ; Wed, 3 Apr 2002 16:40:11 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020404004010.DZOJ21252.rwcrmhc53.attbi.com@InterJet.elischer.org>; Thu, 4 Apr 2002 00:40:10 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA28005; Wed, 3 Apr 2002 16:39:49 -0800 (PST) Date: Wed, 3 Apr 2002 16:39:47 -0800 (PST) From: Julian Elischer To: peter.edwards@openet-telecom.com Cc: Terry Lambert , FreeBSD current users Subject: Re: comparing executables In-Reply-To: <3C8F04A10000036B@gpo.openet-telecom.lan> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 3 Apr 2002 peter.edwards@openet-telecom.com wrote: > > >Compare them without the ELF headers, a section at a time, so > >that the timestamps are irrelevent. > > From what I recall, there _are_ no timestamps in ELF images, > and compiling the same executable multiple times locally here > seems to bear out the fact: "cmp" on two successive outputs > is identical. > > The only timestamps that could be there would be in the > ident/which strings buried in the code, which would appear in > the ELF section payload: so stripping off the headers won't > help. > My answer BTW is to do objdump -d and compare that :-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message