From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 7087 invoked from network); 6 Aug 1999 08:46:52 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 6 Aug 1999 08:46:52 -0000 Received: from jurassic.park.msu.ru (jurassic.park.msu.ru [195.208.223.243]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id EAA10888 for ; Fri, 6 Aug 1999 04:46:49 -0400 Received: (from ink@localhost) by jurassic.park.msu.ru (8.9.3/8.9.3) id MAA28310 for axp-list@redhat.com; Fri, 6 Aug 1999 12:46:44 +0400 Date: Fri, 6 Aug 1999 12:46:43 +0400 From: Ivan Kokshaysky To: axp-list@redhat.com Subject: Re: Tru64 executeables Message-ID: <19990806124643.A28305@jurassic.park.msu.ru> References: <199908051103.HAA00900@sarg.Ryerson.CA> <199908051625.MAA09102@adder.cs.Virginia.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <199908051625.MAA09102@adder.cs.Virginia.EDU>; from Greg Lindahl on Thu, Aug 05, 1999 at 12:25:13PM -0400 On Thu, Aug 05, 1999 at 12:25:13PM -0400, Greg Lindahl wrote: > What we really need is the -taso flag added to GNU ld. This flag links > a process so that it runs in a 32-bit address space (e.g. it places > everything so that the upper 32 bits of all addresses is zero). Minor > kernel changes are also needed. That would allow Netscape and a > variety of other broken programs to be easily compiled in AlphaLinux. > Actually, it's possible right now. Create linker script with `ld --verbose', edit it like this - . = 0x120000000 + SIZEOF_HEADERS; + . = 0x10000 + SIZEOF_HEADERS; and link with it. Then you have to set 1 (EF_ALPHA_32BIT) at file offset 0x30 (Elf64_Ehdr.e_flags) in the executable. Any 2.2.x kernel supports this flag. (Thanks to Richard Henderson who pointed that out at the gcc list) Ivan.