All of lore.kernel.org
 help / color / mirror / Atom feed
From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: [RFC]confusion about syscall
Date: Sun, 15 Jul 2012 12:49:25 +0700	[thread overview]
Message-ID: <CAGdaadZoeYT_oK2nRXzpAbV8GD38z7Q9N-8toRHVSm8ejbXCqQ@mail.gmail.com> (raw)
In-Reply-To: <CAJrRU3WEitdr+376gsT=JP_BOpQvv_+JoUAS8Lxd6J1gG9-p0g@mail.gmail.com>

Hi...

On Sun, Jul 15, 2012 at 9:28 AM, ?? <wangzhe5004@gmail.com> 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

  parent reply	other threads:[~2012-07-15  5:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-15  2:28 [RFC]confusion about syscall 王哲
2012-07-15  2:52 ` Peter Teoh
2012-07-15  5:49 ` Mulyadi Santosa [this message]
2012-07-15  9:18   ` 王哲
2012-07-15 17:42     ` Mulyadi Santosa
2012-07-15 10:46   ` Peter Teoh
2012-07-15 12:36     ` 王哲
2012-07-15 15:24       ` Peter Teoh
2012-07-15 15:33         ` Peter Teoh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGdaadZoeYT_oK2nRXzpAbV8GD38z7Q9N-8toRHVSm8ejbXCqQ@mail.gmail.com \
    --to=mulyadi.santosa@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.