lkml.org 
[lkml]   [2002]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Query about initramfs and modules
Erik Andersen wrote:

>>>
>>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?
>


Because it's not the same mechanism at all. insmod is an ELF *LINKER*,
not just a loader for executable-format ELF files. There is a huge
difference between a linkable and an executable ELF file; a module is the
former, a binary executable is the latter.

-hpa


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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