<br><br><div class="gmail_quote">2012/7/15 Mulyadi Santosa <span dir="ltr"><<a href="mailto:mulyadi.santosa@gmail.com" target="_blank">mulyadi.santosa@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi...<br>
<div class="im"><br>
On Sun, Jul 15, 2012 at 9:28 AM, ÍõÕÜ <<a href="mailto:wangzhe5004@gmail.com">wangzhe5004@gmail.com</a>> wrote:<br>
> and the second program:<br>
><br>
> #include <stdio.h><br>
> #include <unistd.h><br>
><br>
> int main(void)<br>
> {<br>
> unsigned long value = 0;<br>
> value = getpid();<br>
> return 0;<br>
> }<br>
><br>
> and disassembling it:( objdump -d a.out)<br>
> ...<br>
> 08048300 <getpid@plt>:<br>
> 8048300: ff 25 00 a0 04 08 jmp *0x804a000<br>
> 8048306: 68 00 00 00 00 push $0x0<br>
> 804830b: e9 e0 ff ff ff jmp 80482f0 <_init+0x3c><br>
<br>
</div>Looks like jumping into vsyscall page to me...<br></blockquote><div><br> thanks for reply.<br> and i wander why the address of vsyscall page is not 0xffffe000 in my system?<br>...<br>b7806000-b7807000 r-xp 00000000 00:00 0 [vdso]<br>
b7807000-b7827000 r-xp 00000000 08:08 2491275 /lib/i386-linux-gnu/<a href="http://ld-2.15.so">ld-2.15.so</a><br>b7827000-b7828000 r--p 0001f000 08:08 2491275 /lib/i386-linux-gnu/<a href="http://ld-2.15.so">ld-2.15.so</a><br>
b7828000-b7829000 rw-p 00020000 08:08 2491275 /lib/i386-linux-gnu/<a href="http://ld-2.15.so">ld-2.15.so</a><br> ...<br><br>root@glinuxi-G31M-ES2C:~# ldd /bin/ls<br> linux-gate.so.1 => (0xb786b000)<br> libselinux.so.1 => /lib/i386-linux-gnu/libselinux.so.1 (0xb7839000)<br>
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb7830000)<br> libacl.so.1 => /lib/i386-linux-gnu/libacl.so.1 (0xb7826000)<br>...<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
--<br>
regards,<br>
<br>
Mulyadi Santosa<br>
Freelance Linux trainer and consultant<br>
<br>
blog: <a href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a><br>
training: <a href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a><br>
</font></span></blockquote></div><br>