This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: execve system call


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]