Re: how does ld.so call ELF's entry?

Sofiane Akermoun <[email protected]> Sun, 7 Apr 2013 09:47:59 +0200
Newsgroups org.kernel.vger.linux-assembly
Message-ID <CAN0_x-K9fZHzN1yk1C0W7-LBwCnmOHhDG8n4TmDXTaVEBRWVDQ@mail.gmail.com>
I don't know what you are doing. if you are writing your proper
assembler, or whatever. But the standard tools are gdb, printing on
screen information like addresses. if it is kernel related then kdb
and an emulator like bochs, qemu or virtualbox to avoid kernel
freezing in performing remote debugging.

Although it is interesting, without asm code not sure it is the best
place to talk about inner operating system mechanism.

regards.

Sofiane Akermoun
[email protected]

2013/4/7 ishare <[email protected]>:
>
>   yeah!
>
>   I have found the work is done through create_elf_tables() function.
>
>   at early time kernel copy args to bprm structure , then copy it to user stack.
>
>   I am dealing with one problem .
>
>   When kernel execute "/bin/sh" , it load ld.so successfully , but without jumping
>   to the elf's entry point ,it exit ,which cause  kernel panic .
>
>   how can I debug for this problem ? how to catch more information for resolving it?
>
>   thanks!



-- 
Sofiane AKERMOUN
[email protected]