Re: Jettisoning init code (was: nfsroot anyone?)

H. Peter Anvin (hpa@freya.yggdrasil.com)
21 Mar 1996 07:15:42 GMT


Followup to: <199603181437.OAA24618@snowcrash.cymru.net>
By author: Alan Cox <alan@cymru.net>
In newsgroup: linux.dev.kernel
>
> > I'm going to take a look into this ASAP. However, I don't think imp=
lemen-
> > ting BOOTP into the kernel (as with 1.3.75) is such a good idea. It=
blows
> > up the kernel binary for being used just once. This should instead =
go into
>=20
> This is part of a global Linux memory/segment planning problem. There=
is no
> way to put all the init code into a discardable memory area thrown af=
ter
> boot.
>=20

It seems to me that the way to do it would be to have another segment
for this. I *think* ELF can support more segments than .code and
.data. Is there any way to get gas/gcc to use them, and if not, how
hard would it be to hack them to support .initcode and .initdata
segments?

-hpa

--=20
PGP public key available - finger hpa@zytor.com
"The earth is but one country, and mankind its citizens." -- Bah=E1'u=
'll=E1h
I don't work for Yggdrasil, but they sponsor the linux.* hierarchy.