From owner-freebsd-alpha Mon Apr 9 5:17: 5 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from iona.dcs.gla.ac.uk (iona.dcs.gla.ac.uk [130.209.240.35]) by hub.freebsd.org (Postfix) with ESMTP id 4887837B422 for ; Mon, 9 Apr 2001 05:17:01 -0700 (PDT) (envelope-from neugebar@dcs.gla.ac.uk) Received: from therese.dcs.gla.ac.uk ([130.209.241.134] helo=therese.dcs.gla.ac.uk.dcs.gla.ac.uk) by iona.dcs.gla.ac.uk with esmtp (Exim 3.13 #1) id 14mabL-0004C5-00 for freebsd-alpha@FreeBSD.ORG; Mon, 09 Apr 2001 13:17:00 +0100 Received: by therese.dcs.gla.ac.uk.dcs.gla.ac.uk (8.11.2/Dumb) id f39CGkN06555; Mon, 9 Apr 2001 13:16:46 +0100 (BST) To: freebsd-alpha@FreeBSD.ORG Subject: Re: 64bits mixups (Was: Re: Vinum status) References: <20010408030913.213D1380A@overcee.netplex.com.au> <3AD05711.7000002@videotron.ca> <15056.35511.810402.576637@grasshopper.cs.duke.edu> <15056.49422.725576.853296@grasshopper.cs.duke.edu> From: Rolf Neugebauer Date: 09 Apr 2001 13:16:42 +0100 In-Reply-To: Andrew Gallatin's message of "Sun, 8 Apr 2001 15:50:38 -0400 (EDT)" Message-ID: Lines: 56 User-Agent: Gnus/5.0805 (Gnus v5.8.5) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Andrew Gallatin writes: > Rolf Neugebauer writes: > > > > taso actually is a linker option, ie independent of the compiler. > > Ah, yes. I was actually thinking of this (Tru64) option: > > -xtaso_short > Directs the compiler to allocate 32-bit pointers by default. You can > still use 64-bit pointers, but only by the use of pragmas. The > -xtaso_short option also implies -xtaso; that is, -xtaso_short also > causes the compiler to respect the pointer_size pragmas. > > The use of the -xtaso_short option can cause conflicts between the > compiler's assumptions about pointer sizes and data layouts and the > default values that were in effect when the system libraries were > created. See protect_headers_setup(8) for details on how to avoid this > conflict. > > > > There is also a version of the GNU ld which implements this flag. IIRC > > this is not (yet?) part of the standard binutils distro, but is in a > > separate Linux branch. I once installed it on an Alpha/Linux box but > > can't remember were I downloaded it from :( > > Oh, That's interesting. I thought the Linux people were fundamentally > opposed to this. I am not sure about this. Folks on the linux-axp certainly seam to appreciate it. Someone in our department briefly used it feature and said it worked fine for one of the apps he needed it for. The Linux binutils are on any kernel.org mirror under pub/linux/devel/binutils. The version I just checked is 2.11.90.0.4 and ld/ChangeLog contains the following comment: 2000-07-27 Ivan Kokshaysky * emulparams/elf64alpha.sh: Implement "-taso" emulation specific option to fit 64-bit executable in the lower 31-bit address range. This is done by changing start address of .interp (the very first section of executable) and then setting EF_ALPHA_32BIT elf header flag. Ivan explained in a recent posting http://www.alphalinux.org/archives/axp-list/December2000/0034.shtml that Richard Henderson came up with the initial idea and he implemented it. I vaguely recall that Richard posted this idea to the same list but I couldn't find his message. In the same post Ivan also says that the change made it into the official 2.10 binutils but I couldn't find taso being referenced in the 2.10.1 source anywhere. Rolf To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message