From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 3307 invoked from network); 16 Jan 1999 02:12:16 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 Jan 1999 02:12:16 -0000 Received: from piglet.twiddle.net (rth@piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id UAA26968 for ; Fri, 15 Jan 1999 20:48:46 -0500 Received: (from rth@localhost) by piglet.twiddle.net (8.8.7/8.8.7) id RAA11279 for axp-list@redhat.com; Fri, 15 Jan 1999 17:50:54 -0800 Message-ID: <19990115175054.A11127@piglet.twiddle.net> Date: Fri, 15 Jan 1999 17:50:54 -0800 From: Richard Henderson To: axp-list@redhat.com Subject: Re: gcc/egcs flags to turn off 64bit code generation? References: <19990114093006.B8597@piglet.twiddle.net> <199901141746.MAA00617@adder.cs.Virginia.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2 In-Reply-To: <199901141746.MAA00617@adder.cs.Virginia.EDU>; from Greg Lindahl on Thu, Jan 14, 1999 at 12:46:39PM -0500 On Thu, Jan 14, 1999 at 12:46:39PM -0500, Greg Lindahl wrote: > How about the suggested abuse of -Tbss, -Tdata, and -Ttext... Linker scripts, please. Those options only work properly for a.out. Other file formats are more complex than that. > ... coupled > with a kernel hack that moves the start addresses of the stack and > heap? That would be setting EF_ALPHA_32BIT in the e_flags field of the ELF header -- em86 uses this. > Wouldn't that get the desired result with minimal effort? It doesn't get you 32-bit pointers -- sizeof(void*) is still 8. But it does make you tollerant of casting pointers through ints. I suppose there might be some application subset that would be happy with this. > Or is there other stuff mapped down there? No, nothing is mapped below the stack (top at 6GB) by default. r~