ablog

不器用で落着きのない技術者のメモ

2011-02-16から1日間の記事一覧

Solaris 10 で ELF オブジェクト内のシンボル名を表示する。

Solaris 10 で ELF オブジェクト内のシンボル名を表示する。 bash-3.00# /usr/ccs/bin/nm -D /usr/bin/ls /usr/bin/ls: [Index] Value Size Type Bind Other Shndx Name [45] | 156424| 0|OBJT |GLOB |0 |16 |_DYNAMIC [43] | 155648| 0|OBJT |GLOB |0 |14 |…

共有ライブラリ内の関数をインターポジショニングしてみる

ls から呼んでいる共有ライブラリ内の関数を調べる。 -bash-3.00$ sotruss ls ls -> libc.so.1:*atexit(0xff3c5bb4, 0x26000, 0x0) ls -> libc.so.1:*atexit(0x14648, 0xff1d0140, 0xee12c) ls -> libc.so.1:*setlocale(0x6, 0x14658, 0xff0b5900) ls -> lib…