From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 19 Dec 2002 21:34:50 +0000 (GMT) Received: from cm19173.red.mundo-r.com ([IPv6:::ffff:213.60.19.173]:46208 "EHLO demo.mitica") by linux-mips.org with ESMTP id ; Thu, 19 Dec 2002 21:34:50 +0000 Received: by demo.mitica (Postfix, from userid 501) id 4B6D0D657; Thu, 19 Dec 2002 22:40:55 +0100 (CET) To: Thiemo Seufer Cc: Ralf Baechle , mipslist Subject: Re: [PATCH]: for poor sools with old I2 & 64 bits kernel References: <20021219210103.GJ449@rembrandt.csv.ica.uni-stuttgart.de> <20021219212817.GL449@rembrandt.csv.ica.uni-stuttgart.de> X-Url: http://people.mandrakesoft.com/~quintela From: Juan Quintela In-Reply-To: <20021219212817.GL449@rembrandt.csv.ica.uni-stuttgart.de> Date: 19 Dec 2002 22:40:55 +0100 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.92 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 1014 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: quintela@mandrakesoft.com Precedence: bulk X-list: linux-mips >>>>> "thiemo" == Thiemo Seufer writes: thiemo> Juan Quintela wrote: >> >>>>> "thiemo" == Thiemo Seufer writes: >> thiemo> Juan Quintela wrote: >> >> >> >> Hi >> >> this small patch made possible to compile a 64bit kernel for >> >> people that have old proms that only accept ecoff. As usual >> >> stolen from the 32 bits version. >> >> >> >> The easiest way is creating the file in arch/mips/boot, >> >> otherwise we need to copy elf2ecoff.c to mips64. >> thiemo> Sorry, but I plainly doubt you have tested this. >> thiemo> I tried such a method today, and elf2ecoff failed to work on ELF64 files. thiemo> Maybe a recent enough objcopy is the better choice for this purpose. >> >> I tested it and it works :) thiemo> How is this possible, given that elf2ecoff uses Elf32_* variables to thiemo> process the ELF file? elf2ecoff might be bad enough at error checking thiemo> to produce some binary garbage. >> Notice that I am using egcs for MIPS64 as I am not able to compile the >> kernel with gcc-3.2 :( thiemo> I don't think this is compiler dependent. :-) from arch/mips64/Makefile: # # Some machines like the Indy need 32-bit ELF binaries for booting purposes. # Other need ECOFF, so we build a 32-bit ELF binary for them which we then # convert to ECOFF using elf2ecoff. # ifdef CONFIG_BOOT_ELF32 GCCFLAGS += -Wa,-32 $(shell if $(CC) -Wa,-mgp64 -c -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "-Wa,-mgp64"; fi) LINKFLAGS += -T arch/mips64/ld.script.elf32 endif -- In theory, practice and theory are the same, but in practice they are different -- Larry McVoy