Re: [q] how is ELF binfmt registered?

Steve Dodd (dirk@loth.demon.co.uk)
Mon, 13 Sep 1999 22:46:59 +0100


On Mon, Sep 13, 1999 at 05:21:19PM +0100, Tigran Aivazian wrote:

>
> If binfmt_elf is a module then register_binfmt() called from
> init_elf_binfmt does the job. But if it is not a module how is elf_format
> linked to formats?

In 2.2 init_elf_binfmt is called from fs/exec.c:binfmt_setup(); I guess in
later 2.3 kernels Linus' __init linker magic handles this.. Ah yes, in
include/linux/init.h, module_init(x) is defined to __initcall if MODULE is
undef'd.

-- 
%DCL-MEM-BAD, bad memory
VMS-F-PDGERS, pudding between the ears

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