Subject: Re: ELF progress
To: David Rogers <drogers@halo7.alphabetas.net>
From: Jason R Thorpe <thorpej@zembu.com>
List: port-mac68k
Date: 01/07/2001 09:03:43
On Sun, Jan 07, 2001 at 10:47:35AM -0600, David Rogers wrote:
> Would it be possible to borrow some code from the mvme68k port since they
> recently moved to ELF?
Well, for the assembly code thing, you're going to be doing just manual
substitution ... register names go from e.g. "a0" to "%a0". There is a
warning flag for the assembler which will cause it to warn about missing
register prefixes.
...structure packing -- all the port-dependent ones are the ones left
to check. You'll have to add __attribute__((__packed__)) to structures
that describe e.g. on-wire or on-disk data formats.
...the booter -- that's all port-dependent :-)
--
-- Jason R. Thorpe <thorpej@zembu.com>