Subject: Re: libsa/loadfile.c
To: None <nigel@ind.tansu.com.au>
From: Michael L. Hitch <mhitch@lightning.msu.montana.edu>
List: tech-kern
Date: 07/13/2001 11:46:54
On Fri, 13 Jul 2001, Jason R Thorpe wrote:
> On Fri, Jul 13, 2001 at 03:37:51PM +1000, nigel@ind.tansu.com.au wrote:
>
> > Before I list the problems I had, what code calls loadfile?
> > It it used very much? (in particular with loading a.out binaries)
> > I only ask because I find it hard to believe that no-one else has
> > had the same problem that I had with it.
>
> It is used by the i386, alpha, sparc, hp300, pmax boot programs,
> at least. The a.out, ECOFF, and ELF support is all known to work.
It also works on my amiga boot program, both a.out and ELF.
> > 1) aout_exec() seems to load files non-zero entry point at the wrong
> > address. A kernel with a_entry of 0x2e00 loads at address 0x2e00,
> > with its entry point at 0x5c00 !
>
> If this were true, the i386 port wouldn't work. But I'd need to look
> at the code again and get my head wrapped around it to figure out how
> to make your booter work.
The amiga wouldn't be working either, in this case. I seem to remember
digging through loadfile.c trying to figure out how things work before I
got the amiga booting though.
--
Michael L. Hitch mhitch@montana.edu
Computer Consultant
Information Technology Center
Montana State University Bozeman, MT USA