Thread (9 messages) 9 messages, 3 authors, 2012-07-15

[RFC]confusion about syscall

From: Mulyadi Santosa <hidden>
Date: 2012-07-15 05:49:25

Hi...

On Sun, Jul 15, 2012 at 9:28 AM, ?? [off-list ref] wrote:
and the second program:

#include <stdio.h>
#include <unistd.h>

int main(void)
{
    unsigned long value = 0;
    value = getpid();
    return 0;
}

and disassembling it:( objdump -d a.out)
...
08048300 <getpid@plt>:
 8048300:    ff 25 00 a0 04 08        jmp    *0x804a000
 8048306:    68 00 00 00 00           push   $0x0
 804830b:    e9 e0 ff ff ff           jmp    80482f0 <_init+0x3c>
Looks like jumping into vsyscall page to me...

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help