From: reig@dcs.gla.ac.uk
To: axp-list@redhat.com
Cc: glindahl@hpti.com, reig@dcs.gla.ac.uk (Fermin Reig),
jhr@research.bell-labs.com
Subject: Re: 32-bit binaries (howto?)
Date: Thu, 14 Dec 2000 12:56:46 +0000 (GMT) [thread overview]
Message-ID: <200012141256.MAA27423@crab.dcs.gla.ac.uk> (raw)
In-Reply-To: <000101c05b5f$d7c35f60$93a4fea9@hptilap.hpti.com> from "Greg Lindahl" at Dec 01, 2000 01:27:56 AM
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
next prev parent reply other threads:[~2000-12-14 12:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-29 16:49 32-bit binaries (howto?) reig
2000-11-29 17:00 ` Ron Farrer
2000-11-29 17:08 ` Ross A Knepper
2000-11-29 17:36 ` reig
2000-11-30 3:07 ` Greg Lindahl
2000-11-30 11:05 ` reig
2000-12-01 6:27 ` Greg Lindahl
2000-12-02 21:39 ` Ivan Kokshaysky
2000-12-14 12:56 ` reig [this message]
2000-12-14 16:13 ` Greg Lindahl
2000-12-14 16:38 ` reig
2000-11-30 3:05 ` Greg Lindahl
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox