From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16060 invoked from network); 2 May 2000 13:40:39 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 2 May 2000 13:40:39 -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 JAA28108 for ; Tue, 2 May 2000 09:40:38 -0400 Received: (from ink@localhost) by jurassic.park.msu.ru (8.9.3/8.9.3) id RAA31196; Tue, 2 May 2000 17:41:50 +0400 Date: Tue, 2 May 2000 17:41:50 +0400 From: Ivan Kokshaysky To: "G. Hugh Song" Cc: linux-kernel@vger.rutgers.edu, Alan Cox , axp-list@redhat.com Subject: [patch] Re: Alpha LX164 with 2.3.99pre6 "not 2 program headers" Message-ID: <20000502174150.A30892@jurassic.park.msu.ru> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="XsQoSWH+UP9D9v3l" X-Mailer: Mutt 1.0i In-Reply-To: ; from hugh@lucia.kjist.ac.kr on Sat, Apr 29, 2000 at 07:04:48PM +0900 --XsQoSWH+UP9D9v3l Content-Type: text/plain; charset=us-ascii On Sat, Apr 29, 2000 at 07:04:48PM +0900, G. Hugh Song wrote: > Expected 1, not 2 program headers > ... Image loaded into memory, entry @ 0x0 > MILO: Failed to load the kernel > MILO> > I think we should explicitly direct the linker to put everything into the single segment. Patches for 2.3.99pre6 and 2.2.15pre20 attached. Ivan. --XsQoSWH+UP9D9v3l Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="lds2.2.patch" --- 2.2.15pre20/arch/alpha/vmlinux.lds Wed May 14 09:41:00 1997 +++ linux-2.2/arch/alpha/vmlinux.lds Tue May 2 16:55:29 2000 @@ -1,10 +1,11 @@ OUTPUT_FORMAT("elf64-alpha") ENTRY(__start) +PHDRS { kernel PT_LOAD ; } SECTIONS { . = 0xfffffc0000310000; _text = .; - .text : { *(.text) } + .text : { *(.text) } :kernel .text2 : { *(.text2) } _etext = .; --XsQoSWH+UP9D9v3l Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="lds2.3.patch" --- 2.3.99pre6/arch/alpha/vmlinux.lds Fri Feb 25 09:36:04 2000 +++ linux-2.3/arch/alpha/vmlinux.lds Tue May 2 15:13:03 2000 @@ -1,10 +1,11 @@ OUTPUT_FORMAT("elf64-alpha") ENTRY(__start) +PHDRS { kernel PT_LOAD ; } SECTIONS { . = 0xfffffc0000310000; _text = .; - .text : { *(.text) } + .text : { *(.text) } :kernel _etext = .; /* Exception table */ --XsQoSWH+UP9D9v3l--