Subject: Re: foo_init()s in main() [was: CVS commit: src/sys]
To: None <tech-kern@NetBSD.org>
From: Tonnerre LOMBARD <tonnerre@thundrix.ch>
List: tech-kern
Date: 11/22/2005 10:39:51
--1Sa0i77dkqaUxqYg
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Salut,

On Tue, Nov 22, 2005 at 10:29:17AM +0100, joerg@britannica.bec.de wrote:
> The FreeBSD sysinit mechanism let the ELF (binutils) linker build a
> large table of all sysinits, sorts them in the kernel and processes them
> in a well-defined order. It is also used for other things, like the
> newbus framework to hook in the driver modules.
>=20
> The only question for NetBSD adoption is, whether any architecture still
> has a non-ELF kernel. I don't mean the format of the final image, but
> whether the linkage is ELF. Depending on that, the work can be just used
> or needs some work in ld for the specific format.

I remember some A.OUT section hacks, but I'm not sure if a solution for
COFF exists.

				Tonnerre

--1Sa0i77dkqaUxqYg
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)

iD8DBQFDgudnXUVlAbfmNMIRAgDvAKDczghY2KdTybUNulBcwyla2NVcDQCffoDm
vJHg4f6msmaOQu5OW937cUU=
=jz3V
-----END PGP SIGNATURE-----

--1Sa0i77dkqaUxqYg--