execve system call
Carlos O'Donell
carlos@systemhalted.org
Mon Mar 26 22:47:00 GMT 2007
On 3/26/07, Neo Jia <neojia@gmail.com> wrote:
> hi,
>
> I am trying to figure out the system call from user space to kernel
> space. So, I read glibc wrapper first. But I cannot figure out the
> exact meaning of INTERNAL_SYSCALL for execve system call on IA32 arch.
> In this macro, which function will be called by the following assmebly
> code ""call *%%gs:%P2\n\t"?
>
> Is there anyone can help me clarify it?
Yes.
1. Build the library
2. Look at the disassembled output for execve using objdump -ldr.
I would also recommend that you familiarize yourself with the GNU
Assembler http://sourceware.org/binutils/docs-2.17/as/index.html
Cheers,
Carlos.
More information about the Libc-alpha
mailing list