Subject: Re: libsa/loadfile.c (a.out not working)
To: None <nigel@ind.tansu.com.au>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: tech-kern
Date: 07/16/2001 21:46:01
In article <20010716043419.20436.qmail@quoll.ind.tansu.com.au>
nigel@ind.tansu.com.au wrote:
> > Hmm.... How are you defining ALIGNENTRY()?
>
> As stolen from the news68k port's loadfile_machdep.h :
>
> #define ALIGNENTRY(a) ((u_long)(a))
On news68k, this value was not well-considered ;-)
At the first time I wrote bootloader for (a.out) news68k,
it did not work at all, because the entry address of
the kernel was 0x400. a.out header does not contain
text address and aout_exec() loads text data from
the entry address. Then I just moved the entry address
(==start() in locore.s) to 0x0 (==text start).
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp