Subject: Re: ELF and m68k
To: None <port-m68k@netbsd.org>
From: Ignatios Souvatzis <is@netbsd.org>
List: port-m68k
Date: 02/25/2001 23:30:47
Hm, 

is there a structure alignment issue with ELF?

a.out (and AmigaOS) alignment is to 16bit-boundaries, so that you have
things like

struct foo {
	u_int16_t bar;
	u_int32_t baz;
	u_int16_t fie;
	...
}

which basically is equivalent to packed.

Unfortunately, some AmigaOS structures are passed by our bootcode
to our kernel (struct cfdev [], struct boot_memlist []) and at
least the former has an evil sub-structure. I guess I'll need to
add __attribute__((packed)) to all of them?

Regards,
	-is