0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

nm + grep でライブラリのシンボルを見つけるときの tips

0
Posted at

解決したいこと

C/C++ で link 時に undefined symbol になるが, どのライブラリ(.a/.so)に symbol の定義があるか調べたい
(LLVM みたいにライブラリがたくさんあるなど)

nm *.so | grep SYMBOL 

とするととりあえず symbol 名が *.so にあるかはわかるが, どの .so に定義されているかわからない.

解決方法

-A オプションでファイル名を表示することができます.

nm -A *.so | grep SYMBOL

TODO

nm ではない方法でシンボルを見つける方法がないか調べる.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?