linux-mips-fnet
[Top] [All Lists]

Re: spoofing the kenel header...

To: Warner Losh <imp@harmony.village.org>, linux-mips@fnet.fr
Subject: Re: spoofing the kenel header...
From: ralf@uni-koblenz.de
Date: Fri, 5 Mar 1999 21:54:38 +0100
Cc: ryan@end.org
In-reply-to: <199903040639.XAA27701@harmony.village.org>; from Warner Losh on Wed, Mar 03, 1999 at 11:39:44PM -0700
References: <Pine.GSO.3.96.990303162620.13078C-100000@q7.q7.com> <199903040639.XAA27701@harmony.village.org>
On Wed, Mar 03, 1999 at 11:39:44PM -0700, Warner Losh wrote:

> elf2ecoff is short, and I've included it below.  As you can see, it is
> written for NetBSD, but shouldn't be too hard to port to Linux.  I use
> the following program all the time to boot OpenBSD kernels (which
> don't have a bootstrap loader, so need to be ecoff) all the time.  It
> does assume that the Elf headers are on your system, which may or may
> not be the case for Linux.  If it isn't the case, you can grab include
> files from ftp.netbsd.org or ftp.openbsd.org.
> 
> Ralf likely has either objcopy working, or a working one of these...

I've got elf2ecoff working and independant of me Thomas commited his
elf2ecoff variant into the CVS.  It is really the only sane way to produce
ECOFF from ELF objects since libbfd is way too buggy and incomplete to
link ELF into ECOFF under certain circumstances.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>