Re: [q] ELF program header table size <= 64K ?

Tigran Aivazian (tigran@sco.COM)
Tue, 14 Sep 1999 11:53:41 +0100 (BST)


ok, the second attempt to answer my own question (the first one was
slightly inaccurate). The stuff prepared by module_init() in non-module
case is placing the pointer to the function in the __initcall list which
is processed at a very well-defined place in init/main.c:do_initcalls():

initcall_t *call;

call = &__initcall_start;
do {
(*call)();
call++;
} while (call < &__initcall_end);

Hopefully, now things are clear to everyone (including myself).

Regards,
Tigran

On Tue, 14 Sep 1999, Tigran Aivazian wrote:

> Hi,
>
> Why does do_load_elf_binary() fail if the program header table size
> (e_phentsize * e_phnum) is greater than 65536 bytes? If it is because in
> some old versions kmalloc(GFP_KERNEL) couldn't get more than 64K (although
> the earliest I remember could get 120K or so) then it should be removed.
> But if there is some other reason, I would like to know.
>
> Regards,
> Tigran.
>
>
>

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