From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id D75D42F1D0 for ; Thu, 14 Dec 2000 07:56:51 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id eBECupH32397 for axp-list@listman.redhat.com; Thu, 14 Dec 2000 07:56:51 -0500 Received: from iona.dcs.gla.ac.uk (iona.dcs.gla.ac.uk [130.209.240.35]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id eBECupD32389 for ; Thu, 14 Dec 2000 07:56:51 -0500 Received: from crab.dcs.gla.ac.uk ([130.209.241.150]) by iona.dcs.gla.ac.uk with esmtp (Exim 3.13 #1) id 146XwH-0001tk-00; Thu, 14 Dec 2000 12:56:49 +0000 Received: by crab.dcs.gla.ac.uk (8.8.8+Sun/Dumb) id MAA27423; Thu, 14 Dec 2000 12:56:47 GMT From: reig@dcs.gla.ac.uk Message-Id: <200012141256.MAA27423@crab.dcs.gla.ac.uk> Subject: Re: 32-bit binaries (howto?) To: axp-list@redhat.com Date: Thu, 14 Dec 2000 12:56:46 +0000 (GMT) Cc: glindahl@hpti.com, reig@dcs.gla.ac.uk (Fermin Reig), jhr@research.bell-labs.com In-Reply-To: <000101c05b5f$d7c35f60$93a4fea9@hptilap.hpti.com> from "Greg Lindahl" at Dec 01, 2000 01:27:56 AM X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors Greg Lindahl wrote: > > > "ML values are represented as 32-bit quantities, so all code and data > > has to live in the first 2^32 bytes of address space, or things break. > > The run-time system is actually designed to support a 64-bit > > implementation, but the compiler needs substantial reworking to do > > so." > > This is exactly what -taso fixes. [...] OK, I've linked my program with gcc -Wl,-taso ... and yet I'm seeing addresses larger than 2^32 with gdb: (gdb) n 186 bibop[start++] = aid; (gdb) p bibop $4 = 0x20000010000 (gdb) p start $5 = 33554433 (gdb) p bibop[start] Cannot access memory at address 0x20004010002. (gdb) n Program received signal SIGSEGV, Segmentation fault. 0x1201dda0 in MarkRegion (bibop=0x20000010000, baseAddr=0x20000010000, szB=655360, aid=0) at gc-util.c:186 186 bibop[start++] = aid; bibop is declared as a pointer to data. Unsigned16_t *bibop; Anyone knows why bibop isn't pointing to the lower 32 bits if I have linked with -taso? Thanks for any help, Fermin