Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: axp-list@redhat.com
Subject: Re: gcc/egcs flags to turn off 64bit code generation?
Date: Fri, 15 Jan 1999 19:28:37 -0800	[thread overview]
Message-ID: <19990115192837.B11127@piglet.twiddle.net> (raw)
In-Reply-To: <001b01be403b$25c44360$b9db0318@dnrc.belllabs.com>; from Sanjay Lal on Thu, Jan 14, 1999 at 10:57:19PM -0500

On Thu, Jan 14, 1999 at 10:57:19PM -0500, Sanjay Lal wrote:
> I am not sure what addresses to use for the various segments?

If you did go with Greg's suggestion -- modulo the comments
I just added in another message -- I'd suggest copying the
standard linker script from /usr/lib/ldscripts/elf64alpha.x
and modifying 

  . = 0x120000000 + SIZEOF_HEADERS;

at the top to read

  . = 0x100000 + SIZEOF_HEADERS;

which gives you a program base of 1MB.  That makes sure that you
can still trap NULL pointer errors.  In addition, some versions
of binutils chose 1MB as the maximum alpha architectural page
size and will pad the binary appropriately.  (The correct number
is 64k, and has been fixed in, i believe, binutils 2.9.0.) 


r~


  reply	other threads:[~1999-01-16  3:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-15  3:57 gcc/egcs flags to turn off 64bit code generation? Sanjay Lal
1999-01-16  3:28 ` Richard Henderson [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-01-14 12:52 Sanjay Lal
1999-01-14 17:30 ` Richard Henderson
1999-01-14 17:46   ` Greg Lindahl
1999-01-16  1:50     ` Richard Henderson
1999-01-16  2:03       ` 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