From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21521 invoked by alias); 7 Aug 2005 08:12:52 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 21504 invoked by uid 22791); 7 Aug 2005 08:12:48 -0000 Received: from web50909.mail.yahoo.com (HELO web50909.mail.yahoo.com) (206.190.38.254) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Sun, 07 Aug 2005 08:12:48 +0000 Received: (qmail 44612 invoked by uid 60001); 7 Aug 2005 08:12:47 -0000 Message-ID: <20050807081247.44610.qmail@web50909.mail.yahoo.com> Received: from [203.97.72.139] by web50909.mail.yahoo.com via HTTP; Sun, 07 Aug 2005 20:12:47 NZST Date: Sun, 07 Aug 2005 08:12:00 -0000 From: Danny Smith Reply-To: dannysmith@users.sourceforge.net Subject: Re: Problems bootstrapping mainline on cygwin: warning: ./cc1-checksum.o ./cc1obj-checksum.o ./cc1plus-checksum.o libgcc/_chkstk.o differ To: christian.joensson@gmail.com Cc: GCC MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-08/txt/msg00214.txt.bz2 Christian Joensson wrote > I haven't bootstrapped gcc on cygwin for a while now... but, using gcc > cvs trunk LAST_UPDATED: Fri Aug 5 09:05:37 UTC 2005, I get comparison > warnings...: > warning: ./cc1-checksum.o differs > warning: ./cc1obj-checksum.o differs > warning: ./cc1plus-checksum.o differs ld inserts an 4 byte timestamp into the "Image File Header" (offset 4 bytes) of pe-coff executables. I believe that genchecksum.c takes that into account at line 46: /* Some executable formats have timestamps in the first 16 bytes, yuck. */ if (fseek (f, 16, SEEK_SET) != 0) But ld also inserts a 4-byte checksum of its own further down, (offset 64 bytes into the Image Optional Header). Changes in timestamps between stages will cause changes in the Optional Header checksums. GCC's genchecksum doesn't take that into account. I'd guess that the checksum diff for libgcc/_chkstk.o is due to differences in the name of the preprocessor-generated temp *.s assembly file in .stabstr section Danny Send instant messages to your online friends http://au.messenger.yahoo.com