[lkml]   [2002]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Query about initramfs and modules
On Wed Jan 16, 2002 at 11:56:59AM -0800, H. Peter Anvin wrote:
> Followup to: <>
> By author: Erik Andersen <>
> In newsgroup:
> >
> > Keep in mind that insmod current needs to incorporate a full ELF
> > interpreter in userspace (and the source code needs to know about
> > all the types of relocations and jump for each arch and for 32
> > and 64 bit ELF. Horrible stuff really. If we could cleanup the
> > kernel's insmod implementation to require merely a syscall
> > passing a filename to the kernel, it would sure make the
> > initramfs smaller and simpler. I believe Rusty made a patch to
> > do this sort of thing....
> >
> Yeah! Let's put all this crap in KERNEL SPACE! *NOT!*

Good point. We surely wouldn't want to have an ELF interpreter
in kernel space. That would be evil!
rm linux/fs/binfmt_elf.c
There, thats better, now userspace can load everything. If we
can figure out how to get userspace loaded....

The kernel already knows how to load ELF files, and _has_ to do
that job to get userspace running anyways. So why not use that
mechanism for modules?


Erik B. Andersen
--This message was written using 73% post-consumer electrons--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:23    [W:0.044 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site