--
You received this message because you are subscribed to the Google Groups "osinside" group.
To post to this group, send email to osin...@googlegroups.com.
To unsubscribe from this group, send email to osinside+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/osinside?hl=en.
root@workplace:~# cat /proc/self/maps
08048000-0804f000 r-xp 00000000 08:01 24579 /bin/cat
0804f000-08050000 rw-p 00006000 08:01 24579 /bin/cat
08050000-08071000 rw-p 08050000 00:00 0 [heap]
b7c8c000-b7ccb000 r--p 00000000 08:01 347437
/usr/lib/locale/en_US.utf8/LC_CTYPE
b7ccb000-b7ccc000 r--p 00000000 08:01 347438
/usr/lib/locale/en_US.utf8/LC_NUMERIC
b7ccc000-b7ccd000 r--p 00000000 08:01 347439
/usr/lib/locale/en_US.utf8/LC_TIME
b7ccd000-b7deb000 r--p 00000000 08:01 347440
/usr/lib/locale/en_US.utf8/LC_COLLATE
b7deb000-b7dec000 r--p 00000000 08:01 347441
/usr/lib/locale/en_US.utf8/LC_MONETARY
b7dec000-b7ded000 r--p 00000000 08:01 347442
/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
b7ded000-b7dee000 r--p 00000000 08:01 347443
/usr/lib/locale/en_US.utf8/LC_PAPER
b7dee000-b7df5000 r--s 00000000 08:01 312727
/usr/lib/gconv/gconv-modules.cache
b7df5000-b7df6000 rw-p b7df5000 00:00 0
b7df6000-b7f49000 r-xp 00000000 08:01 419455
/lib/tls/i686/cmov/libc-2.11.1.so
b7f49000-b7f4a000 ---p 00153000 08:01 419455
/lib/tls/i686/cmov/libc-2.11.1.so
b7f4a000-b7f4c000 r--p 00153000 08:01 419455
/lib/tls/i686/cmov/libc-2.11.1.so
b7f4c000-b7f4d000 rw-p 00155000 08:01 419455
/lib/tls/i686/cmov/libc-2.11.1.so
b7f4d000-b7f50000 rw-p b7f4d000 00:00 0
b7f50000-b7f51000 r--p 00000000 08:01 347444
/usr/lib/locale/en_US.utf8/LC_NAME
b7f51000-b7f52000 r--p 00000000 08:01 347445
/usr/lib/locale/en_US.utf8/LC_ADDRESS
b7f52000-b7f53000 r--p 00000000 08:01 347446
/usr/lib/locale/en_US.utf8/LC_TELEPHONE
b7f53000-b7f54000 r--p 00000000 08:01 347447
/usr/lib/locale/en_US.utf8/LC_MEASUREMENT
b7f54000-b7f55000 r--p 00000000 08:01 347448
/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION
b7f55000-b7f57000 rw-p b7f55000 00:00 0
b7f57000-b7f58000 r-xp b7f57000 00:00 0 [vdso]
b7f58000-b7f73000 r-xp 00000000 08:01 417808 /lib/ld-2.11.1.so
b7f73000-b7f74000 r--p 0001a000 08:01 417808 /lib/ld-2.11.1.so
b7f74000-b7f75000 rw-p 0001b000 08:01 417808 /lib/ld-2.11.1.so
bf94d000-bf962000 rw-p bffeb000 00:00 0 [stack]
root@workplace:~# cat /proc/self/maps
08048000-0804f000 r-xp 00000000 08:01 24579 /bin/cat
0804f000-08050000 rw-p 00006000 08:01 24579 /bin/cat
08050000-08071000 rw-p 08050000 00:00 0 [heap]
b7c75000-b7cb4000 r--p 00000000 08:01 347437
/usr/lib/locale/en_US.utf8/LC_CTYPE
b7cb4000-b7cb5000 r--p 00000000 08:01 347438
/usr/lib/locale/en_US.utf8/LC_NUMERIC
b7cb5000-b7cb6000 r--p 00000000 08:01 347439
/usr/lib/locale/en_US.utf8/LC_TIME
b7cb6000-b7dd4000 r--p 00000000 08:01 347440
/usr/lib/locale/en_US.utf8/LC_COLLATE
b7dd4000-b7dd5000 r--p 00000000 08:01 347441
/usr/lib/locale/en_US.utf8/LC_MONETARY
b7dd5000-b7dd6000 r--p 00000000 08:01 347442
/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
b7dd6000-b7dd7000 r--p 00000000 08:01 347443
/usr/lib/locale/en_US.utf8/LC_PAPER
b7dd7000-b7dde000 r--s 00000000 08:01 312727
/usr/lib/gconv/gconv-modules.cache
b7dde000-b7ddf000 rw-p b7dde000 00:00 0
b7ddf000-b7f32000 r-xp 00000000 08:01 419455
/lib/tls/i686/cmov/libc-2.11.1.so
b7f32000-b7f33000 ---p 00153000 08:01 419455
/lib/tls/i686/cmov/libc-2.11.1.so
b7f33000-b7f35000 r--p 00153000 08:01 419455
/lib/tls/i686/cmov/libc-2.11.1.so
b7f35000-b7f36000 rw-p 00155000 08:01 419455
/lib/tls/i686/cmov/libc-2.11.1.so
b7f36000-b7f39000 rw-p b7f36000 00:00 0
b7f39000-b7f3a000 r--p 00000000 08:01 347444
/usr/lib/locale/en_US.utf8/LC_NAME
b7f3a000-b7f3b000 r--p 00000000 08:01 347445
/usr/lib/locale/en_US.utf8/LC_ADDRESS
b7f3b000-b7f3c000 r--p 00000000 08:01 347446
/usr/lib/locale/en_US.utf8/LC_TELEPHONE
b7f3c000-b7f3d000 r--p 00000000 08:01 347447
/usr/lib/locale/en_US.utf8/LC_MEASUREMENT
b7f3d000-b7f3e000 r--p 00000000 08:01 347448
/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION
b7f3e000-b7f40000 rw-p b7f3e000 00:00 0
b7f40000-b7f41000 r-xp b7f40000 00:00 0 [vdso]
b7f41000-b7f5c000 r-xp 00000000 08:01 417808 /lib/ld-2.11.1.so
b7f5c000-b7f5d000 r--p 0001a000 08:01 417808 /lib/ld-2.11.1.so
b7f5d000-b7f5e000 rw-p 0001b000 08:01 417808 /lib/ld-2.11.1.so
bfd2c000-bfd41000 rw-p bffeb000 00:00 0 [stack]
์ด๋ฐ์์ผ๋ก /proc/self/maps ๋ช๋ฒ ๋๋ ค๋ณด๋ฉด.. executable๋ง ๋นผ๊ณ ๋ ๋ค๋ค ์๊พธ ์ฃผ
์๊ฐ ๋ฐ๋์ฃ ..
๋ฌผ๋ก ๋ถ์ด๊ณ ์ํ๋ ์ฃผ์์ ์ด๋ฏธ ๋ค๋ฅธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ ๋ถ์ด์๊ฑฐ๋ ๊ทธ๋ด์ ์์ฃ ๋ฌผ
๋ก .. ์๋ง ๋ค๋ฅธ๊ณณ์ ๋ถ์ด์ง ์์๊น์..ใ
ใ
.. ๊ทธ๋ฐ ๊ฒฝ์ฐ ์ ๋ณธ์ ์ด ์์ด์.. ์ด
์จ๋ ๊ทธ๊ฑด ๋ง์ปคํํ
๋ฌ๋ฆฐ ๋ฌธ์ ์์.. ๋ง์ปค๋ง์..๊ตฌํํ๊ธฐ ๋๋ฆ.. executable๋ง
๊ณ ์ ๋ loading address๊ฐ ์์ฃ .. ๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ ์ค์ ์ฌ๋ผ๊ฐ ์ฃผ์๊ฐ ์์์์ฒ๋ผ
ํ์ธ๋์ฃ .. /proc/self/maps๋ฅผ ์ด์ฉํ๋ฉด..
On 7/26/2010 8:43 PM, Junyeong Bak wrote:
> ์ ๋ง ์ค๋๋ง์
๋๋ค. ๋ฉ์ผ์ ๊ฑฐ์ ๋งค์ผ ํ์ธ ํ๋๋ฐ ๊ธ์ ์ด๊ฑด ์ฝ์ง ์๋ค์~
>
> ์ด๋ฒ์ ์
๋ฐ์ดํธ ๋ ๊ฑธ ๋ค ๋ณด์ง ๋ชปํ์ง๋ง ๊ถ๊ธ ํ ๊ฒ์ด ์์ด ํ์ฃผ์ด ๊ธ์ ์ฐ๋ค์~
>
> osinside์ ๋ํด ๋์์ด ๊ฑฐ์ ๋์ง ๋ชปํด์ ๋ฏธ์ํ๊ธฐ ํ์ง๋ง์~
>
> linux๋ operating system์์ dll / so ๊ฐ์ ๊ฒฝ์ฐ ํ๋ฒ ๋ก๋ฉ ํด์ ์ฌ๋ฌ ํ๋ก์ธ
> ์ค๊ฐ ๊ฐ์ด ์ฌ์ฉํ๊ธฐ ๋๋๋ฐ..
>
> ํ๋ก์ธ์ค ๋ณ๋ก ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๋ฉ๋ชจ๋ฆฌ ์ฃผ์๋ฅผ ํ์ธ ํ๋ ค๋ฉด cat /proc/pid/maps ๋ฅผ
> ํตํด ํ ์ ์์๋ ๊ฑฐ ๊ฐ์๋ฐ์~
>
> ํ๋ก์ธ์ค๋ณ์ด ์๋๋ผ ์ด์์ฒด์ ์ ์ฒด์ ๋ก๋ฉ ๋์ด ์๋ library๋ฅผ ์ ์ ์๋ ๋ฐฉ
> ๋ฒ์ ์๋์ง ๊ถ๊ธํฉ๋๋ค?
>
> ๋ํ elf์ ๋ณด๋ฉด library์ entry point๊ฐ ์๋๋ฐ ๊ทธ๊ณณ์ ๋ฌด์กฐ๊ฑด ์ฌ๋ผ๊ฐ๋์ง ์
> ๋๋ฉด ๊ธฐ์กด์ ์ด๋ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ
>
> ์์ผ๋ฉด ๋ค๋ฅธ ๊ณณ์ผ๋ก ์ฌ๋ฆฌ๋์ง ๊ถ๊ธํด์ง๋ค์~ ๋ค๋ฅธ ๊ณณ ์ฌ๋ฆฌ๊ณ ์ฌ๋ฐฐ์น ํ๋ ๊ฑฐ ๊ฐ
> ์๋ฐ์.
>
> ์ค์ ์ฌ๋ผ๊ฐ๋ entry point๋ฅผ ํ์ธํ ์ ์๋ ๋ฐฉ๋ฒ์ ์๋์??
>
> :)
>
>
> 2010/7/22 Min Lee <min...@gatech.edu <mailto:min...@gatech.edu>>
>
> ๋๊ฐ์ subchapter Procedure and thread๊ณผ Variable arguments์ ์ถ๊ฐํ์ต๋๋ค.
> ์์ฆ x86-64์ข ๋ณด๊ณ ์๋๋ฐ calling convention์ด ๋ค๋ฅด๋๊ตฐ์.. variable
> arguments๊ด๋ จํด์ ์ฝ์งํ๋ค๊ฐ.. ์ ๋ฆฌํด๋ดค์ต๋๋ค..
> ์ด๋ณด์ ์ธ ๋ด์ฉ์ผ์ง ๋ชจ๋ฅด๊ฒ ์ง๋ง ์ค์ํ๋ถ๋ถ์ด๋ผ์.. ์ด์ฌํ์ข ์จ๋ดค๋๋ ์๊ฐ
> ํ๋ฑ ๊ฐ๋ค์..
> ์ค๋ช
์ ๋์ด๋๋ ๋ฌธ์ ๊ฐ ์์์ง๋.. ๊ฑ ๋ง์๋๋ก ์จ๋ด..
> ๋ ์จ๋ ๋์ด๋ฐ ๋ค๋ค ๋ชธ์กฐ์ฌ~
>
> --
> You received this message because you are subscribed to the Google
> Groups "osinside" group.
> To post to this group, send email to osin...@googlegroups.com
> <mailto:osin...@googlegroups.com>.
> To unsubscribe from this group, send email to
> osinside+u...@googlegroups.com
> <mailto:osinside%2Bunsu...@googlegroups.com>.