From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11538 invoked by alias); 20 Apr 2005 16:26:06 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 11415 invoked from network); 20 Apr 2005 16:25:54 -0000 Received: from unknown (HELO dublin.act-europe.fr) (212.157.227.154) by sourceware.org with SMTP; 20 Apr 2005 16:25:54 -0000 Received: from localhost (province.act-europe.fr [10.10.0.214]) by filtered-dublin.act-europe.fr (Postfix) with ESMTP id 3E90D229ECC; Wed, 20 Apr 2005 18:25:53 +0200 (MET DST) Received: from dublin.act-europe.fr ([10.10.0.154]) by localhost (province.act-europe.fr [10.10.0.214]) (amavisd-new, port 10024) with ESMTP id 31611-02; Wed, 20 Apr 2005 18:25:53 +0200 (CEST) Received: from berne.act-europe.fr (berne.act-europe.fr [10.10.0.165]) by dublin.act-europe.fr (Postfix) with ESMTP id ED8A2229ECB; Wed, 20 Apr 2005 18:25:52 +0200 (MET DST) Received: by berne.act-europe.fr (Postfix, from userid 560) id 9BC82592B; Wed, 20 Apr 2005 12:25:52 -0400 (EDT) Date: Wed, 20 Apr 2005 16:26:00 -0000 From: Jerome Guitton To: mark.kettenis@xs4all.nl Cc: binutils@sources.redhat.com Subject: som.c compilation errors Message-ID: <20050420162552.GA15672@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2005-04/txt/msg00573.txt.bz2 Hello Mark, We are experimenting some problems your last modification to som.c. I mean, this one: http://sources.redhat.com/ml/binutils/2005-04/msg00455.html This modification makes our builds fail on HP-UX 11.00 and 11.11: @@ -5070,16 +5080,16 @@ som_bfd_print_private_bfd_data (bfd *abf fprintf (f, "\n"); fprintf (f, " type %#x\n", auxhdr->type); fprintf (f, " length %#x\n", auxhdr->length); - fprintf (f, " text size %#x\n", exec_header->exec_tsize); - fprintf (f, " text memory offset %#x\n", exec_header->exec_tmem); - fprintf (f, " text file offset %#x\n", exec_header->exec_tfile); - fprintf (f, " data size %#x\n", exec_header->exec_dsize); - fprintf (f, " data memory offset %#x\n", exec_header->exec_dmem); - fprintf (f, " data file offset %#x\n", exec_header->exec_dfile); - fprintf (f, " bss size %#x\n", exec_header->exec_bsize); - fprintf (f, " entry point %#x\n", exec_header->exec_entry); - fprintf (f, " loader flags %#x\n", exec_header->exec_flags); - fprintf (f, " bss initializer %#x\n", exec_header->exec_bfill); + fprintf (f, " text size %#lx\n", exec_header->exec_tsize); + fprintf (f, " text memory offset %#lx\n", exec_header->exec_tmem); + fprintf (f, " text file offset %#lx\n", exec_header->exec_tfile); + fprintf (f, " data size %#lx\n", exec_header->exec_dsize); + fprintf (f, " data memory offset %#lx\n", exec_header->exec_dmem); + fprintf (f, " data file offset %#lx\n", exec_header->exec_dfile); + fprintf (f, " bss size %#lx\n", exec_header->exec_bsize); + fprintf (f, " entry point %#lx\n", exec_header->exec_entry); + fprintf (f, " loader flags %#lx\n", exec_header->exec_flags); + fprintf (f, " bss initializer %#lx\n", exec_header->exec_bfill); } return TRUE; On which version did you build? som_exec_auxhdr may be different. On our two HP-UX machines, it is defined as: struct som_exec_auxhdr { struct aux_id som_auxhdr; /* som auxiliary header header */ int exec_tsize; /* text size in bytes */ int exec_tmem; /* offset of text in memory */ int exec_tfile; /* location of text in file */ int exec_dsize; /* initialized data */ int exec_dmem; /* offset of data in memory */ int exec_dfile; /* location of data in file */ int exec_bsize; /* uninitialized data (bss) */ int exec_entry; /* offset of entrypoint */ int exec_flags; /* loader flags */ int exec_bfill; /* bss initialization value */ }; Can you check on your side? Thanks in advance! Jerome