Subject: Re: libsa/loadfile.c (a.out not working)
To: None <email@example.com>
From: Izumi Tsutsui <firstname.lastname@example.org>
Date: 07/16/2001 21:46:01
In article <email@example.com>
> > 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).